Skip to content

Commit

Permalink
Create KrbLDAP defines.
Browse files Browse the repository at this point in the history
  • Loading branch information
aadamowski committed Dec 17, 2011
1 parent 2c92d7f commit 75954c0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions src/aclocal.m4
Expand Up @@ -1255,6 +1255,9 @@ AC_DEFUN(AC_LIBRARY_NET, [
# We assume that if libresolv exists we can link against it.
# This may get us a gethostby* that doesn't respect nsswitch.
AC_CHECK_LIB(resolv, main)
KRB5_AC_ENABLE_KRBLDAP
if test "$enable_krbldap" = yes ; then
ENABLE_KRBLDAP=yes
_KRB5_AC_CHECK_RES_FUNCS(res_ninit res_nclose res_ndestroy res_nsearch dnl
ns_initparse ns_name_uncompress dn_skipname res_search)
Expand Down Expand Up @@ -1314,6 +1317,14 @@ AC_DEFINE(KRB5_DNS_LOOKUP_KDC,1,[Define to enable DNS lookups of Kerberos KDCs])
AC_DEFINE(KRB5_DNS_LOOKUP, 1,[Define for DNS support of locating realms and KDCs])
])
dnl
dnl
dnl KRB5_AC_ENABLE_KRBLDAP
dnl
AC_DEFUN(KRB5_AC_ENABLE_KRBLDAP, [
enable_krbldap=yes
AC_DEFINE(KRB5_KRBLDAP, 1,[Define for support for KrbLDAP protocol])
])
dnl
dnl
Expand Down
2 changes: 1 addition & 1 deletion src/configure.in
Expand Up @@ -1113,7 +1113,7 @@ fi

ldap_plugin_dir=""
ldap_lib=""
if test -n "$OPENLDAP_PLUGIN"; then
if test -n "$OPENLDAP_PLUGIN" -o -n "ENABLE_KRBLDAP"; then
AC_CHECK_HEADERS(ldap.h lber.h, :, [AC_MSG_ERROR($ac_header not found)])
AC_CHECK_LIB(ldap, ldap_init, :, [AC_MSG_ERROR(libldap not found or missing ldap_init)])
old_LIBS="$LIBS"
Expand Down

0 comments on commit 75954c0

Please sign in to comment.