[bug-notifications] [apache2 0004930]: mod_ldap needs another package installed (missing package dependency?)

Mantis Bug Tracker noreply at opencsw.org
Mon Apr 2 11:46:05 CEST 2012


A NOTE has been added to this issue. 
====================================================================== 
https://www.opencsw.org/mantis/view.php?id=4930 
====================================================================== 
Reported By:                max_meyer
Assigned To:                bwalton
====================================================================== 
Project:                    apache2
Issue ID:                   4930
Category:                   regular use
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     feedback
====================================================================== 
Date Submitted:             2012-03-30 09:41 CEST
Last Modified:              2012-04-02 11:46 CEST
====================================================================== 
Summary:                    mod_ldap needs another package installed (missing
package dependency?)
Description: 
I stumbled over an issue using mod_ldap.

You get a HTTP error 500 with

[Fri Mar 30 09:22:28 2012] [info] [client <ip>] [389] auth_ldap
authenticate: user <user> authentication failed; URI /cgi-bin/gitweb.cgi
[LDAP: ldap initialization failed][Unknown (private extension) error]

in the error log file and ENOENT with truss

389:    stat64("/opt/csw/apache2/lib/apr_ldap-1.so", 0xFFBFC330) Err#2
ENOENT
389:    stat64("/opt/csw/apache2/lib/apr-util-1/apr_ldap-1.so", 0xFFBFC330)
Err#2 ENOENT
389:    stat64("/opt/csw/lib/apr-util-1/apr_ldap-1.so", 0xFFBFC330) Err#2
ENOENT

The cause for the problem was a missing package. CSWapache2 doesn't depends
on it. You need to install libaprutil1_ldap (CSWlibaprutil1-ldap,
http://www.opencsw.org/packages/CSWlibaprutil1-ldap/) by hand to get it
running.

It might be worth to add that dependency to the apache2 package.

Cheers,
MaxMeyer


====================================================================== 

---------------------------------------------------------------------- 
 (0009788) max_meyer (reporter) - 2012-04-02 11:46
 https://www.opencsw.org/mantis/view.php?id=4930#c9788 
---------------------------------------------------------------------- 
Hi Ben,

ldd seems not the tool which helps a lot with this kind of problem. truss
could not help either. 

I used "strings" (hint from a colleague) and it turns out that
"libaprutil-1.so.0" contains a string "apr_ldap-1.so".

strings /opt/csw/lib/sparcv8/libaprutil-1.so.0 | grep ldap
[...]
apr_ldap-1.so

truss:
------
1572:    3.1254 stat64("/opt/csw/lib/apr-util-1/apr_ldap-1.so", 0xFFBFEB48)
= 0
1572:    3.1256 resolvepath("/opt/csw/lib/apr-util-1/apr_ldap-1.so",
"/opt/csw/lib/apr-util-1/apr_ldap-1.so", 1023) = 37
1572:    3.1260 open("/opt/csw/lib/apr-util-1/apr_ldap-1.so", O_RDONLY) =
32

Cheers,
Max



More information about the bug-notifications mailing list