summaryrefslogtreecommitdiffstats
path: root/kerberos5/Makefile.inc
diff options
context:
space:
mode:
authormr <mr@FreeBSD.org>2003-06-18 09:11:34 +0000
committermr <mr@FreeBSD.org>2003-06-18 09:11:34 +0000
commitde0f8d4cffdece57312d0849ec5485c743671571 (patch)
tree3e374b0f50cb295eb6cd799e9c9f938cc11176ea /kerberos5/Makefile.inc
parentf029c2aa2fd1004fec3361ef3025d7e55770fb7e (diff)
downloadFreeBSD-src-de0f8d4cffdece57312d0849ec5485c743671571.zip
FreeBSD-src-de0f8d4cffdece57312d0849ec5485c743671571.tar.gz
Add (optional, default off) support to kerberos5 for supporting openldap.
Tests with openldap20 where successful whereas openldap21 didn't like the way hdb-ldap accessed openldap (doesn't like non-bind access). To activate the support put a USE_OPENLDAP=yes in your make.conf. The OPENLDAPBASE is also optional and points to /usr/local as default. Approved by: markm MFC after: 2 weeks
Diffstat (limited to 'kerberos5/Makefile.inc')
-rw-r--r--kerberos5/Makefile.inc7
1 files changed, 7 insertions, 0 deletions
diff --git a/kerberos5/Makefile.inc b/kerberos5/Makefile.inc
index b172f89..452e0e7 100644
--- a/kerberos5/Makefile.inc
+++ b/kerberos5/Makefile.inc
@@ -13,6 +13,13 @@ CFLAGS+=-I${INCLUDEOBJDIR} -DHAVE_CONFIG_H
CFLAGS+=-DINET6
+.if defined(USE_OPENLDAP)
+OPENLDAPBASE?= /usr/local
+LDAPLIBS=-lldap -llber
+LDAPCFLAGS=-I${OPENLDAPBASE}/include -DOPENLDAP=1
+LDAPLDADD=-L${OPENLDAPBASE}/lib ${LDAPLIBS}
+.endif
+
.if exists(${.OBJDIR}/../../include)
INCLUDEOBJDIR= ${.OBJDIR}/../../include
.else
OpenPOWER on IntegriCloud