root@master:~# ./52proofuniquemember -f info 2014-08-25 17:29:10 Create group and a member for it Object created: cn=mykmbhad,cn=groups,dc=dgalkin,dc=dev Object created: uid=uolbbgzr,cn=users,dc=dgalkin,dc=dev info 2014-08-25 17:29:24 Deliberately create an inconsistency by deleting the uniqueMember group-attribute and thereby bringing the ldap attributes memberUid and uniqueMember out of sync. In a sane environment both of them would contain all the members of the group info 2014-08-25 17:29:26 Object cn=mykmbhad,cn=groups,dc=dgalkin,dc=dev modified info 2014-08-25 17:29:26 Let's see if proof_uniqueMembers finds it Traceback (most recent call last): File "/usr/share/univention-directory-manager-tools/proof_uniqueMembers", line 244, in main() File "/usr/share/univention-directory-manager-tools/proof_uniqueMembers", line 234, in main check_primary(conn, basedn) File "/usr/share/univention-directory-manager-tools/proof_uniqueMembers", line 122, in check_primary len(user_result), count_changes) File "/usr/share/univention-directory-manager-tools/proof_uniqueMembers", line 43, in info print msg % (args or kwargs) IOError: [Errno 32] Broken pipe info 2014-08-25 17:29:27 Deliberately create an inconsistency by deleting the group member. In a sane environment all the group members would exist info 2014-08-25 17:29:27 EXECUTING: ldapdelete -r -x -D cn=admin,dc=dgalkin,dc=dev -y /etc/ldap.secret uid=uolbbgzr,cn=users,dc=dgalkin,dc=dev info 2014-08-25 17:29:28 Successfully deleted ldap object info 2014-08-25 17:29:28 Let's see if proof_uniqueMembers finds it Warning: No member for DN 'uid=uolbbgzr,cn=users,dc=dgalkin,dc=dev', will be removed Warning: No member for UID 'uolbbgzr', will be removed Traceback (most recent call last): File "/usr/share/univention-directory-manager-tools/proof_uniqueMembers", line 244, in main() File "/usr/share/univention-directory-manager-tools/proof_uniqueMembers", line 235, in main check_groups(conn, basedn) File "/usr/share/univention-directory-manager-tools/proof_uniqueMembers", line 137, in check_groups count_changes += check_groups_by_uid(conn, basedn, group_dn, group) File "/usr/share/univention-directory-manager-tools/proof_uniqueMembers", line 201, in check_groups_by_uid info("Removing member UID '%s' from '%s'", member_uid, group_dn) File "/usr/share/univention-directory-manager-tools/proof_uniqueMembers", line 43, in info print msg % (args or kwargs) IOError: [Errno 32] Broken pipe Object removed: cn=mykmbhad,cn=groups,dc=dgalkin,dc=dev Starting 1 ucs-test at 2014-08-25 17:29:29 to /dev/null Checking for Problems using proof_uniqueMembers.......................................................................................................................................................... Test passed root@master:~#