How do I run a search using ldapsearch which shows all members of a group, along with each member's UPNs?
Currently, using LDAPGROUP (as shown below), we are only able to receive the basic CN for each member. However, I want to see the UPN for each user.
Any suggestion?
Search:
|ldapsearch basedn="ou=test,ou=Groups,ou=Common Resources,ou=group,dc=ad,dc=private" search="(&(objectClass=group)(cn=*))"
| ldapgroup
| table cn,member_dn,member_name