OID: ldapsearch with (user and group membership)
Hi all,
I have to compare OID and AD user information and have a question regarding OID: I can find user and / or group membership via:
*** Groups
ldapsearch -h $OIDhost -p $OIDport -D "cn=myname,cn=myCN,cn=Users,dc=example,dc=de" -w $OIDpwd -s sub "(&(objectClass=groupOfUniqueNames)(uniqueMember=cn=myname,cn=myCN,cn=Users,dc=example,dc=de))"
*** Users
ldapsearch -h $OIDhost -p $OIDport -D "cn=myname,cn=myCN,cn=Users,dc=example,dc=de" -w $OIDpwd -b "cn=oam_oauth2, cn=accessusers, cn=Users, dc=bamf,dc=de" "(objectClass=*)"
But I need / have to create one ldapsearch-query to combine user information and his groupmembership. what have I missed?