mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-02 03:49:34 -05:00
more uniquemember cleanup
This commit is contained in:
parent
88531a08f9
commit
2583276ab2
3 changed files with 28 additions and 2 deletions
|
|
@ -85,6 +85,19 @@ description: All Alumni Assoc Staff
|
|||
cn: Alumni Assoc Staff
|
||||
objectclass: groupofnames
|
||||
|
||||
dn: cn=ITD Staff,ou=Groups,o=University of Michigan,c=US
|
||||
owner: cn=Manager,o=University of Michigan,c=US
|
||||
description: All ITD Staff
|
||||
cn: ITD Staff
|
||||
objectClass: groupOfUniqueNames
|
||||
uniqueMember: cn=Manager,o=University of Michigan,c=US
|
||||
uniqueMember: cn=Bjorn Jensen,ou=Information Technology Division,ou=PEOPLE,o=U
|
||||
niversity of Michigan,c=US
|
||||
uniqueMember: cn=James A Jones 2,ou=Information Technology Division,ou=PEOPLE,
|
||||
o=University of Michigan,c=US
|
||||
uniqueMember: cn=John Doe,ou=Information Technology Division,ou=People,o=Unive
|
||||
rsity of Michigan,c=US
|
||||
|
||||
dn: cn=James A Jones 1,ou=Alumni Association,ou=People,o=University of Michiga
|
||||
n,c=US
|
||||
objectclass: OpenLDAPperson
|
||||
|
|
|
|||
|
|
@ -115,6 +115,19 @@ dn: ou=Information Technology Division,ou=People,o=University of Michigan,c=US
|
|||
objectClass: organizationalUnit
|
||||
ou: Information Technology Division
|
||||
|
||||
dn: cn=ITD Staff,ou=Groups,o=University of Michigan,c=US
|
||||
owner: cn=Manager,o=University of Michigan,c=US
|
||||
description: All ITD Staff
|
||||
cn: ITD Staff
|
||||
objectClass: groupOfUniqueNames
|
||||
uniqueMember: cn=Manager,o=University of Michigan,c=US
|
||||
uniqueMember: cn=Bjorn Jensen,ou=Information Technology Division,ou=PEOPLE,o=U
|
||||
niversity of Michigan,c=US
|
||||
uniqueMember: cn=James A Jones 2,ou=Information Technology Division,ou=PEOPLE,
|
||||
o=University of Michigan,c=US
|
||||
uniqueMember: cn=John Doe,ou=Information Technology Division,ou=People,o=Unive
|
||||
rsity of Michigan,c=US
|
||||
|
||||
dn: cn=James A Jones 1,ou=Alumni Association,ou=People,o=University of Michiga
|
||||
n,c=US
|
||||
objectClass: OpenLDAPperson
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ fi
|
|||
|
||||
echo "Testing OR searching..."
|
||||
$LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT \
|
||||
'(|(givenName=XX*YY*Z)(cn=)(undef=*)(objectclass=groupofnames)(sn:caseExactMatch:=Jones))' >> $SEARCHOUT 2>&1
|
||||
'(|(givenName=XX*YY*Z)(cn=)(undef=*)(objectclass=groupofnames)(objectclass=groupofuniquenames)(sn:caseExactMatch:=Jones))' >> $SEARCHOUT 2>&1
|
||||
RC=$?
|
||||
if test $RC != 0 ; then
|
||||
echo "ldapsearch failed ($RC)!"
|
||||
|
|
@ -83,7 +83,7 @@ fi
|
|||
|
||||
echo "Testing AND matching and ends-with searching..."
|
||||
$LDAPSEARCH -S "" -b "ou=groups,$BASEDN" -s one -h $LOCALHOST -p $PORT \
|
||||
'(&(objectclass=groupofnames)(cn=A*))' >> $SEARCHOUT 2>&1
|
||||
'(&(|(objectclass=groupofnames)(objectclass=groupofuniquenames))(cn=A*))' >> $SEARCHOUT 2>&1
|
||||
RC=$?
|
||||
if test $RC != 0 ; then
|
||||
echo "ldapsearch failed ($RC)!"
|
||||
|
|
|
|||
Loading…
Reference in a new issue