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

Thread: ldap search emtpy

  1. #1
    dirtboy is offline Junior Member
    Join Date
    Jan 2010
    Posts
    5
    Rep Power
    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.

  2. #2
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,016
    Rep Power
    24

    Default

    Welcome to the forums

    What are you actually trying to do ?

  3. #3
    dirtboy is offline Junior Member
    Join Date
    Jan 2010
    Posts
    5
    Rep Power
    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.

  4. #4
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,016
    Rep Power
    24

    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

  5. #5
    dirtboy is offline Junior Member
    Join Date
    Jan 2010
    Posts
    5
    Rep Power
    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.

  6. #6
    dirtboy is offline Junior Member
    Join Date
    Jan 2010
    Posts
    5
    Rep Power
    5

    Default

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


  7. #7
    useopenid is offline Senior Member
    Join Date
    Jul 2008
    Location
    Corvallis, OR
    Posts
    54
    Rep Power
    6

    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.

  8. #8
    king0770's Avatar
    king0770 is offline Zimbra Employee
    Join Date
    Sep 2007
    Posts
    186
    Rep Power
    7

    Default

    Just guessing here, but maybe ldap anonymous connections were disabled?

  9. #9
    dirtboy is offline Junior Member
    Join Date
    Jan 2010
    Posts
    5
    Rep Power
    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.

  10. #10
    useopenid is offline Senior Member
    Join Date
    Jul 2008
    Location
    Corvallis, OR
    Posts
    54
    Rep Power
    6

    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"

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. GAL (LDAP) search error in 6b1
    By nyogtha in forum Administrators
    Replies: 3
    Last Post: 06-24-2009, 02:49 AM
  2. Replies: 8
    Last Post: 08-07-2008, 05:18 AM
  3. 3 testing: LDAP: 389 Failed when restore zimbra
    By victorLeong in forum Administrators
    Replies: 15
    Last Post: 05-24-2007, 06:45 AM
  4. Ldap Search Distribution List
    By jlhs5 in forum Administrators
    Replies: 0
    Last Post: 10-20-2006, 12:15 PM
  5. Possible bug in GAL Ldap search?
    By trapanator in forum Installation
    Replies: 1
    Last Post: 10-19-2006, 06:39 AM

Posting Permissions

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