Results 1 to 6 of 6

Thread: Ldap Search Error - No Bug i think

  1. #1
    xander2k is offline Active Member
    Join Date
    Jul 2009
    Posts
    46
    Rep Power
    5

    Default Ldap Search Error - No Bug i think

    Since i've upgraded from Zimbra 5.0 to 6.0 Beta 2 i get an Ldap search error when access the internal GAL in the Webclient.

    After upgrading to 6.0 RC1 the error still exists. It's no bug but an error that can be resolved, or not? but i don't know how.

    Someone has made an bugticket, but this is uncomfirmed as bug.

    Code:
    com.zimbra.common.service.ServiceException: system failure: ldap search failed
    ExceptionId:btpool0-31:1248882489881:6a9d1ff30f31b227
    Code:service.FAILURE
            at com.zimbra.common.service.ServiceException.FAILURE(ServiceException.java:251)
            at com.zimbra.cs.gal.GalSearchControl.ldapSearch(GalSearchControl.java:390)
            at com.zimbra.cs.gal.GalSearchControl.search(GalSearchControl.java:113)
            at com.zimbra.cs.service.account.SearchGal.handle(SearchGal.java:76)
            at com.zimbra.soap.SoapEngine.dispatchRequest(SoapEngine.java:415)
            at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.java:273)
            at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.java:157)
            at com.zimbra.soap.SoapServlet.doPost(SoapServlet.java:273)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
            at com.zimbra.cs.servlet.ZimbraServlet.service(ZimbraServlet.java:187)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
            at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
            at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1148)
            at org.mortbay.servlet.UserAgentFilter.doFilter(UserAgentFilter.java:81)
            at org.mortbay.servlet.GzipFilter.doFilter(GzipFilter.java:129)
            at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1139)
            at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:378)
            at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
            at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
            at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
            at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)
            at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
            at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
            at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
            at org.mortbay.jetty.handler.rewrite.RewriteHandler.handle(RewriteHandler.java:230)
            at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
            at org.mortbay.jetty.Server.handle(Server.java:324)
            at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:535)
            at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:886)
            at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747)
            at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
            at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
            at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
            at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451)
    Caused by: java.lang.NullPointerException
            at java.util.Hashtable.put(Hashtable.java:394)
            at com.zimbra.cs.account.ldap.ZimbraLdapContext.<init>(ZimbraLdapContext.java:404)
            at com.zimbra.cs.account.ldap.LdapUtil.doGalSearch(LdapUtil.java:992)
            at com.zimbra.cs.account.ldap.LdapUtil.galSearch(LdapUtil.java:979)
            at com.zimbra.cs.gal.GalSearchControl.ldapSearch(GalSearchControl.java:388)
            ... 32 more

    Code:
    method:	SearchGalRequest
    msg:	system failure: ldap search failed
    code:	service.FAILURE
    detail:	soap:Receiver
    trace:	btpool0-14:1248882515612:6a9d1ff30f31b227
    request:	
    
    Body: {
      SearchGalRequest: {
        _jsns: "urn:zimbraAccount",
        limit: 50,
        name: ".",
        offset: 0,
        sortBy: "nameAsc",
        type: "account"
       }
     },
    Header: {
      context: {
        _jsns: "urn:zimbra",
        account: {
          _content: "xxxxx@xxx.at",
          by: "name"
         },
        authToken: "(removed)",
        notify: {
          seq: 6
         },
        session: {
          _content: 110,
          id: 110
         },
        userAgent: {
          name: "ZimbraWebClient - FF3.0 (Win)",
          version: "6.0.0_RC1_1684.SuSEES10"
         }
       }
     }

  2. #2
    xander2k is offline Active Member
    Join Date
    Jul 2009
    Posts
    46
    Rep Power
    5

    Default

    i found the problem,

    i have a gal across two domains, so an internal and external ldap, if i use internal only for one domain it works but if i add an external ldap which is an other domain on the same machine with the following it doesn't works.

    Somebody knows the correct LDAP Filter options that works with ZCS 6.0 ? - the one in the wiki does not work.

  3. #3
    cayaraa's Avatar
    cayaraa is offline Special Member
    Join Date
    Jul 2009
    Posts
    106
    Rep Power
    6

    Default

    I'm getting this same problem on the 6.0 release NE. I found that if I enter in a bind DN that searching works but if I leave it as anonymous it fails:


    Code:
    2009-09-04 12:02:05,101 ERROR [ScheduledTask-3] [name=galsync@domain.com;mid=39;ds=zimbra2;] gal - Error executing gal search
    java.lang.NullPointerException
    	at java.util.Hashtable.put(Hashtable.java:394)
    	at com.zimbra.cs.account.ldap.ZimbraLdapContext.<init>(ZimbraLdapContext.java:404)
    	at com.zimbra.cs.account.ldap.LdapUtil.doGalSearch(LdapUtil.java:992)
    	at com.zimbra.cs.account.ldap.LdapUtil.galSearch(LdapUtil.java:979)
    	at com.zimbra.cs.gal.GalImport.searchGal(GalImport.java:143)
    	at com.zimbra.cs.gal.GalImport.importGal(GalImport.java:104)
    	at com.zimbra.cs.gal.GalImport.importData(GalImport.java:54)
    	at com.zimbra.cs.datasource.DataSourceManager.importData(DataSourceManager.java:167)
    	at com.zimbra.cs.datasource.DataSourceManager.importData(DataSourceManager.java:130)
    	at com.zimbra.cs.datasource.DataSourceTask.call(DataSourceTask.java:82)
    	at com.zimbra.cs.datasource.DataSourceTask.call(DataSourceTask.java:28)
    	at com.zimbra.common.util.TaskScheduler$TaskRunner.call(TaskScheduler.java:96)
    	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
    	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    	at java.lang.Thread.run(Thread.java:619)
    2009-09-04 12:02:05,101 INFO  [ScheduledTask-3] [name=galsync@domain.com;mid=39;ds=zimbra2;] datasource - Import completed for data source 'zimbra2'
    When I run an ldapsearch from the command line on the zimbra server with the search filter I'm using it works just fine:

    Code:
    /opt/zimbra/openldap/bin/ldapsearch -b "ou=People,dc=domain,dc=com" -x -h host.domain.com "(|(cn=username*)(sn=username*)(gn=username*)(mail=username*))"
    Last edited by cayaraa; 09-04-2009 at 10:51 AM.

  4. #4
    mikewhitton is offline Junior Member
    Join Date
    Sep 2009
    Posts
    7
    Rep Power
    5

    Default Interesting

    I am having the same issue. When I put in the bind credentials it started working, however, it will not let me hit 'OK' on the selection box after I pick the address...

    This seems like a bug...

  5. #5
    azacamis is offline Intermediate Member
    Join Date
    Jun 2007
    Posts
    19
    Rep Power
    8

    Default

    looks like this could be the reason when I look at the logs.

    missing filter def cn=*%s* in zimbraGalLdapFilterDef

    can someone show the path on how to solve this?

  6. #6
    agnes is offline Active Member
    Join Date
    Mar 2008
    Posts
    40
    Rep Power
    7

    Default

    I had the same exception.
    It turned out to be a wrong config (missed bind DN/password).



    Quote Originally Posted by cayaraa View Post
    I'm getting this same problem on the 6.0 release NE. I found that if I enter in a bind DN that searching works but if I leave it as anonymous it fails:


    Code:
    2009-09-04 12:02:05,101 ERROR [ScheduledTask-3] [name=galsync@domain.com;mid=39;ds=zimbra2;] gal - Error executing gal search
    java.lang.NullPointerException
    	at java.util.Hashtable.put(Hashtable.java:394)
    	at com.zimbra.cs.account.ldap.ZimbraLdapContext.<init>(ZimbraLdapContext.java:404)
    	at com.zimbra.cs.account.ldap.LdapUtil.doGalSearch(LdapUtil.java:992)
    	at com.zimbra.cs.account.ldap.LdapUtil.galSearch(LdapUtil.java:979)
    	at com.zimbra.cs.gal.GalImport.searchGal(GalImport.java:143)
    	at com.zimbra.cs.gal.GalImport.importGal(GalImport.java:104)
    	at com.zimbra.cs.gal.GalImport.importData(GalImport.java:54)
    	at com.zimbra.cs.datasource.DataSourceManager.importData(DataSourceManager.java:167)
    	at com.zimbra.cs.datasource.DataSourceManager.importData(DataSourceManager.java:130)
    	at com.zimbra.cs.datasource.DataSourceTask.call(DataSourceTask.java:82)
    	at com.zimbra.cs.datasource.DataSourceTask.call(DataSourceTask.java:28)
    	at com.zimbra.common.util.TaskScheduler$TaskRunner.call(TaskScheduler.java:96)
    	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
    	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    	at java.lang.Thread.run(Thread.java:619)
    2009-09-04 12:02:05,101 INFO  [ScheduledTask-3] [name=galsync@domain.com;mid=39;ds=zimbra2;] datasource - Import completed for data source 'zimbra2'
    When I run an ldapsearch from the command line on the zimbra server with the search filter I'm using it works just fine:

    Code:
    /opt/zimbra/openldap/bin/ldapsearch -b "ou=People,dc=domain,dc=com" -x -h host.domain.com "(|(cn=username*)(sn=username*)(gn=username*)(mail=username*))"
    Last edited by agnes; 10-01-2009 at 08:01 AM.

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. external authentication returns empty search
    By Nikos Lyberakis in forum Installation
    Replies: 1
    Last Post: 02-19-2008, 03:44 PM
  3. Upgrade: 4.5.5 -> 4.5.6 failed, LDAP/slapd issues
    By Daimyo in forum Installation
    Replies: 7
    Last Post: 08-04-2007, 09:23 PM
  4. Zimbra Install Problem - getDirectContext
    By bsimzer in forum Installation
    Replies: 27
    Last Post: 07-19-2007, 10:12 AM
  5. search builder bug?
    By wngoju in forum Users
    Replies: 4
    Last Post: 02-27-2006, 11:26 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
  •