Univention Bugzilla – Attachment 2252 Details for
Bug 14593
Einmal authentifizieren für UDM und UMC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Neue Session in python erstellen
create_session.txt (text/plain), 538 bytes, created by
Sönke Schwardt-Krummrich
on 2010-01-29 14:53 CET
(
hide
)
Description:
Neue Session in python erstellen
Filename:
MIME Type:
Creator:
Sönke Schwardt-Krummrich
Created:
2010-01-29 14:53 CET
Size:
538 bytes
patch
obsolete
>>>> data = [ ('Pre_session_username','Administrator'), ('Pre_session_password','univention'), ('Pre_session_language','de') ] >>>> x = urllib.urlopen('https://10.200.18.50/univention-directory-manager/index.php', urllib.urlencode(data)) >>>> y = x.read() >>>> z = re.search('<input[^>]*?name="session_id"[^>]*?>', y).group(0) >>>> z >'<input type="hidden" name="session_id" value="0_5f4177f75df17e702b741237e87be5b8">' >>>> sessionid = re.search('''value=["'](._[a-f0-9]+)["']''', z).group(1) >>>> sessionid >'0_5f4177f75df17e702b741237e87be5b8'
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
Attachments on
bug 14593
: 2252 |
2253