Univention Bugzilla – Attachment 8105 Details for
Bug 42685
sys.exit() quits listener
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
/usr/lib/univention-directory-listener/system/exit.py
file_42685.txt (text/plain), 499 bytes, created by
Philipp Hahn
on 2016-10-14 15:17 CEST
(
hide
)
Description:
/usr/lib/univention-directory-listener/system/exit.py
Filename:
MIME Type:
Creator:
Philipp Hahn
Created:
2016-10-14 15:17 CEST
Size:
499 bytes
patch
obsolete
>#!/usr/bin/python > >__package__ = '' # workaround for PEP 366 >import sys > >name = 'exit' >description = 'Exit' >filter = '(objectClass=organizationalRole)' >attributes = ['description'] > >def handler(dn, new, old, command=''): > with open('/tmp/log', 'a') as log: > print >> log, dn > print >> log, new > print >> log, old > print >> log, command > if 'exit' in new.get('description'): > sys.exit(1)
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 42685
: 8105