Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
 
Go Back   Zimbra - Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra - Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-28-2009, 01:59 AM
Advanced Member
 
Posts: 196
Default [SOLVED] Zimbra's LDAP server

Dear All,

try to use "ldapsearch" command to get user's ldap information, and i found there's no "userPassword" attribute ??

does anyone know why, or where does zimbra store user's passwd?
Thanks.


e.g.
ldapsearch -h 192.168.1.17 -p 389 -b "ou=people,dc=example,dc=com" -x -a never -D "uid=admin,ou=people,dc=example,dc=com" -W

command returns:

Code:
dn: uid=kevin.hsu,ou=people,dc=example,dc=com
zimbraMailTransport: lmtp:mailz.example.com:7025
zimbraMailDeliveryAddress: kevin.hsu@example.com
sn: kevin.hsu
zimbraMailStatus: enabled
zimbraId: 48273705-03eb-4f19-a315-e25bb295a514
mail: kevin.hsu@example.com
displayName: kevin.hsu
uid: kevin.hsu
objectClass: organizationalPerson
objectClass: zimbraAccount
objectClass: amavisAccount
cn: kevin.hsu
zimbraMailHost: mailz.example.com
Reply With Quote
  #2 (permalink)  
Old 10-28-2009, 12:53 PM
Moderator
 
Posts: 778
Default

The user's password (and many other attributes) are hidden from binds of all users but the root LDAP user. General users or anonymous binds do not see this information.
Reply With Quote
  #3 (permalink)  
Old 10-28-2009, 09:45 PM
Advanced Member
 
Posts: 196
Default

Thanks for your reply.

So, what's the User DN for "LDAP root user" ?

running zmlocalconfig, i found there's one : zimbra_ldap_userdn = uid=zimbra,cn=admins,cn=zimbra , is this one the LDAP root UserDN?

Thanks.
Reply With Quote
  #4 (permalink)  
Old 10-30-2009, 12:37 PM
Moderator
 
Posts: 778
Default

Yep that's the one I use at least.
Reply With Quote
  #5 (permalink)  
Old 11-04-2009, 11:54 PM
Advanced Member
 
Posts: 196
Default

i'm sorry, but i can't have this work :

ldapsearch -h 192.168.1.19 -p 389 -D "uid=zimbra,cn=admins,cn=zimbra" -b "ou=people,dc=example,dc=com" -x -a never -W

still returned: ldap_bind: Invalid credentials (49)

i'm sure my ldap root passwd is correct, i even also tried to reset it by : zmldappasswd -r new_password

any advice ? Thanks in advance.
Reply With Quote
  #6 (permalink)  
Old 11-05-2009, 03:25 PM
Moderator
 
Posts: 778
Default

Hmmm only suggestion that I have is to try using -H instead of -h and -p. The following works perfectly for me:
Code:
ldapsearch -H "ldap://email.domain.com:389" -D "uid=zimbra,cn=admins,cn=zimbra" -b "ou=people,dc=domain,dc=com" -x -a never -W
Reply With Quote
  #7 (permalink)  
Old 11-05-2009, 07:37 PM
Advanced Member
 
Posts: 196
Default

Thanks so much.

and i found my problem is that i entered the wrong password.

originally i thought i should enter the passwd of "ldap_root_password" and this is not correct. People should use the passwd of "zimbra_ldap_password".

mark it as solved. Thanks.
Reply With Quote
  #8 (permalink)  
Old 11-06-2009, 11:03 AM
Moderator
 
Posts: 778
Default

Interesting, good to know. On my system they are the same which is probably why it has always worked for me
Reply With Quote
Reply


Thread Tools
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0