mrc0mmand / rpms / openldap

Forked from rpms/openldap 3 years ago
Clone

Blame SOURCES/openldap-smbk5pwd-overlay.patch

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