I'm having some trouble trying to setup smbk5pwd. I am currently running CentOS 5 with the latest updates. OpenLDAP is version openldap-2.3.27-8.el5_1.3, I have it installed via RPM.
To try to compile, I downloaded & installed the source rpm. That included a tgz file of the openldap's source. I extracted it and went to the contrib/slapd-modules/smbk5pwd directory.
I edited the Makefile and set "SSL_INC=/usr/include/openssl", everything else appeared okay. I also had to run a "./configure" to get libtool created.
**I think this might be where I screwed up...running a generic ./configure. How do I get the settings that the RPM was configured with? **
From there, I ran make and got this error:
*../../../include/ldap_defaults.h:35:25: error: ldap_config.h: No such file or directory*
There was a ldap_config.hin file in that same directory, I renamed it ldap_config.h and was able to run make successfully.
Did the following:
*mkdir /usr/lib/ldap cp smbk5pwd.la /usr/lib/ldap cd .libs cp -r smbk5pwd.so* /usr/lib/ldap*
Added it to my slapd.conf file:
*moduleload /usr/lib/ldap/smbk5pwd.o overlay smbk5pwd*
When I try to restart openldap, I get a segfault. If I comment out the "overlay..." line, it will start and work fine. The startup log looks fine until the segfault line: * slapd startup: initiated. /bin/bash: line 1: 27591 Segmentation fault /tmp/start-slapd.n27586*
If anyone has any suggestions, that would great...thanks!
--Bill