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

Re: smbk5pwd for REL_ENG_2_2




Please keep this conversation on the list.  Maybe someone else can offer 
help and others may benefit.

See my response below...

On Thu, 10 Mar 2005, [iso-8859-15] José M. [iso-8859-15] Fandiño wrote:

> 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

Run gdb and see why.

> This is that I did:
>
> First, I changed the include and lib paths for my system
> (SuSE 9.2), the paremeter "--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 copy

> the slapd modulepath.

You need to move smbk5pwd.so.0.0.0 and smbk5pwd.so. Note that 
smbk5pwd.so.0 and smbk5pwd.so are sym links to smbk5pwd.so.0.0.0

What does your relevant slapd.conf look like?

> 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)
>

-- 
Igor