mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-21 07:09:34 -05:00
test remapped attribute in requested attribute list
This commit is contained in:
parent
91961faab6
commit
df1260af5e
2 changed files with 24 additions and 1 deletions
|
|
@ -2566,6 +2566,14 @@ seeAlso: cn=All Staff,ou=Groups,o=Example,c=US
|
||||||
|
|
||||||
# refldap://localhost:9010/ou=Referrals,o=Beispiel,c=DE??sub
|
# refldap://localhost:9010/ou=Referrals,o=Beispiel,c=DE??sub
|
||||||
|
|
||||||
|
# searching filter="(uid=example)"
|
||||||
|
# attrs="uid"
|
||||||
|
# base="o=Example,c=US"...
|
||||||
|
dn: o=Example,c=US
|
||||||
|
uid: example
|
||||||
|
|
||||||
|
# refldap://localhost:9010/ou=Referrals,o=Beispiel,c=DE??sub
|
||||||
|
|
||||||
# searching filter="(member=cn=Another Added Group,ou=Groups,o=Example,c=US)"
|
# searching filter="(member=cn=Another Added Group,ou=Groups,o=Example,c=US)"
|
||||||
# attrs="member"
|
# attrs="member"
|
||||||
# base="o=Example,c=US"...
|
# base="o=Example,c=US"...
|
||||||
|
|
|
||||||
|
|
@ -308,7 +308,22 @@ if test $RC != 0 ; then
|
||||||
exit $RC
|
exit $RC
|
||||||
fi
|
fi
|
||||||
|
|
||||||
BASEDN="o=Example,c=US"
|
FILTER="(uid=example)"
|
||||||
|
echo "Searching filter=\"$FILTER\""
|
||||||
|
echo " attrs=\"uid\""
|
||||||
|
echo " base=\"$BASEDN\"..."
|
||||||
|
echo "# searching filter=\"$FILTER\"" >> $SEARCHOUT
|
||||||
|
echo "# attrs=\"uid\"" >> $SEARCHOUT
|
||||||
|
echo "# base=\"$BASEDN\"..." >> $SEARCHOUT
|
||||||
|
$LDAPSEARCH -h $LOCALHOST -p $PORT1 -b "$BASEDN" "$FILTER" uid \
|
||||||
|
>> $SEARCHOUT 2>&1
|
||||||
|
RC=$?
|
||||||
|
if test $RC != 0 ; then
|
||||||
|
echo "Search failed ($RC)!"
|
||||||
|
test $KILLSERVERS != no && kill -HUP $KILLPIDS
|
||||||
|
exit $RC
|
||||||
|
fi
|
||||||
|
|
||||||
FILTER="(member=cn=Another Added Group,ou=Groups,$BASEDN)"
|
FILTER="(member=cn=Another Added Group,ou=Groups,$BASEDN)"
|
||||||
echo "Searching filter=\"$FILTER\""
|
echo "Searching filter=\"$FILTER\""
|
||||||
echo " attrs=\"member\""
|
echo " attrs=\"member\""
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue