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

Re: smbk5pwd for REL_ENG_2_2



Igor Brezac wrote:
> > Actually smbk5pwd is present in HEAD, I'd like to know
> > if it will be backported to OPENLDAP_REL_ENG_2_2 since
> > it seems a promising feature.
> 
> Yes, it works with OL 2.2.

Hello Igor,

With my compiled version I get a segfault.

# /etc/init.d/ldap start
Starting ldap-serverstartproc:  signal catched /usr/lib/openldap/slapd: Segmentation fault
                                                                      failed
This is that I did:

First, I changed the include and lib paths for my system 
(SuSE 9.2), the parameter "--tag=CC"  was added to libtool and
finally I got the module compiled in the .libs directory.

Now, I moved .libs/smbk5pwd.la and .libs/smbk5pwd.so.0 to
the modulepath configured in slapd.conf.

What do you did to create the modules?

Thank you.

argus:/usr/src/packages/BUILD/openldap-2.2.23/contrib/slapd-modules/smbk5pwd # make
../../../libtool --tag=CC --mode=compile gcc -g -O2 -DDO_KRB5 -DDO_SAMBA -I../../../include -I../../../servers/slapd -I/usr/include/heimdal  -c smbk5pwd.c
mkdir .libs
 gcc -g -O2 -DDO_KRB5 -DDO_SAMBA -I../../../include -I../../../servers/slapd -I/usr/include/heimdal -c smbk5pwd.c  -fPIC -DPIC -o .libs/smbk5pwd.o
 gcc -g -O2 -DDO_KRB5 -DDO_SAMBA -I../../../include -I../../../servers/slapd -I/usr/include/heimdal -c smbk5pwd.c -o smbk5pwd.o >/dev/null 2>&1
../../../libtool --tag=CC --mode=link gcc -g -O2 -version-info 0:0:0 \
-rpath /usr/local/libexec/openldap -module -o smbk5pwd.la smbk5pwd.lo  -L/usr/lib -lkrb5 -lkadm5srv -lcrypto
cc -shared  .libs/smbk5pwd.o  -L/usr/lib -lkrb5 -lkadm5srv -lcrypto  -Wl,-soname -Wl,smbk5pwd.so.0 -o .libs/smbk5pwd.so.0.0.0
(cd .libs && rm -f smbk5pwd.so.0 && ln -s smbk5pwd.so.0.0.0 smbk5pwd.so.0)
(cd .libs && rm -f smbk5pwd.so && ln -s smbk5pwd.so.0.0.0 smbk5pwd.so)
ar cru .libs/smbk5pwd.a  smbk5pwd.o
ranlib .libs/smbk5pwd.a
creating smbk5pwd.la
(cd .libs && rm -f smbk5pwd.la && ln -s ../smbk5pwd.la smbk5pwd.la)