[Date Prev][Date Next] [Chronological] [Thread] [Top]

ldapsearch help



This is my group

# build a group
dn: ou=group1,dc=fido,dc=com
objectClass: top
objectClass: groupOfNames
ou: group1
member: cn=bob jones,ou=engineering,dc=fido,dc=com
cn: group1





I want to do a ldapsearch for groups that have a specific user.
How can I do it ? can I just search for a cn=bob*  ? or member=bob* 
In the filter ?  how can I write the filter part ?



ldapsearch -LLL -x -h 10.0.0.94 -p 389  -D "cn=Manager,dc=fido,dc=com"
-w secret  -b "dc=fido,dc=com"
"(objectClass=groupOfNames)(member=bob*)"