[SOLVED] How to List the Distribution List that Users are a Member of
First, I want to say thank you for all the help on my previous thread:
How to get distribution list members through LDAP (on v6.0.5)
It worked very well. My next question is how would I ask LDAP to return the distribution lists that a user is a member of?
For instance, given email@example.com, I want to find out what distribution lists that is a member of. And that happens to be a member of firstname.lastname@example.org, email@example.com, firstname.lastname@example.org, etc...
I was doing using this:
ldapsearch -x -v -H 'ldap://hostname' -D 'uid=zimbra,cn=admins,cn=zimbra' -b 'ou=people,dc=domain,dc=com' -W | less
To just see what attributes there are that might tell me this, but I cannot find anything. Thank you.
What would be the equivalent ldap search to return the output of "zmprov gam user@dom
What would be the equivalent ldap search to return the output of "zmprov gam user@domain"?
I have the other way around already. This is the only piece missing now.