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.s...
Clément.