From 8cb8c55f9483f49b46941cb8f710c358a9a5d697 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sun, 15 Jul 2007 16:47:53 +0000 Subject: [PATCH] Fix use_sasl vs. rootuse_sasl logic. --- ldap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ldap.c b/ldap.c index 500057c16..f965d925c 100644 --- a/ldap.c +++ b/ldap.c @@ -996,7 +996,8 @@ sudo_ldap_open() #ifdef HAVE_LDAP_SASL_INTERACTIVE_BIND_S /* XXX - should use krb5_ccname from ldap.conf too! */ - if (ldap_conf.rootuse_sasl != FALSE && ldap_conf.use_sasl == TRUE) { + if (ldap_conf.rootuse_sasl == TRUE || + (ldap_conf.rootuse_sasl != FALSE && ldap_conf.use_sasl == TRUE)) { void *authid = ldap_conf.rootsasl_authid ? ldap_conf.rootsasl_authid : ldap_conf.sasl_authid; -- 2.40.0