[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Unable to load the lastbind module with 2.4.44 (custom build)
- To: mailing lists <listas.correo@yahoo.es>
- Subject: Re: Unable to load the lastbind module with 2.4.44 (custom build)
- From: Clément OUDOT <clem.oudot@gmail.com>
- Date: Thu, 13 Apr 2017 07:26:05 +0200
- Cc: "openldap-technical@openldap.org" <openldap-technical@openldap.org>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=MdbOQxYu8p7uwtypg52NJktssTzTs30W7hkugXjQ8RQ=; b=IlYQqg0nM2VyT4Q92pD9K12dVQ1621HlPLHLj4vhsdzP5bseugMCUQ2ugAhJqykfH1 xh1vwXP8ioSRUFOw8Si9ChEqQm8OoHydHMKi0Gr1sEuWfoRg2MjaTB9nNfD5GO5nZyQM DH0Sl81bufiISUadxZotjPxRRSrYEnpnwyM3PMp5k9R+PSG2khwU4LEwg1WgTjCqVMHW w7212g9N/WAmcR4ADlDD016dErM4Yc0/SJG2odoq8coWN1U4ktL1nsKVLTP+52j4Pes5 9lZLxGdYRlE/EBoliRsAFUPOwBErB5k9Zn+b5BBFC9banJXXeEiZ8WkWkopGUCicHi6V Jzxg==
- In-reply-to: <1134763324.464443.1491997031149@mail.yahoo.com>
- References: <1134763324.464443.1491997031149.ref@mail.yahoo.com> <1134763324.464443.1491997031149@mail.yahoo.com>
2017-04-12 13:37 GMT+02:00 mailing lists <listas.correo@yahoo.es>:
> Hello all,
>
> What I'm trying to do is enable the lastbind module in a centos7 server, so I applied this patch to the rpmbuild process:
>
>
>
> # cat /root/rpmbuild/SOURCES/openldap-lastbind-overlay.patch
> --- a/servers/slapd/overlays/Makefile.in 2017-04-12 12:14:46.617978071 +0100
> +++ b/servers/slapd/overlays/Makefile.in 2017-04-12 12:21:12.569292484 +0100
> @@ -36,6 +36,7 @@
> valsort.c \
> smbk5pwd.c \
> allop.c \
> + lastbind.c \
> sha2.c slapd-sha2.c
> OBJS = statover.o \
> @SLAPD_STATIC_OVERLAYS@ \
> @@ -56,7 +57,7 @@
> UNIX_LINK_LIBS = $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS)
>
> LIBRARY = ../liboverlays.a
> -PROGRAMS = @SLAPD_DYNAMIC_OVERLAYS@ smbk5pwd.la allop.la pw-sha2.la
> +PROGRAMS = @SLAPD_DYNAMIC_OVERLAYS@ smbk5pwd.la allop.la pw-sha2.la lastbind.la
>
> XINCPATH = -I.. -I$(srcdir)/..
> XDEFS = $(MODULES_CPPFLAGS)
> @@ -140,6 +141,12 @@
> allop.la : allop.lo
> $(LTLINK_MOD) -module -o $@ allop.lo version.lo $(LINK_LIBS) $(shell pkg-config openssl --libs)
>
> +lastbind.lo : lastbind.c
> + $(LTCOMPILE_MOD) -DDO_SAMBA -UHAVE_MOZNSS -DHAVE_OPENSSL $(shell pkg-config openssl --cflags) $<
> +
> +lastbind.la : lastbind.lo
> + $(LTLINK_MOD) -module -o $@ lastbind.lo version.lo $(LINK_LIBS) $(shell pkg-config openssl --libs)
> +
> sha2.lo : sha2.c
> $(LTCOMPILE_MOD) $<
>
>
> any idea about where I make the mistake?
>
Hi,
I think you don't need -DDO_SAMBA -UHAVE_MOZNSS -DHAVE_OPENSSL for
lastbind, but that would not explain you issue.
Note that we build lastbind overlay in LTB OpenLDAP RPMs with:
cd lastbind
make clean
make %{?_smp_mflags} "prefix=%{ldapserverdir}" "LDAP_LIB="
cd ..
and
cd lastbind
make install "prefix=%{buildroot}%{ldapserverdir}"
cd ..
You can find our SPEC file here:
https://github.com/ltb-project/openldap-rpm/blob/master/SPECS/openldap-ltb.spec
Clément.