[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#8470) LastBind Module Issue



Full_Name: Avijit Sarkar
Version: 2.4.40
OS: Linux
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (203.191.35.25)


I am facing below strange issue as stated below.

we have installed OpenLDAP in Linux through YUM commands initially which didn't
had lastbind module associated . Hence I have later downloaded OpenLDAP 2.4.40
Source & compiled the lastbind.c(From Contrib/slapd.modules) to use lastbind.la
(Library) in my configuration. 

After associating the lastbind.la in the OLC Configuration as a new
olcModuleLoad , I am not able to start the slapd daemon through Linux Service
administration command (For eg -> service slapd start) 

What I found in the /etc/init.d/slapd startFunction() , the command being used
to start OPENLDAP daemon as part of Linux Service is as below -->

daemon --pidfile=$pidfile --check=$prog $ulimit ${slapd} -h "\"$harg\""
-%2${user} $OPTIONS $SLAPD_OPTIONS   

Once trying to start using " service slapd start" I am getting below error
details in ldap log -

Jul 28 04:39:03 ######slapd[7373]: @(#) $OpenLDAP: slapd 2.4.40 (Sep 30 2015
06:51:51) $#012#011mockbuild@x86-028.build.eng.bos.redhat.com:/builddir/build/BUILD/openldap-2.4.40/openldap-2.4.40/build-servers/servers/slapd
Jul 28 04:39:04 ######## slapd[7373]: ldif_read_file: checksum error on
"/etc/openldap/slapd.d/cn=config.ldif"
Jul 28 04:39:04 ######## slapd[7373]: lt_dlopenext faid:3A (lastbind.la) file
not found
Jul 28 04:39:04 ########slapd[7373]: config error processing
cn=module{1},cn=config: <olcModuleLoad> handler exited with 1
Jul 28 04:39:04 ########slapd[7373]: slapd stopped.
Jul 28 04:39:04 ##"323#### slapd[7373]: connections_destroy: nothing to
destroy.


However if I am simply executing below commands to start openldap , its working
just fine & lastbind module is also working just fine -->

Linux#  /usr/sbin/slapd -u ldap -h "ldap:///";

But Customer wants this process to be started as Linux Daemon so manage it with
ease by infrastructure team.
Can anyone please help me identify why "lt_dlopenext failed: (lastbind.la) file
not found" this error is appearing in case Linux daemon is trying to start the
LDAP process ?

In case any further information is required , please let me know.

Thanks in advance .

Cheers,
Avijit