Blame SOURCES/openldap-smbk5pwd-overlay.patch

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