Univention Bugzilla – Attachment 10083 Details for
Bug 44602
Login impossible after using huge password
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
reproduce.py
futex.py (text/x-python), 1.05 KB, created by
Florian Best
on 2019-06-24 23:07:15 CEST
(
hide
)
Description:
reproduce.py
Filename:
MIME Type:
Creator:
Florian Best
Created:
2019-06-24 23:07:15 CEST
Size:
1.05 KB
patch
obsolete
>import tornado.httpserver >import tornado.ioloop >import tornado.iostream >import tornado.web >import tornado.httpclient > >import traceback >import threading >from univention.management.console.pam import PamAuth > > >class Server(tornado.web.RequestHandler): > > @tornado.gen.coroutine > def get(self): > self.write('GET\n') > self.finish() > > @tornado.gen.coroutine > def post(self): > pam = PamAuth() > username = self.get_argument('username') > password = self.get_argument('password') > print('Logging in') > thread = threading.Thread(None, self.authenticate, args=(pam, username, password)) > thread.start() > self.write('Done\n') > self.finish() > > def authenticate(self, pam, username, password): > print('In thread') > result = None > try: > result = pam.authenticate(username, password) > except: > print traceback.format_exc() > print('authenticated', result) > > @classmethod > def main(cls): > app = tornado.web.Application([ > (r'.*', cls), > ], debug=False, serve_traceback=True, > ) > app.listen(6671) > ioloop = tornado.ioloop.IOLoop.instance() > ioloop.start() > > >Server.main()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 44602
:
10082
| 10083 |
10086
|
10087
|
10088
|
10089