From 06076e445bb8efcb0d785cbb63575cc8428fcf33 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 11 Jul 2014 10:58:20 -0600 Subject: [PATCH] RHEL 6 and above use /etc/sudo-ldap.conf not /etc/ldap.conf --- mkpkg | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mkpkg b/mkpkg index 51d193abf..efc08a686 100755 --- a/mkpkg +++ b/mkpkg @@ -125,6 +125,11 @@ case "$osversion" in if [ $osrelease -ge 60 ]; then # RHEL 6 and above builds sudo with SSSD support configure_opts="${configure_opts}${configure_opts+$tab}--with-sssd" + # RHEL 6 and above use /etc/sudo-ldap.conf + if test "$flavor" = "ldap"; then + configure_opts="${configure_opts}${configure_opts+$tab}--with-ldap + --with-ldap-conf-file=/etc/sudo-ldap.conf" + fi fi # Note, must indent with tabs, not spaces due to IFS trickery configure_opts="--prefix=/usr