From: Aaron Spangler Date: Fri, 27 Aug 2004 02:08:10 +0000 (+0000) Subject: cleanup debug message X-Git-Tag: SUDO_1_6_8p1~50 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b7ea12521abfec50cf0bbea9058a178c7a2ce064;p=sudo cleanup debug message --- diff --git a/ldap.c b/ldap.c index 0ab61cef6..bd734f8be 100644 --- a/ldap.c +++ b/ldap.c @@ -541,13 +541,18 @@ sudo_ldap_read_config() if (ldap_conf.debug>1) { printf("LDAP Config Summary\n"); printf("===================\n"); +#ifdef HAVE_LDAP_INITIALIZE + if (ldap_conf.uri){ + printf("uri %s\n", ldap_conf.uri); + } else +#endif + { printf("host %s\n", ldap_conf.host ? ldap_conf.host : "(NONE)"); printf("port %d\n", ldap_conf.port); + } printf("ldap_version %d\n", ldap_conf.version); - printf("uri %s\n", ldap_conf.uri ? - ldap_conf.uri : "(NONE)"); printf("sudoers_base %s\n", ldap_conf.base ? ldap_conf.base : "(NONE) <---Sudo will ignore ldap)"); printf("binddn %s\n", ldap_conf.binddn ? @@ -555,7 +560,7 @@ sudo_ldap_read_config() printf("bindpw %s\n", ldap_conf.bindpw ? ldap_conf.bindpw : "(anonymous)"); #ifdef HAVE_LDAP_START_TLS_S - printf("ssl %s\n", ldap_conf.ssl ? + printf("ssl %s\n", ldap_conf.ssl ? ldap_conf.ssl : "(no)"); #endif printf("===================\n");