Univention Bugzilla – Attachment 9571 Details for
Bug 46870
umcp auth command not working when using exam mode as saml user
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
test46870.py
test46870.py (text/x-python), 658 bytes, created by
Sönke Schwardt-Krummrich
on 2018-06-23 22:30:00 CEST
(
hide
)
Description:
test46870.py
Filename:
MIME Type:
Creator:
Sönke Schwardt-Krummrich
Created:
2018-06-23 22:30:00 CEST
Size:
658 bytes
patch
obsolete
>#!/usr/bin/python ># >from univention.lib.umc import Client >import threading >import time >import random >import sys > >if __name__ == '__main__': > client = Client() > > running_threads = [] > > def try_auth(): > client.authenticate('Administrator', 'univention') > print ' .', > sys.stdout.flush() > > for i in xrange(500): > thread = threading.Thread(target=try_auth) > running_threads.append(thread) > thread.start() > time.sleep(random.random()*0.2) > > remaining = 1 > while remaining: > running_threads = [x for x in running_threads if x.is_alive()] > remaining = len(running_threads) > print '%d remaining' % (remaining,) > if not remaining: > break > time.sleep(1)
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 46870
:
9512
|
9523
| 9571