You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Andrei Tchijov (JIRA)" <ji...@apache.org> on 2007/01/03 05:07:27 UTC

[jira] Created: (DIRSERVER-810) ldap_search_s hangs

ldap_search_s hangs 
--------------------

                 Key: DIRSERVER-810
                 URL: https://issues.apache.org/jira/browse/DIRSERVER-810
             Project: Directory ApacheDS
          Issue Type: Bug
          Components: ldap
    Affects Versions: 1.0
         Environment: Client: Windows XP
Server: Mac OS X
            Reporter: Andrei Tchijov


I am trying to use pGINA ldapauth module against ApacheDS.  It mostly work, but there is one scenario when ldap_search_s call hangs indefinitely.  I am quite sure that ldap_search_s gets invoked and I am almost sure that it gets invoked with good parameters.  On server side, I know that none of interceptors gets invoked for this request.  I have captured packets with tcpdump and will attach results to this ticket.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Re: [jira] Commented: (DIRSERVER-810) ldap_search_s hangs

Posted by Emmanuel Lecharny <el...@gmail.com>.
We currently have a 'work in progress' trunks.

just do :
svn co
http://svn.apache.org/repos/asf/directory/branches/apacheds/1.0-trunks build
cd build
mvn clean install
cd apacheds/server-installers
mvn install

it will generate an installer for your target OS, and you will fin the jar
in target/images (you will have 4 jars, one per system : just pick the one
which fits your need)

To install the new ADS, just do java -jar <installer.jar>. You may need to
be root on linux.

On 1/3/07, Andrei Tchijov (JIRA) <ji...@apache.org> wrote:
>
>
>     [
> https://issues.apache.org/jira/browse/DIRSERVER-810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12461948]
>
> Andrei Tchijov commented on DIRSERVER-810:
> ------------------------------------------
>
> Sorry to bother you with such a trivial matter but, to build from the
> trunk ... should this be sufficient
>
>         svn checkout http://svn.apache.org/repos/asf/directory/trunks/
> apacheds build
>         cd build
>         mvn install
>
> apparently not. It fails  with this message
>
> .../build/schema-registries/src/main/java/org/apache/directory/server/
> schema/registries/SyntaxCheckerRegistry.java:[27,54] package
> org.apache.directory.shared.ldap.schema.syntax does not exist
> .../build/schema-registries/src/main/java/org/apache/directory/server/
> schema/registries/SyntaxCheckerRegistry.java:[46,46] cannot find symbol
> symbol  : class SyntaxChecker
> location: interface
> org.apache.directory.server.schema.registries.SyntaxCheckerRegistry
>
>
>
>
>
>
> > ldap_search_s hangs
> > --------------------
> >
> >                 Key: DIRSERVER-810
> >                 URL: https://issues.apache.org/jira/browse/DIRSERVER-810
> >             Project: Directory ApacheDS
> >          Issue Type: Bug
> >          Components: ldap
> >    Affects Versions: 1.0
> >         Environment: Client: Windows XP
> > Server: Mac OS X
> >            Reporter: Andrei Tchijov
> >         Attachments: DIRSERVER-810.ldapSearchCompare.c,
> DIRSERVER-810.log-1.bin, DIRSERVER-810.log-1.txt,
> DIRSERVER-810.pgina.log-1.txt, DIRSERVER-810.server.log-1.txt
> >
> >
> > I am trying to use pGINA ldapauth module against ApacheDS.  It mostly
> work, but there is one scenario when ldap_search_s call hangs
> indefinitely.  I am quite sure that ldap_search_s gets invoked and I am
> almost sure that it gets invoked with good parameters.  On server side, I
> know that none of interceptors gets invoked for this request.  I have
> captured packets with tcpdump and will attach results to this ticket.
>
> --
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the administrators:
> https://issues.apache.org/jira/secure/Administrators.jspa
> -
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
>
>


-- 
Cordialement,
Emmanuel Lécharny
www.iktek.com

[jira] Updated: (DIRSERVER-810) ldap_search_s hangs

Posted by "Andrei Tchijov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-810?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrei Tchijov updated DIRSERVER-810:
-------------------------------------

    Attachment: DIRSERVER-810.server.log-2.txt

Attached is new server log ( 1.0.1-SNAPSHOT )



> ldap_search_s hangs 
> --------------------
>
>                 Key: DIRSERVER-810
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-810
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>    Affects Versions: 1.0
>         Environment: Client: Windows XP
> Server: Mac OS X
>            Reporter: Andrei Tchijov
>         Attachments: DIRSERVER-810.ldapSearchCompare.c, DIRSERVER-810.log-1.bin, DIRSERVER-810.log-1.txt, DIRSERVER-810.pgina.log-1.txt, DIRSERVER-810.server.log-1.txt, DIRSERVER-810.server.log-2.txt
>
>
> I am trying to use pGINA ldapauth module against ApacheDS.  It mostly work, but there is one scenario when ldap_search_s call hangs indefinitely.  I am quite sure that ldap_search_s gets invoked and I am almost sure that it gets invoked with good parameters.  On server side, I know that none of interceptors gets invoked for this request.  I have captured packets with tcpdump and will attach results to this ticket.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (DIRSERVER-810) ldap_search_s hangs

Posted by "Andrei Tchijov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-810?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrei Tchijov updated DIRSERVER-810:
-------------------------------------

    Attachment: DIRSERVER-810.server.log-3.txt

Yet another log. Even more debugging



> ldap_search_s hangs 
> --------------------
>
>                 Key: DIRSERVER-810
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-810
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>    Affects Versions: 1.0
>         Environment: Client: Windows XP
> Server: Mac OS X
>            Reporter: Andrei Tchijov
>         Attachments: DIRSERVER-810.ldapSearchCompare.c, DIRSERVER-810.log-1.bin, DIRSERVER-810.log-1.txt, DIRSERVER-810.pgina.log-1.txt, DIRSERVER-810.server.log-1.txt, DIRSERVER-810.server.log-2.txt, DIRSERVER-810.server.log-3.txt
>
>
> I am trying to use pGINA ldapauth module against ApacheDS.  It mostly work, but there is one scenario when ldap_search_s call hangs indefinitely.  I am quite sure that ldap_search_s gets invoked and I am almost sure that it gets invoked with good parameters.  On server side, I know that none of interceptors gets invoked for this request.  I have captured packets with tcpdump and will attach results to this ticket.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (DIRSERVER-810) ldap_search_s hangs

Posted by "Andrei Tchijov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12461972 ] 

Andrei Tchijov commented on DIRSERVER-810:
------------------------------------------

Emmanuel,
   I assume you have sent the whole sequence of PDUs (not just last  
search)? Do you have any suggestion about what to do next?
Andrei





> ldap_search_s hangs 
> --------------------
>
>                 Key: DIRSERVER-810
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-810
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>    Affects Versions: 1.0
>         Environment: Client: Windows XP
> Server: Mac OS X
>            Reporter: Andrei Tchijov
>         Attachments: DIRSERVER-810.ldapSearchCompare.c, DIRSERVER-810.log-1.bin, DIRSERVER-810.log-1.txt, DIRSERVER-810.pgina.log-1.txt, DIRSERVER-810.server.log-1.txt
>
>
> I am trying to use pGINA ldapauth module against ApacheDS.  It mostly work, but there is one scenario when ldap_search_s call hangs indefinitely.  I am quite sure that ldap_search_s gets invoked and I am almost sure that it gets invoked with good parameters.  On server side, I know that none of interceptors gets invoked for this request.  I have captured packets with tcpdump and will attach results to this ticket.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (DIRSERVER-810) ldap_search_s hangs

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12462021 ] 

Emmanuel Lecharny commented on DIRSERVER-810:
---------------------------------------------

committed in 1.0-trunks : http://svn.apache.org/viewvc?view=rev&rev=492237 and http://svn.apache.org/viewvc?view=rev&rev=492237
committed in 1.1 trunks : http://svn.apache.org/viewvc?view=rev&rev=492231 and http://svn.apache.org/viewvc?view=rev&rev=492229

> ldap_search_s hangs 
> --------------------
>
>                 Key: DIRSERVER-810
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-810
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>    Affects Versions: 1.0
>         Environment: Client: Windows XP
> Server: Mac OS X
>            Reporter: Andrei Tchijov
>         Attachments: DIRSERVER-810.ldapSearchCompare.c, DIRSERVER-810.log-1.bin, DIRSERVER-810.log-1.txt, DIRSERVER-810.pgina.log-1.txt, DIRSERVER-810.server.log-1.txt, DIRSERVER-810.server.log-2.txt, DIRSERVER-810.server.log-3.txt, DIRSERVER-810.server.log-4.txt
>
>
> I am trying to use pGINA ldapauth module against ApacheDS.  It mostly work, but there is one scenario when ldap_search_s call hangs indefinitely.  I am quite sure that ldap_search_s gets invoked and I am almost sure that it gets invoked with good parameters.  On server side, I know that none of interceptors gets invoked for this request.  I have captured packets with tcpdump and will attach results to this ticket.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (DIRSERVER-810) ldap_search_s hangs

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12461947 ] 

Emmanuel Lecharny commented on DIRSERVER-810:
---------------------------------------------

Damn ! The evil NPE strik back !! (Ok, as expected ...)

Waiting for a better log, when you will have installed a new server build from 1.0-trunks, then.

What you can do is trying this request with a different browser when the server is suppose to hang, and also try to do another request when the serveur is supposed to be hang to see if it's not a pb with the PDU length ( what I suspect is that when trying to decode this request, the decoder is waiting for more bytes so wait ad vitam aeternam ...) I gonna try to implement the decoding of this PDU as a test case just to check.

> ldap_search_s hangs 
> --------------------
>
>                 Key: DIRSERVER-810
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-810
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>    Affects Versions: 1.0
>         Environment: Client: Windows XP
> Server: Mac OS X
>            Reporter: Andrei Tchijov
>         Attachments: DIRSERVER-810.ldapSearchCompare.c, DIRSERVER-810.log-1.bin, DIRSERVER-810.log-1.txt, DIRSERVER-810.pgina.log-1.txt, DIRSERVER-810.server.log-1.txt
>
>
> I am trying to use pGINA ldapauth module against ApacheDS.  It mostly work, but there is one scenario when ldap_search_s call hangs indefinitely.  I am quite sure that ldap_search_s gets invoked and I am almost sure that it gets invoked with good parameters.  On server side, I know that none of interceptors gets invoked for this request.  I have captured packets with tcpdump and will attach results to this ticket.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (DIRSERVER-810) ldap_search_s hangs

Posted by "Andrei Tchijov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-810?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrei Tchijov updated DIRSERVER-810:
-------------------------------------

    Attachment: DIRSERVER-810.server.log-4.txt

Yet another log.




> ldap_search_s hangs 
> --------------------
>
>                 Key: DIRSERVER-810
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-810
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>    Affects Versions: 1.0
>         Environment: Client: Windows XP
> Server: Mac OS X
>            Reporter: Andrei Tchijov
>         Attachments: DIRSERVER-810.ldapSearchCompare.c, DIRSERVER-810.log-1.bin, DIRSERVER-810.log-1.txt, DIRSERVER-810.pgina.log-1.txt, DIRSERVER-810.server.log-1.txt, DIRSERVER-810.server.log-2.txt, DIRSERVER-810.server.log-3.txt, DIRSERVER-810.server.log-4.txt
>
>
> I am trying to use pGINA ldapauth module against ApacheDS.  It mostly work, but there is one scenario when ldap_search_s call hangs indefinitely.  I am quite sure that ldap_search_s gets invoked and I am almost sure that it gets invoked with good parameters.  On server side, I know that none of interceptors gets invoked for this request.  I have captured packets with tcpdump and will attach results to this ticket.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (DIRSERVER-810) ldap_search_s hangs

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12461921 ] 

Emmanuel Lecharny commented on DIRSERVER-810:
---------------------------------------------

Is it possible to provide some server's log? (Possibly using Debug mode)

It would also be cool to give Ldap decoded TCP dump, because reading Ldab ASN.1 bytes is pretty rough when you just wake up :)

> ldap_search_s hangs 
> --------------------
>
>                 Key: DIRSERVER-810
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-810
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>    Affects Versions: 1.0
>         Environment: Client: Windows XP
> Server: Mac OS X
>            Reporter: Andrei Tchijov
>         Attachments: DIRSERVER-810.ldapSearchCompare.c, DIRSERVER-810.log-1.txt, DIRSERVER-810.pgina.log-1.txt
>
>
> I am trying to use pGINA ldapauth module against ApacheDS.  It mostly work, but there is one scenario when ldap_search_s call hangs indefinitely.  I am quite sure that ldap_search_s gets invoked and I am almost sure that it gets invoked with good parameters.  On server side, I know that none of interceptors gets invoked for this request.  I have captured packets with tcpdump and will attach results to this ticket.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (DIRSERVER-810) ldap_search_s hangs

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12461979 ] 

Emmanuel Lecharny commented on DIRSERVER-810:
---------------------------------------------

No, I have just tested the last PDU. The rationnal is that if a PDU is incorrect, you will get an error (and you don't have error so far), or if it's incomplete, then the server will wait forever for the missing bytes, until the socket is closed by either the client or a timeout happen. So far, the last PDU is correct and complete. 

I think there is something wrong elswhere, but to be able to analyse it, what I need is :
- a full DEBUG trace of the server with the offending sequence (trying to limit other interraction to a bare minimum, because traces will be huge)
or
- all the schema and data to be able to debug the server, as far as I can reproduce the problem on my machine and if the data are not confidential.

It's up to you...

I engage you to connect on irc (irc.freenode.net, channel #directory-dev) if you want to discuss further, or have any question which need more interactivity. i'll be connected till 8pm, CEST ( I think we are almost on the same timezone)

> ldap_search_s hangs 
> --------------------
>
>                 Key: DIRSERVER-810
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-810
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>    Affects Versions: 1.0
>         Environment: Client: Windows XP
> Server: Mac OS X
>            Reporter: Andrei Tchijov
>         Attachments: DIRSERVER-810.ldapSearchCompare.c, DIRSERVER-810.log-1.bin, DIRSERVER-810.log-1.txt, DIRSERVER-810.pgina.log-1.txt, DIRSERVER-810.server.log-1.txt
>
>
> I am trying to use pGINA ldapauth module against ApacheDS.  It mostly work, but there is one scenario when ldap_search_s call hangs indefinitely.  I am quite sure that ldap_search_s gets invoked and I am almost sure that it gets invoked with good parameters.  On server side, I know that none of interceptors gets invoked for this request.  I have captured packets with tcpdump and will attach results to this ticket.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (DIRSERVER-810) ldap_search_s hangs

Posted by "Andrei Tchijov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-810?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrei Tchijov updated DIRSERVER-810:
-------------------------------------

    Attachment: DIRSERVER-810.log-1.bin
                DIRSERVER-810.server.log-1.txt

Emmanuel,
	Thanks for ultra quick response. Please find attached to this e-mail  
2 files (I am trying to attach these files to JIRA issue, but for  
some reason jira is super slow today ??? ):

		DIRSERVER-810.log-1.bin - binary output from tcpdump,
		DIRSERVER-810.server.log-1.txt - server side log file (it is 1.0  
log. I will e-mail new log as soon as I build new installer from the  
trunk)

	The last search request is the one which correspond with hanging  
ldap_search_s call. I have tried to adjust filter (to remove trailing  
spaces) -- result still the same. The search request in questions,  
supposed to fail (my interceptor making sure that it fails). The  
problem is that on this particular request, none of interceptors get  
invoked.  Also, the very same search works works just fine if used  
under slightly different scenario (different sequence of bind/search  
requests generated by ldapauth).

Andrei Tchijov
Scalable Biometrics, LLC






> ldap_search_s hangs 
> --------------------
>
>                 Key: DIRSERVER-810
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-810
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>    Affects Versions: 1.0
>         Environment: Client: Windows XP
> Server: Mac OS X
>            Reporter: Andrei Tchijov
>         Attachments: DIRSERVER-810.ldapSearchCompare.c, DIRSERVER-810.log-1.bin, DIRSERVER-810.log-1.txt, DIRSERVER-810.pgina.log-1.txt, DIRSERVER-810.server.log-1.txt
>
>
> I am trying to use pGINA ldapauth module against ApacheDS.  It mostly work, but there is one scenario when ldap_search_s call hangs indefinitely.  I am quite sure that ldap_search_s gets invoked and I am almost sure that it gets invoked with good parameters.  On server side, I know that none of interceptors gets invoked for this request.  I have captured packets with tcpdump and will attach results to this ticket.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] Updated: (DIRSERVER-810) ldap_search_s hangs

Posted by "Andrei Tchijov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-810?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrei Tchijov updated DIRSERVER-810:
-------------------------------------

    Attachment: DIRSERVER-810.pgina.log-1.txt

> ldap_search_s hangs 
> --------------------
>
>                 Key: DIRSERVER-810
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-810
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>    Affects Versions: 1.0
>         Environment: Client: Windows XP
> Server: Mac OS X
>            Reporter: Andrei Tchijov
>         Attachments: DIRSERVER-810.ldapSearchCompare.c, DIRSERVER-810.log-1.txt, DIRSERVER-810.pgina.log-1.txt
>
>
> I am trying to use pGINA ldapauth module against ApacheDS.  It mostly work, but there is one scenario when ldap_search_s call hangs indefinitely.  I am quite sure that ldap_search_s gets invoked and I am almost sure that it gets invoked with good parameters.  On server side, I know that none of interceptors gets invoked for this request.  I have captured packets with tcpdump and will attach results to this ticket.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (DIRSERVER-810) ldap_search_s hangs

Posted by "Andrei Tchijov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-810?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrei Tchijov updated DIRSERVER-810:
-------------------------------------

    Attachment: DIRSERVER-810.log-1.txt

> ldap_search_s hangs 
> --------------------
>
>                 Key: DIRSERVER-810
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-810
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>    Affects Versions: 1.0
>         Environment: Client: Windows XP
> Server: Mac OS X
>            Reporter: Andrei Tchijov
>         Attachments: DIRSERVER-810.log-1.txt
>
>
> I am trying to use pGINA ldapauth module against ApacheDS.  It mostly work, but there is one scenario when ldap_search_s call hangs indefinitely.  I am quite sure that ldap_search_s gets invoked and I am almost sure that it gets invoked with good parameters.  On server side, I know that none of interceptors gets invoked for this request.  I have captured packets with tcpdump and will attach results to this ticket.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (DIRSERVER-810) ldap_search_s hangs

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12461952 ] 

Emmanuel Lecharny commented on DIRSERVER-810:
---------------------------------------------

I have added a test case with the sent PDU, and it pass like a charm. There must be something wrong elswhere, it's not a decoder problem.

> ldap_search_s hangs 
> --------------------
>
>                 Key: DIRSERVER-810
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-810
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>    Affects Versions: 1.0
>         Environment: Client: Windows XP
> Server: Mac OS X
>            Reporter: Andrei Tchijov
>         Attachments: DIRSERVER-810.ldapSearchCompare.c, DIRSERVER-810.log-1.bin, DIRSERVER-810.log-1.txt, DIRSERVER-810.pgina.log-1.txt, DIRSERVER-810.server.log-1.txt
>
>
> I am trying to use pGINA ldapauth module against ApacheDS.  It mostly work, but there is one scenario when ldap_search_s call hangs indefinitely.  I am quite sure that ldap_search_s gets invoked and I am almost sure that it gets invoked with good parameters.  On server side, I know that none of interceptors gets invoked for this request.  I have captured packets with tcpdump and will attach results to this ticket.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (DIRSERVER-810) ldap_search_s hangs

Posted by "Andrei Tchijov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12461948 ] 

Andrei Tchijov commented on DIRSERVER-810:
------------------------------------------

Sorry to bother you with such a trivial matter but, to build from the  
trunk ... should this be sufficient

	svn checkout http://svn.apache.org/repos/asf/directory/trunks/ 
apacheds build
	cd build
	mvn install

apparently not. It fails  with this message

.../build/schema-registries/src/main/java/org/apache/directory/server/ 
schema/registries/SyntaxCheckerRegistry.java:[27,54] package  
org.apache.directory.shared.ldap.schema.syntax does not exist
.../build/schema-registries/src/main/java/org/apache/directory/server/ 
schema/registries/SyntaxCheckerRegistry.java:[46,46] cannot find symbol
symbol  : class SyntaxChecker
location: interface  
org.apache.directory.server.schema.registries.SyntaxCheckerRegistry






> ldap_search_s hangs 
> --------------------
>
>                 Key: DIRSERVER-810
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-810
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>    Affects Versions: 1.0
>         Environment: Client: Windows XP
> Server: Mac OS X
>            Reporter: Andrei Tchijov
>         Attachments: DIRSERVER-810.ldapSearchCompare.c, DIRSERVER-810.log-1.bin, DIRSERVER-810.log-1.txt, DIRSERVER-810.pgina.log-1.txt, DIRSERVER-810.server.log-1.txt
>
>
> I am trying to use pGINA ldapauth module against ApacheDS.  It mostly work, but there is one scenario when ldap_search_s call hangs indefinitely.  I am quite sure that ldap_search_s gets invoked and I am almost sure that it gets invoked with good parameters.  On server side, I know that none of interceptors gets invoked for this request.  I have captured packets with tcpdump and will attach results to this ticket.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (DIRSERVER-810) ldap_search_s hangs

Posted by "Andrei Tchijov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12461903 ] 

Andrei Tchijov commented on DIRSERVER-810:
------------------------------------------

DIRSERVER-810.log-1.txt - tcpdump log

DIRSERVER-810.ldapSearchCompare.c  - excerpt from ldapauth pGINA plag-in. 

DIRSERVER-810.pgina.log-1.txt  - debugging output produced by ldapauth plgug-in.

> ldap_search_s hangs 
> --------------------
>
>                 Key: DIRSERVER-810
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-810
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>    Affects Versions: 1.0
>         Environment: Client: Windows XP
> Server: Mac OS X
>            Reporter: Andrei Tchijov
>         Attachments: DIRSERVER-810.ldapSearchCompare.c, DIRSERVER-810.log-1.txt, DIRSERVER-810.pgina.log-1.txt
>
>
> I am trying to use pGINA ldapauth module against ApacheDS.  It mostly work, but there is one scenario when ldap_search_s call hangs indefinitely.  I am quite sure that ldap_search_s gets invoked and I am almost sure that it gets invoked with good parameters.  On server side, I know that none of interceptors gets invoked for this request.  I have captured packets with tcpdump and will attach results to this ticket.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (DIRSERVER-810) ldap_search_s hangs

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12461942 ] 

Emmanuel Lecharny commented on DIRSERVER-810:
---------------------------------------------

After inspection of your tcpdump, I see that the last received request  is a search request for (& ( uid=buster ) ( sbAttribute=Buy )). There is only one strange thing about it : we have a space after 'buster' and 'Buy' in the request :
30 84 00 00 00 65 
  02 01 03
  63 84 00 00 00 5c
    04 12 
      6f 75 3d 75 73 65 72 73 2c 6f 75 3d 73 79 73 74 65 6d ;; 'ou=users,ou=system'
    0a 01 01 
    0a 01 00
    02 01 00 
    02 01 1e 
    01 01 ff 
    a0 84 00 00 00 2d
      a3 84 00 00 00 0e 
        04 03 
          75 69 64
        04 07 
          62 75 73 74 65 72 20  ;; 'buster '  (with a space at the end)
      a3 84 00 00 00 13 
        04 0b 
          73 62 41 74 74 72 69 62 75 74 65 ;; sbAttribute
        04 04 
          42 75 79 20 ;; 'Buy ' (with a space at the end)
      30 84 00 00 00 00

I don't know if this space has some impact on the search (it depends on the sbAttribute type), I think it's ignored, but I just wonder why the clent send it. Another element which is a surprise is the 84 XX XX XX XX which is used to describe the length of the following bytes. Whatever, this is normally handled by the server.

At this point, I would like to know how many entries you have in the server, and if you obtain the same hang with LdapBrowser, for instance, with the same request.

Of course, some server trace will be helpfull (except that 1.0 has a bug which generate a NPE when in DEBUG mode,  so you will have to create a new installer from 1.0-trunks branch, where we have a fixed version)

> ldap_search_s hangs 
> --------------------
>
>                 Key: DIRSERVER-810
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-810
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>    Affects Versions: 1.0
>         Environment: Client: Windows XP
> Server: Mac OS X
>            Reporter: Andrei Tchijov
>         Attachments: DIRSERVER-810.ldapSearchCompare.c, DIRSERVER-810.log-1.txt, DIRSERVER-810.pgina.log-1.txt
>
>
> I am trying to use pGINA ldapauth module against ApacheDS.  It mostly work, but there is one scenario when ldap_search_s call hangs indefinitely.  I am quite sure that ldap_search_s gets invoked and I am almost sure that it gets invoked with good parameters.  On server side, I know that none of interceptors gets invoked for this request.  I have captured packets with tcpdump and will attach results to this ticket.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (DIRSERVER-810) ldap_search_s hangs

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-810?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny closed DIRSERVER-810.
---------------------------------------


closed

> ldap_search_s hangs 
> --------------------
>
>                 Key: DIRSERVER-810
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-810
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>    Affects Versions: 1.0
>         Environment: Client: Windows XP
> Server: Mac OS X
>            Reporter: Andrei Tchijov
>         Attachments: DIRSERVER-810.ldapSearchCompare.c, DIRSERVER-810.log-1.bin, DIRSERVER-810.log-1.txt, DIRSERVER-810.pgina.log-1.txt, DIRSERVER-810.server.log-1.txt, DIRSERVER-810.server.log-2.txt, DIRSERVER-810.server.log-3.txt, DIRSERVER-810.server.log-4.txt
>
>
> I am trying to use pGINA ldapauth module against ApacheDS.  It mostly work, but there is one scenario when ldap_search_s call hangs indefinitely.  I am quite sure that ldap_search_s gets invoked and I am almost sure that it gets invoked with good parameters.  On server side, I know that none of interceptors gets invoked for this request.  I have captured packets with tcpdump and will attach results to this ticket.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (DIRSERVER-810) ldap_search_s hangs

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-810?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny resolved DIRSERVER-810.
-----------------------------------------

    Resolution: Fixed

Fixed

> ldap_search_s hangs 
> --------------------
>
>                 Key: DIRSERVER-810
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-810
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>    Affects Versions: 1.0
>         Environment: Client: Windows XP
> Server: Mac OS X
>            Reporter: Andrei Tchijov
>         Attachments: DIRSERVER-810.ldapSearchCompare.c, DIRSERVER-810.log-1.bin, DIRSERVER-810.log-1.txt, DIRSERVER-810.pgina.log-1.txt, DIRSERVER-810.server.log-1.txt, DIRSERVER-810.server.log-2.txt, DIRSERVER-810.server.log-3.txt, DIRSERVER-810.server.log-4.txt
>
>
> I am trying to use pGINA ldapauth module against ApacheDS.  It mostly work, but there is one scenario when ldap_search_s call hangs indefinitely.  I am quite sure that ldap_search_s gets invoked and I am almost sure that it gets invoked with good parameters.  On server side, I know that none of interceptors gets invoked for this request.  I have captured packets with tcpdump and will attach results to this ticket.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (DIRSERVER-810) ldap_search_s hangs

Posted by "Andrei Tchijov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-810?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrei Tchijov updated DIRSERVER-810:
-------------------------------------

    Attachment: DIRSERVER-810.ldapSearchCompare.c

> ldap_search_s hangs 
> --------------------
>
>                 Key: DIRSERVER-810
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-810
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>    Affects Versions: 1.0
>         Environment: Client: Windows XP
> Server: Mac OS X
>            Reporter: Andrei Tchijov
>         Attachments: DIRSERVER-810.ldapSearchCompare.c, DIRSERVER-810.log-1.txt, DIRSERVER-810.pgina.log-1.txt
>
>
> I am trying to use pGINA ldapauth module against ApacheDS.  It mostly work, but there is one scenario when ldap_search_s call hangs indefinitely.  I am quite sure that ldap_search_s gets invoked and I am almost sure that it gets invoked with good parameters.  On server side, I know that none of interceptors gets invoked for this request.  I have captured packets with tcpdump and will attach results to this ticket.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira