From 21540f2dbe0a7a7ab4752a6835d4911efd80aa31 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Fri, 23 May 2008 16:34:37 +0200 Subject: [PATCH] [sudo] Improved to enable LDAP support if openldap is available Note: For more information take a look at http://sudo.ws/sudo/readme_ldap.html --- base/sudo/sudo.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/base/sudo/sudo.conf b/base/sudo/sudo.conf index 932f5d221..8475827e8 100644 --- a/base/sudo/sudo.conf +++ b/base/sudo/sudo.conf @@ -19,3 +19,9 @@ extraconfopt="--enable-log-host --with-tty-tickets" if ! pkginstalled pam; then var_append extraconfopt ' ' '--without-pam' fi + +# LDAP support +if pkginstalled openldap ; then + pkgprefix -t openldap + var_append extraconfopt ' ' "--with-ldap=$root/$( pkgprefix openldap )" +fi