View | Details | Raw Unified | Return to bug 39345 | Differences between
and this patch

Collapse All | Expand All

(-)a/base/univention-system-setup/umc/python/setup/util.py (+2 lines)
 Lines 917-922   def is_ldap_base(ldap_base): Link Here 
917
       >>> is_ldap_base('cn=foo,c=ZZ,dc=foo,dc=bar')
917
       >>> is_ldap_base('cn=foo,c=ZZ,dc=foo,dc=bar')
918
       False
918
       False
919
       """
919
       """
920
       if not ldap.dn.is_dn(ldap_base):
921
               return False
920
       match = is_ldap_base.RE.match(ldap_base)
922
       match = is_ldap_base.RE.match(ldap_base)
921
       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))
923
       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))

Return to bug 39345