Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: [SOLVED] How to List the Distribution List that Users are a Member of

Hybrid View

  1. #1
    Join Date
    Apr 2008
    Posts
    30
    Rep Power
    7

    Default [SOLVED] How to List the Distribution List that Users are a Member of

    Hello Everyone,

    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 peter@domain.com, I want to find out what distribution lists that is a member of. And that happens to be a member of admins@domain.com, staff@domain.com, maintenance@domain.com, 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.

    Peter
    Last edited by peter76; 03-11-2010 at 09:12 AM.

  2. #2
    Join Date
    Apr 2008
    Posts
    30
    Rep Power
    7

    Default 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.

    p

  3. #3
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    25

    Default

    Code:
    ldapsearch -x -v -H 'ldap://your.zcs.server' -D 'uid=zimbra,cn=admins,cn=zimbra' -b 'uid=distributionlistname,ou=people,dc=zimbra,dc=domain' '(&(zimbraMailForwardingAddress=*))' -W

  4. #4
    Join Date
    Apr 2008
    Posts
    30
    Rep Power
    7

    Default

    Hello uxbod, thanks for that reply, but wouldn't that return the zimbraMailForwardingAddress attribute?

    That's not what

    zmprov gam user@domain returns...

    At this point, I just need to know given a single email address, what distribution list is it a member of which could be many.

    p

  5. #5
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    25

    Default

    Grrrr Give me a minute then

  6. #6
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    25

    Default

    Code:
    ldapsearch -x -v -H 'ldap://fqdn.zcs.server' -D 'uid=zimbra,cn=admins,cn=zimbra' '(&(objectClass=zimbraDistributionList)(zimbraMailForwardingAddress=user@domain.com))' zimbraMailAlias -W

  7. #7
    Join Date
    Jan 2007
    Posts
    86
    Rep Power
    8

    Default

    The admin GUI has a "Member Of" tab for individual accounts.

    The tab displays the name of the distribution lists the member belongs to.

  8. #8
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    25

    Default

    The OP is attempting to obtain the information via LDAP for portal integration; hence they mentioned zmprov

  9. #9
    Join Date
    Apr 2008
    Posts
    30
    Rep Power
    7

    Default

    That worked, by the way. Thank you.

  10. #10
    Join Date
    May 2009
    Posts
    7
    Rep Power
    6

    Default

    is there anyway to do this WITHOUT ldap??

Similar Threads

  1. [SOLVED] Sudden problem synching with gmail
    By bouchardpie in forum Error Reports
    Replies: 8
    Last Post: 09-09-2010, 10:50 AM
  2. Problem syncing all folders
    By mark_the_chain in forum Error Reports
    Replies: 0
    Last Post: 11-23-2008, 04:59 PM
  3. Plus-addressing inside distribution list?
    By nosborne in forum Administrators
    Replies: 0
    Last Post: 10-08-2008, 12:27 PM
  4. Replies: 0
    Last Post: 09-09-2008, 04:36 PM
  5. Distribution list problem
    By achow in forum Users
    Replies: 1
    Last Post: 05-15-2006, 09:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •