Univention Bugzilla – Bug 33030
Traceback in proof_uniqueMembers
Last modified: 2014-09-11 15:06:08 CEST
Traceback (most recent call last): File "./proof_uniqueMembers", line 239, in <module> main() File "./proof_uniqueMembers", line 230, in main check_groups(conn, basedn) File "./proof_uniqueMembers", line 136, in check_groups count_changes += check_groups_by_dn(conn, group_dn, group) File "./proof_uniqueMembers", line 150, in check_groups_by_dn member_filter, base = member_dn.split(',', 1) ValueError: need more than 1 value to unpack
Dieser Traceback tritt in unserer Umgebung auf, wenn es Gruppen gibt, die über ein leeres "uniqueMember"-Attribut verfügen.
It seems that there are empty uniqueMember attributes at groups. The following patch fixes the traceback: --- /usr/share/univention-directory-manager-tools/proof_uniqueMembers.ORIG 2013-11-05 09:13:01.000000000 +0100 +++ /usr/share/univention-directory-manager-tools/proof_uniqueMembers 2013-11-05 09:14:34.000000000 +0100 @@ -147,6 +147,8 @@ remmembers = set() for member_dn in group_member_dns: # Split uid=USER, cn=user,dc=FQDN + if not ',' in member_dn: + continue member_filter, base = member_dn.split(',', 1) try: member_result = conn.search_s(base, ldap.SCOPE_ONELEVEL,
Fixed in svn r51614: univention-directory-manager-modules (9.0.76-13). Instead of looking for a ',' in the attribute value, the exception is caught.
Works, but please also remove the faulty uniqueMember entry. -> univention-ldapsearch cn=Domain\ Users uniqueMember dn: cn=Domain Users,cn=groups,dc=w2k12,dc=test uniqueMember: uniqueMember: uid=Administrator,cn=users,dc=w2k12,dc=test uniqueMember: uid=krbtgt,cn=users,dc=w2k12,dc=test uniqueMember: uid=test1,dc=w2k12,dc=test -> /usr/share/univention-directory-manager-tools/proof_uniqueMembers Checking if users are member of their primary group... Checked 8 posixAccounts, fixed 0 issues. Checking if group-members exist... Checked 72 posixGroups, fixed 0 issues.
(In reply to Felix Botner from comment #4) > Works, but please also remove the faulty uniqueMember entry. > > -> univention-ldapsearch cn=Domain\ Users uniqueMember > dn: cn=Domain Users,cn=groups,dc=w2k12,dc=test > uniqueMember: > uniqueMember: uid=Administrator,cn=users,dc=w2k12,dc=test > uniqueMember: uid=krbtgt,cn=users,dc=w2k12,dc=test > uniqueMember: uid=test1,dc=w2k12,dc=test > > -> /usr/share/univention-directory-manager-tools/proof_uniqueMembers > Checking if users are member of their primary group... > Checked 8 posixAccounts, fixed 0 issues. > Checking if group-members exist... > Checked 72 posixGroups, fixed 0 issues. Adapted in svn 51646: univention-directory-manager-modules (9.0.76-14)
OK, works OK - YAML
http://errata.univention.de/ucs/3.2/170.html