From b2c7a79c5ff8eefda4b19cf2718056c1ba6c12ca Mon Sep 17 00:00:00 2001 From: jim-p Date: Tue, 29 Aug 2017 10:27:53 -0400 Subject: Don't print a PHP error if LDAP STARTTLS fails. --- src/etc/inc/auth.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/etc/inc/auth.inc b/src/etc/inc/auth.inc index b573107..ec76e1d 100644 --- a/src/etc/inc/auth.inc +++ b/src/etc/inc/auth.inc @@ -1339,7 +1339,7 @@ function ldap_backed($username, $passwd, $authcfg) { ldap_set_option($ldap, LDAP_OPT_NETWORK_TIMEOUT, (int)$ldaptimeout); if (strstr($authcfg['ldap_urltype'], "STARTTLS")) { - if (!(ldap_start_tls($ldap))) { + if (!(@ldap_start_tls($ldap))) { log_error(sprintf(gettext("ERROR! ldap_backed() could not STARTTLS to server %s."), $ldapname)); @ldap_close($ldap); return false; -- cgit v1.1