Blame SOURCES/openldap-smbk5pwd-overlay.patch

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