Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Dec 2013 05:56:13 GMT
From:      Erick Turnquist <jhujhiti@adjectivism.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/184557: Patch to add LDAP support to security/krb5
Message-ID:  <201312070556.rB75uDcL095027@oldred.freebsd.org>
Resent-Message-ID: <201312070600.rB7600uZ074213@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         184557
>Category:       ports
>Synopsis:       Patch to add LDAP support to security/krb5
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 07 06:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Erick Turnquist
>Release:        9.1-RELEASE
>Organization:
>Environment:
FreeBSD rhea 9.1-RELEASE-p7 FreeBSD 9.1-RELEASE-p7 #4: Sat Sep 14 03:52:41 UTC 2013     root@rhea:/usr/obj/usr/src/sys/CUSTOM  amd64
>Description:
security/krb5 lacks an option for LDAP support (storing the database in LDAP). The attached patch adds an option to enable it.

It also installs one recently added header file, ccselect_plugin.h, that was missing from pkg-plist.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

--- Makefile-orig	2013-12-06 23:32:10.366060722 -0500
+++ Makefile-patched	2013-12-07 00:31:39.119065384 -0500
@@ -32,11 +32,12 @@
 CONFIGURE_ENV=		INSTALL="${INSTALL}" YACC="${YACC}"
 MAKE_ARGS=		INSTALL="${INSTALL}"
 
-OPTIONS_DEFINE=		KRB5_PDF KRB5_HTML DNS_FOR_REALM
+OPTIONS_DEFINE=		KRB5_PDF KRB5_HTML DNS_FOR_REALM LDAP
 OPTIONS_DEFAULT=	KRB5_PDF KRB5_HTML
 KRB5_PDF_DESC=		Install krb5 PDF documentation
 KRB5_HTML_DESC=		Install krb5 HTML documentation
 DNS_FOR_REALM_DESC=	Enable DNS lookups for Kerberos realm names
+LDAP=			Enable LDAP support
 
 .if defined(KRB5_HOME)
 PREFIX=			${KRB5_HOME}
@@ -44,6 +45,7 @@
 LDFLAGS+=		-rpath=${KRB5_HOME}/lib
 .endif
 LDFLAGS+=		-L${LOCALBASE}/lib
+CFLAGS+=		-I${LOCALBASE}/include
 
 USE_OPENSSL=		yes
 
@@ -54,6 +56,11 @@
 CONFIGURE_ARGS+=	--enable-dns-for-realm
 .endif
 
+.if ${PORT_OPTIONS:MLDAP}
+USE_OPENLDAP=		yes
+CONFIGURE_ARGS+=	--with-ldap
+.endif
+
 .include "${PORTSDIR}/Mk/bsd.openssl.mk"
 
 MAN1=			k5srvutil.1 kadmin.1 krb5-config.1 krb5-send-pr.1 \
@@ -74,7 +81,7 @@
 HTML_DOC_DIR=		${WRKDIR}/${PORTNAME}-${PORTVERSION}/doc/html
 PDF_DOC_DIR=		${WRKDIR}/${PORTNAME}-${PORTVERSION}/doc/pdf
 
-CONFIGURE_ARGS+=	CPPFLAGS="-I${OPENSSLINC} -L${OPENSSLLIB}"
+CONFIGURE_ARGS+=	CPPFLAGS="-I${OPENSSLINC} -L${OPENSSLLIB} -L${LOCALBASE}/include"
 
 post-extract:
 	@${TAR} -C ${WRKDIR} -xzf ${WRKDIR}/${PORTNAME}-${PORTVERSION}.tar.gz
--- pkg-plist.orig	2013-12-07 00:30:34.856070134 -0500
+++ pkg-plist.patched	2013-12-07 00:40:48.445063529 -0500
@@ -38,6 +38,7 @@
 include/gssrpc/types.h
 include/gssrpc/xdr.h
 include/krb5.h
+include/krb5/ccselect_plugin.h
 include/krb5/kadm5_hook_plugin.h
 include/krb5/krb5.h
 include/krb5/locate_plugin.h
@@ -72,12 +73,15 @@
 lib/libkrb5support.so
 lib/libkrb5support.so.0
 lib/krb5/plugins/kdb/db2.so
+lib/krb5/plugins/kdb/kldap.so
 lib/krb5/plugins/preauth/pkinit.so
+lib/libkdb_ldap.so.1
 lib/libverto.so.0
 lib/libverto.so
 sbin/gss-server
 sbin/kadmin.local
 sbin/kadmind
+sbin/kdb5_ldap_util
 sbin/kdb5_util
 sbin/kprop
 sbin/kpropd


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312070556.rB75uDcL095027>