Univention Bugzilla – Attachment 9793 Details for
Bug 39345
urlencode ldap base in slapd.conf
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Additional check at setup time
util.patch (text/plain), 690 bytes, created by
Martin Castillo
on 2019-01-08 15:09 CET
(
hide
)
Description:
Additional check at setup time
Filename:
MIME Type:
Creator:
Martin Castillo
Created:
2019-01-08 15:09 CET
Size:
690 bytes
patch
obsolete
>diff --git a/base/univention-system-setup/umc/python/setup/util.py b/base/univention-system-setup/umc/python/setup/util.py >index a79c7c0d61..3db77618e5 100644 >--- a/base/univention-system-setup/umc/python/setup/util.py >+++ b/base/univention-system-setup/umc/python/setup/util.py >@@ -917,6 +917,8 @@ def is_ldap_base(ldap_base): > >>> is_ldap_base('cn=foo,c=ZZ,dc=foo,dc=bar') > False > """ >+ if not ldap.dn.is_dn(ldap_base): >+ return False > match = is_ldap_base.RE.match(ldap_base) > return match is not None and not any(part.upper().startswith('C=') and not part.upper()[2:] in is_ldap_base.CC for part in ldap.dn.explode_dn(ldap_base)) >
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
|
Diff
Attachments on
bug 39345
: 9793 |
9794
|
10063