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

Re: smbk5pwd for REL_ENG_2_2



I had a similar problem when i built the smbk5pwd overlay, but its not a
problem in the overlay itself, it was with my build of openldap.  I had
linked against components installed with the OS which were not
configured or compiled for the environment that I was trying to setup.
 
openldap, heimdal, and ssl(if used by heimdal) need to be built with
--enable-shared
 
try running ldd against the smbk5pwd.so.  check the libraries that it
linked against.

good luck.
 
Jonathan Higgins
IT R&D Project Manager
Kennesaw State University
jhiggins@kennesaw.edu


>>> "=?iso-8859-15?Q?Jos=E9?= M. =?iso-8859-15?Q?Fandi=F1o?="
<ldap@fadesa.es> 3/10/2005 10:50:52 AM >>>

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)