Blame SOURCES/openldap-smbk5pwd-overlay.patch

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