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