Blame SOURCES/openldap-smbk5pwd-overlay.patch

ef59e1
Compile smbk5pwd together with other overlays.
ef59e1
ef59e1
Author: Jan Šafránek <jsafrane@redhat.com>
ef59e1
Resolves: #550895
ef59e1
ef59e1
Update to link against OpenSSL
ef59e1
ef59e1
Author: Jan Vcelak <jvcelak@redhat.com>
ef59e1
Resolves: #841560
ef59e1
ef59e1
diff --git a/contrib/slapd-modules/smbk5pwd/README b/contrib/slapd-modules/smbk5pwd/README
ef59e1
index f20ad94..b6433ff 100644
ef59e1
--- a/contrib/slapd-modules/smbk5pwd/README
ef59e1
+++ b/contrib/slapd-modules/smbk5pwd/README
ef59e1
@@ -1,3 +1,8 @@
ef59e1
+******************************************************************************
ef59e1
+Red Hat note: We do not provide Heimdal Kerberos but MIT. Therefore the module
ef59e1
+is compiled only with Samba features in Fedora and Red Hat Enterprise Linux.
ef59e1
+******************************************************************************
ef59e1
+
ef59e1
 This directory contains a slapd overlay, smbk5pwd, that extends the
ef59e1
 PasswordModify Extended Operation to update Kerberos keys and Samba
ef59e1
 password hashes for an LDAP user.
ef59e1
diff --git a/servers/slapd/overlays/Makefile.in b/servers/slapd/overlays/Makefile.in
ef59e1
index 3af20e8..ef73663 100644
ef59e1
--- a/servers/slapd/overlays/Makefile.in
ef59e1
+++ b/servers/slapd/overlays/Makefile.in
ef59e1
@@ -33,7 +33,8 @@ SRCS = overlays.c \
ef59e1
 	syncprov.c \
ef59e1
 	translucent.c \
ef59e1
 	unique.c \
ef59e1
-	valsort.c
ef59e1
+	valsort.c \
ef59e1
+	smbk5pwd.c
ef59e1
 OBJS = statover.o \
ef59e1
 	@SLAPD_STATIC_OVERLAYS@ \
ef59e1
 	overlays.o
ef59e1
@@ -53,7 +54,7 @@ NT_LINK_LIBS = -L.. -lslapd $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS)
ef59e1
 UNIX_LINK_LIBS = $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS)
ef59e1
 
ef59e1
 LIBRARY = ../liboverlays.a
ef59e1
-PROGRAMS = @SLAPD_DYNAMIC_OVERLAYS@
ef59e1
+PROGRAMS = @SLAPD_DYNAMIC_OVERLAYS@ smbk5pwd.la
ef59e1
 
ef59e1
 XINCPATH = -I.. -I$(srcdir)/..
ef59e1
 XDEFS = $(MODULES_CPPFLAGS)
ef59e1
@@ -125,6 +126,12 @@ unique.la : unique.lo
ef59e1
 valsort.la : valsort.lo
ef59e1
 	$(LTLINK_MOD) -module -o $@ valsort.lo version.lo $(LINK_LIBS)
ef59e1
 
ef59e1
+smbk5pwd.lo : smbk5pwd.c
ef59e1
+	$(LTCOMPILE_MOD) -DDO_SAMBA -UHAVE_MOZNSS -DHAVE_OPENSSL $(shell pkg-config openssl --cflags) $<
ef59e1
+
ef59e1
+smbk5pwd.la : smbk5pwd.lo
ef59e1
+	$(LTLINK_MOD) -module -o $@ smbk5pwd.lo version.lo $(LINK_LIBS) $(shell pkg-config openssl --libs)
ef59e1
+
ef59e1
 install-local:	$(PROGRAMS)
ef59e1
 	@if test -n "$?" ; then \
ef59e1
 		$(MKDIR) $(DESTDIR)$(moduledir); \
ef59e1
-- 
ef59e1
1.7.10.4
ef59e1