Revision b2c7a79c
Added by Jim Pingle almost 8 years ago
src/etc/inc/auth.inc | ||
---|---|---|
1339 | 1339 |
ldap_set_option($ldap, LDAP_OPT_NETWORK_TIMEOUT, (int)$ldaptimeout); |
1340 | 1340 |
|
1341 | 1341 |
if (strstr($authcfg['ldap_urltype'], "STARTTLS")) { |
1342 |
if (!(ldap_start_tls($ldap))) { |
|
1342 |
if (!(@ldap_start_tls($ldap))) {
|
|
1343 | 1343 |
log_error(sprintf(gettext("ERROR! ldap_backed() could not STARTTLS to server %s."), $ldapname)); |
1344 | 1344 |
@ldap_close($ldap); |
1345 | 1345 |
return false; |
Also available in: Unified diff
Don't print a PHP error if LDAP STARTTLS fails.