Original Message:
Sent: Fri October 18, 2024 02:49 AM
From: RESHMA KUMAR
Subject: Apache restart error
Hi Nicolas
Httpd ldap module(mod_authnz_ldap.so) uses AIX Toolbox openldap, not IBM ldap. Openldap ships libdap.a in /opt/freeware/lib location.
So, setting LIBPATH to IBM ldap library path is causing issue in this case.
Can you unset the LIBPATH and try?
------------------------------
RESHMA KUMAR
Original Message:
Sent: Thu October 17, 2024 11:11 AM
From: Nicolas KAPLIN
Subject: Apache restart error
Hello,
We have an error in differents environments (without modification?)
It seems that lib is not loaded?
#/opt/freeware/sbin/httpd
httpd: Syntax error on line 87 of /opt/freeware/etc/httpd/conf/httpd.conf: Cannot load /opt/freeware/lib/httpd/modules/mod_authnz_ldap.so into server: Could not load module /opt/freeware/lib/httpd/modules/mod_authnz_ldap.so.\n\tDependent module /opt/IBM/ldap/V6.4/lib64/libldap.a(libldap-2.4.so.2) could not be loaded.\n\tFile /opt/IBM/ldap/V6.4/lib64/libldap.a is not an\n\t archive or the file could not be read properly.\nSystem error: Exec format error\nCould not load module /opt/freeware/lib/httpd/modules/mod_authnz_ldap.so.\n\tDependent module /opt/freeware/lib/httpd/modules/mod_authnz_ldap.so could not be loaded.
echo $LIBPATH
:/opt/IBM/ldap/V6.4/lib64:/opt/IBM/ldap/V6.4/lib
/opt/freeware/etc/httpd/conf#/opt/freeware/sbin/httpd -version$
Server version: Apache/2.4.54 (Unix)
Server built: Jul 5 2022 02:53:31
/opt/freeware/etc/httpd/conf#rpm -qi openldap-2.4.58-3.ppc
Name : openldap
Version : 2.4.58
Release : 3
Architecture: ppc
Install Date: Thu Oct 27 10:06:07 CEST 2022
Group : System Environment/Daemons
Size : 12926481
License : OpenLDAP
Signature : (none)
Source RPM : openldap-2.4.58-3.src.rpm
Build Date : Thu Apr 7 12:36:54 CEST 2022
Build Host : pokndd10.pok.stglabs.ibm.com
Packager : IBM AIX Toolbox <https://ibm.biz/AIXToolbox>
URL : http://www.openldap.org/
Bug URL : https://ibm.biz/aixoss_forum
Summary : The configuration files, libraries, and documentation for OpenLDAP
Description :
OpenLDAP is an open source suite of LDAP (Lightweight Directory Access
Protocol) applications and development tools. LDAP is a set of
protocols for accessing directory services (usually phone book style
information, but other information is possible) over the Internet,
similar to the way DNS (Domain Name System) information is propagated
over the Internet. The openldap package contains configuration files,
libraries, and documentation for OpenLDAP.
#oslevel -s
7200-05-07-2346
lslpp -l|grep -i ldap
idsldap.clt32bit64.rte 6.4.0.23 COMMITTED Directory Server - 32 bit
idsldap.clt64bit64.rte 6.4.0.23 COMMITTED Directory Server - 64 bit
idsldap.clt_max_crypto32bit64.rte
idsldap.clt_max_crypto64bit64.rte
idsldap.cltbase64.adt 6.4.0.23 COMMITTED Directory Server - Base Client
idsldap.cltbase64.rte 6.4.0.23 COMMITTED Directory Server - Base Client
idsldap.cltjava64.rte 6.4.0.23 COMMITTED Directory Server - Java Client
idsldap.license64.rte 6.4.0.23 COMMITTED Directory Server - License
idsldap.clt32bit64.rte 6.4.0.23 COMMITTED Directory Server - 32 bit
idsldap.clt64bit64.rte 6.4.0.23 COMMITTED Directory Server - 64 bit
idsldap.cltbase64.rte 6.4.0.23 COMMITTED Directory Server - Base Client
Can you help ?
thank you
Regards
Nicolas