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

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 Search this Thread Display Modes
  #1 (permalink)  
Old 01-28-2010, 02:37 PM
Junior Member
 
Posts: 5
Default ldap search emtpy

I have done numerous clean installs. Everything works fine, send,recieve mail, web access, etc.

except,

when I poll the ldap server I get no hits, the tree is blank. I can view the schema, but there is no data.


Release 6.0.4_GA_2038.RHEL5_64_20091214192925 CentOS5_64 FOSS edition

anyone else exerienced this?

what do you want me to post to help with this.

Thank you.

Phil.
Reply With Quote
  #2 (permalink)  
Old 01-28-2010, 03:10 PM
Moderator
 
Posts: 7,929
Default

Welcome to the forums

What are you actually trying to do ?
__________________
Reply With Quote
  #3 (permalink)  
Old 01-28-2010, 03:48 PM
Junior Member
 
Posts: 5
Default

I have an app that is a mail relay between the interweb and zimbra. It polls zimbra via ldap to validate and create user mailboxes. When it polls for the domain and mailbox that I just added, I recieve back a "551, user not found." I've added user@domain.net. (names changed for conversation)

With ldap search

[root@mrmackey ~]# ldapsearch -x -h mail.domain.net -b "dc=net"
# extended LDIF
#
# LDAPv3
# base with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#

# search result
search: 2
result: 0 Success

# numResponses: 1
[root@mrmackey ~]#

When I connect with JXplorer, under the explore tab, it is empty. Show the world icon with no subtree (no plus to click on). The schema however is popluated properly.



A collegue of mine has zimbra 6 (not sure what rev) on centos 5.4 also and it returns values as expected.

Again everything else (well, haven't tried EVERYTHING) seems to work just fine. I can add and delete, the command line returns mailboxes (well this time around mailbox), mail to and from, etc...

Any ideas or thoughts on where to poke would be wonderful.

Thanks for the response.

phil.
Reply With Quote
  #4 (permalink)  
Old 01-28-2010, 07:52 PM
Moderator
 
Posts: 7,929
Default

If you are checking about mailboxes and whether an account exists you would be better using
Code:
bind_dn = uid=zmpostfix,cn=appaccts,cn=zimbra
Look under /opt/zimbra/conf at the ldap-*.cf files
__________________
Reply With Quote
  #5 (permalink)  
Old 01-29-2010, 09:01 AM
Junior Member
 
Posts: 5
Default

That basedn is not much better (although I may be doing it wrong....); object not found.

[root ~]# ldapsearch -x -h mail.domain.com -b uid=zmpostfix,cn=appaccts,cn=zimbra
# extended LDIF
#
# LDAPv3
# base with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#

# search result
search: 2
result: 32 No such object

# numResponses: 1
[root ~]#

There is something more fundamental here that I'm missing, or some link is broken with the install. I don't know the exact language, but the ldap tree is empty when connecting to 389. My 5.0 install works fine. And I see that you are using a slightly different version. Perhaps I'll try that one.

I'll poke thur those file. Maybe that will enlighten me or give me an idead.
Reply With Quote
  #6 (permalink)  
Old 02-09-2010, 02:52 PM
Junior Member
 
Posts: 5
Default

My solution was to intall zimbra 5.0.6, which everything worked after the install. Upgrated to 6, and then ldap worked.

Reply With Quote
  #7 (permalink)  
Old 04-21-2010, 01:41 PM
Senior Member
 
Posts: 54
Default

I am having the same problem trying to query zimbra 6 ldap (for spam filter mailbox verification, and to speed performance of a mail migration script we're developing):

ldapsearch -x -h zimbra5-host -b "dc=peak,dc=org" mail=alan@xyzzy.peak.org mail

works, but:

ldapsearch -x -h zimbra6-host -b "dc=peak,dc=org" mail=alan@xyzzy.peak.org mail

comes up emtpy.
Reply With Quote
  #8 (permalink)  
Old 04-21-2010, 02:35 PM
Zimbra Employee
 
Posts: 184
Default

Just guessing here, but maybe ldap anonymous connections were disabled?
Reply With Quote
  #9 (permalink)  
Old 04-21-2010, 03:38 PM
Junior Member
 
Posts: 5
Default

ldap newb. so I can't add any more than I already did. I have an additional 6 box for which ldap doesn't work (comes up emtpy), "backup the data", destroy and install 5, then upgrade, as that is the only solution I have.

as for anonymous, maybe a fresh install of 6 disables it, but un upgrade doesn't. just another guess which kinda fits the facts.
Reply With Quote
  #10 (permalink)  
Old 04-21-2010, 05:25 PM
Senior Member
 
Posts: 54
Default

I was looking around the new style configs and noticed that "noanonymous" was set, so tried various bindings which didn't work, but after wiresharking and realizing my mistake, got it to work with the admin binding:

ldapsearch -x -D uid=admin,ou=people,dc=base,dc=admin,dc=domain -W -h zimbra6-host -b "dc=target,dc=domain"
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.