Univention Bugzilla – Attachment 2331 Details for
Bug 17852
Maskierungsprobleme in univention/admin/locking.py
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch zur Behebung der Probleme
patchMaskierung (text/plain), 860 bytes, created by
Janek Walkenhorst
on 2010-03-10 16:41:30 CET
(
hide
)
Description:
Patch zur Behebung der Probleme
Filename:
MIME Type:
Creator:
Janek Walkenhorst
Created:
2010-03-10 16:41:30 CET
Size:
860 bytes
patch
obsolete
>diff --git a/univention/admin/locking.py b/univention/admin/locking.py >index 9a50818..7ce4169 100755 >--- a/univention/admin/locking.py >+++ b/univention/admin/locking.py >@@ -33,12 +33,16 @@ import univention.debug > import univention.admin.uexceptions > > def lockDn(lo, position, type, value, scope): >- dn='cn=%s,cn=%s,cn=temporary,cn=univention,' % (value, type) >+ dn = [ [('cn', value, ldap.AVA_STRING)], >+ [('cn', type, ldap.AVA_STRING)], >+ [('cn', 'temporary', ldap.AVA_STRING)], >+ [('cn', 'univention', ldap.AVA_STRING)], >+ ] > if scope == 'domain': >- dn+=position.getDomain() >+ dn += ldap.dn.str2dn(position.getDomain()) > else: >- dn+=position.getBase() >- return dn >+ dn += ldap.dn.str2dn(position.getBase()) >+ return ldap.dn.dn2str(dn) > > def lock(lo, position, type, value, scope='domain', timeout=300): >
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 17852
: 2331