Results 1 to 3 of 3

Thread: Looking up COS via LDAP

  1. #1
    Join Date
    Feb 2007
    Location
    Austin, TX
    Posts
    110
    Rep Power
    8

    Default Looking up COS via LDAP

    I'm new to using LDAP and cannot figure out how to do searches for information besides user info. Specifically I would like to connect to the Zimbra LDAP from another machine and find the COS assigned to an email address.

    I'm using an LDAP browser (http://www-unix.mcs.anl.gov/~gawor/ldap/) to connect and poke around and am using 'Anonymous bind'. Do I need to authenticate? I know the LDAP password, but have been unable to connect that way. What do I need to use for the 'User DN' field?

    I have tried reading the forums to get my bearings, but all the posts assume you can already navigate the LDAP with ease.
    Peter LeBlond
    Product Development Engineer
    http://www.mxtoolbox.com


  2. #2
    Join Date
    Feb 2007
    Location
    Austin, TX
    Posts
    110
    Rep Power
    8

    Default

    So I figured out an ldapsearch query that works for me. Now I need to know how to use this with a tool to grab the COS.

    Here is my ldapsearch line

    ldapsearch -H ldap://zimbra.domain.com -x -D 'uid=zimbra,cn=admins,cn=zimbra' -w password -b 'uid=peter,ou=people,dc=mxtoolbox,dc=com' zimbraCOSId mail

    In order to use this base DN I need to authenticate. I know the LDAP password, but what do I use as the username?
    Peter LeBlond
    Product Development Engineer
    http://www.mxtoolbox.com


  3. #3
    Join Date
    Nov 2005
    Posts
    477
    Rep Power
    10

    Default

    Quote Originally Posted by peter@mxtoolbox.com View Post
    So I figured out an ldapsearch query that works for me. Now I need to know how to use this with a tool to grab the COS.

    Here is my ldapsearch line

    ldapsearch -H ldap://zimbra.domain.com -x -D 'uid=zimbra,cn=admins,cn=zimbra' -w password -b 'uid=peter,ou=people,dc=mxtoolbox,dc=com' zimbraCOSId mail

    In order to use this base DN I need to authenticate. I know the LDAP password, but what do I use as the username?
    You actually use that line to bind to the server along with the master ldap password. The information is under cn=zimbra,cn=cos,cn=default

Similar Threads

  1. LDAP Replication Experiences
    By technikolor in forum Administrators
    Replies: 4
    Last Post: 11-12-2008, 12:52 AM
  2. 3 testing: LDAP: 389 Failed when restore zimbra
    By victorLeong in forum Administrators
    Replies: 15
    Last Post: 05-24-2007, 07:45 AM
  3. External LDAP Problem
    By facerw in forum Installation
    Replies: 7
    Last Post: 05-08-2007, 05:29 AM
  4. Mac OSX install: Java errors & LDAP CA error
    By jefbear in forum Installation
    Replies: 9
    Last Post: 12-16-2006, 03:39 PM
  5. Replies: 4
    Last Post: 11-15-2006, 12:16 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
  •