You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2008/10/07 19:56:57 UTC

DO NOT REPLY [Bug 45962] New: LDAP: Could not set the connection timeout

https://issues.apache.org/bugzilla/show_bug.cgi?id=45962

           Summary: LDAP: Could not set the connection timeout
           Product: Apache httpd-2
           Version: 2.2.9
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_ldap
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: essiambl@gmail.com


I'm using httpd 2.2.9 to host our subversion repositories. I want to
authenticate our users against our Active Directory server. I have built and
installed apr 1.3.3, openldap 2.4.11, apr-util 1.3.4, httpd 2.2.9 and
subversion 1.5.2

Immediately after a server startup, I get these strange errors saying "LDAP:
Could not set the connection timeout" when I try to authenticate myself. The
weird thing is, after a couple of attempts at accessing the subversion content
(5 or 6 times), I'm eventually authenticated without error. Then it will work
for a while, then those same errors will come back. I have tried using a 2.3
version of openldap, same problems.

By the way, the server is a Solaris 10 (running as a virtual server) on sparc
hardware.

Here is what the interesting part of my configuration looks like :

<Location /svn>

  DAV svn
  SVNParentPath /usr/svn
  AuthzLDAPAuthoritative on
  AuthType Basic
  AuthBasicProvider ldap
  AuthUserFile /dev/null
  Require valid-user
  AuthName "my.domain.com"
  AuthLDAPBindDN "CN=user,CN=Users,DC=my,DC=domain,DC=com"
  AuthLDAPBindPassword "password"
  AuthLDAPURL
"ldap://my.domain.com/DC=my,DC=domain,DC=com?sAMAccountName?sub?(objectClass=user)"
</Location>

and the messages I get in my log file :

[Mon Sep 29 16:38:21 2008] [error] LDAP: Could not set the connection timeout
[Mon Sep 29 16:38:21 2008] [warn] [client 192.168.67.103] [6236] auth_ldap
authenticate: user test authentication failed; URI /svn/test [(null)][Unknown
error]

BTW, I ran the same setup on a linux machine without any problems.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45962] LDAP: Could not set the connection timeout

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45962





--- Comment #3 from Doc <es...@gmail.com>  2008-10-07 12:35:29 PST ---
Created an attachment (id=22680)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22680)
config.log of apr-util


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45962] LDAP: Could not set the connection timeout

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45962


Doc <es...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |ASSIGNED




-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45962] LDAP: Could not set the connection timeout

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45962


Doc <es...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #22709|application/octet-stream    |text/plain
          mime type|                            |




-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45962] LDAP: Could not set the connection timeout

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45962





--- Comment #2 from Doc <es...@gmail.com>  2008-10-07 12:34:03 PST ---
Created an attachment (id=22679)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22679)
ldd of apr_ldap.so


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45962] LDAP: Could not set the connection timeout

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45962





--- Comment #6 from Ruediger Pluem <rp...@apache.org>  2008-10-07 14:29:59 PST ---
As I thought you compiled against your LDAP SDK installed in /usr/local/ and
you are running against the LDAP SDK installed at /usr/lib. As you are using
different SDK's for compiling (openldap) and running (SUN LDAP SDK) it is quite
clear that problems like this are going to happen as all LDAP SDK's are
different and theses differences have to be taken into account during compile
time.
Please add --with-ldap-lib=/usr/local/lib to your apr-util configure call and
recompile apr-util and httpd. This should ensure that the correct LDAP library
is used during runtime.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45962] LDAP: Could not set the connection timeout

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45962





--- Comment #13 from Doc <es...@gmail.com>  2008-10-14 09:02:37 PST ---
Setting the LD_LIBRARY_PATH variable to /usr/local/lib seems to have no effect.
I'm still getting those same core dumps as before. I've tried building mod_ldap
and mod_authnz_ldap as shared modules and loading them from httpd.conf with the
same results. httpd will core dump whenever either module is enabled, even
without any ldap configuration.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45962] LDAP: Could not set the connection timeout

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45962





--- Comment #9 from Doc <es...@gmail.com>  2008-10-10 06:18:17 PST ---
Created an attachment (id=22711)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22711)
ldd of mod_authnz_ldap.so


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45962] LDAP: Could not set the connection timeout

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45962





--- Comment #8 from Doc <es...@gmail.com>  2008-10-10 06:17:23 PST ---
Created an attachment (id=22710)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22710)
stack 


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45962] LDAP: Could not set the connection timeout

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45962


Doc <es...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|                            |WORKSFORME




--- Comment #14 from Doc <es...@gmail.com>  2008-10-23 06:06:59 PST ---
I finally gave up trying to get OpenLDAP to work and was able to compile the
LDAP modules with the default LDAP libs from Solaris. I had some issues while
configuring Apache though. The configure script would detect the libs as being
OpenLDAP even while linking to Sun's libs. I had to completely removed OpenLDAP
before the libs were correctly identified as Solaris'.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45962] LDAP: Could not set the connection timeout

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45962





--- Comment #11 from Doc <es...@gmail.com>  2008-10-10 06:27:03 PST ---
I've added the --with-ldap-lib option to my apr-util configuration and
recompiled everything as you suggested. apr-util and httpd are now correctly
linked to my openldap libs in /usr/local/bin.

But now when I start the httpd server, I get endless errors and core dumps.
These errors look like :

child pid 8623 exit signal Bus error (10), possible coredump in /tmp

I've noticed that while httpd is linked against my openldap libs, mod_ldap.so
and mod_authnz_ldap.so are still linked to Sun's default ldap libs. I've tried
adding the --with-ldap-lib option to my httpd configure command but it doesn't
appear to be a valid option. 

I've included all relevant information in the latest attachments. 

Thank you for your time.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45962] LDAP: Could not set the connection timeout

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45962


Doc <es...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #22712|application/octet-stream    |text/plain
          mime type|                            |




-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45962] LDAP: Could not set the connection timeout

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45962





--- Comment #5 from Doc <es...@gmail.com>  2008-10-07 12:36:15 PST ---
Created an attachment (id=22682)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22682)
config log of httpd


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45962] LDAP: Could not set the connection timeout

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45962


Doc <es...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #22679|application/octet-stream    |text/plain
          mime type|                            |




-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45962] LDAP: Could not set the connection timeout

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45962





--- Comment #4 from Doc <es...@gmail.com>  2008-10-07 12:35:51 PST ---
Created an attachment (id=22681)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22681)
ldd of httpd


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45962] LDAP: Could not set the connection timeout

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45962





--- Comment #7 from Doc <es...@gmail.com>  2008-10-10 06:16:53 PST ---
Created an attachment (id=22709)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22709)
new ldd of httpd


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45962] LDAP: Could not set the connection timeout

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45962


Ruediger Pluem <rp...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |NEEDINFO




--- Comment #12 from Ruediger Pluem <rp...@apache.org>  2008-10-10 07:45:56 PST ---
Try using
export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH" before calling
apachectl start.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45962] LDAP: Could not set the connection timeout

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45962


Ruediger Pluem <rp...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO




--- Comment #1 from Ruediger Pluem <rp...@apache.org>  2008-10-07 11:45:57 PST ---
I assume that you may build against a different ldap library on Solaris then
you are running against on Solaris. Please provide your configure settings on
Solaris and an ldd of

bin/httpd
lib/apr-util-1/apr_ldap.so

Please execute ldd as the same user that you use to execute apachectl (most
likely root)


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45962] LDAP: Could not set the connection timeout

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45962





--- Comment #10 from Doc <es...@gmail.com>  2008-10-10 06:18:57 PST ---
Created an attachment (id=22712)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22712)
ldd of mod_ldap.so


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org