]> granicus.if.org Git - sudo/commitdiff
RHEL 6 and above use /etc/sudo-ldap.conf not /etc/ldap.conf
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 11 Jul 2014 16:58:20 +0000 (10:58 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 11 Jul 2014 16:58:20 +0000 (10:58 -0600)
mkpkg

diff --git a/mkpkg b/mkpkg
index 51d193abfb56f20640202dde738b1357e424ad28..efc08a6864081365d9814d1eff107cc97c0b72bd 100755 (executable)
--- 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