@@ 146-149 (lines=4) @@ | ||
143 | { |
|
144 | debug_write_log(DEBUG_ERROR, '[ldap_finduser] ldap_set_option(LDAP_OPT_PROTOCOL_VERSION) error: ' . ldap_err2str(ldap_errno($link))); |
|
145 | } |
|
146 | elseif (!@ldap_set_option($link, LDAP_OPT_REFERRALS, 0)) |
|
147 | { |
|
148 | debug_write_log(DEBUG_ERROR, '[ldap_finduser] ldap_set_option(LDAP_OPT_REFERRALS) error: ' . ldap_err2str(ldap_errno($link))); |
|
149 | } |
|
150 | elseif (LDAP_USE_TLS && !@ldap_start_tls($link)) |
|
151 | { |
|
152 | debug_write_log(DEBUG_ERROR, '[ldap_finduser] ldap_start_tls() error: ' . ldap_err2str(ldap_errno($link))); |
|
@@ 237-240 (lines=4) @@ | ||
234 | { |
|
235 | debug_write_log(DEBUG_ERROR, '[ldap_findallusers] ldap_set_option(LDAP_OPT_PROTOCOL_VERSION) error: ' . ldap_err2str(ldap_errno($link))); |
|
236 | } |
|
237 | elseif (!@ldap_set_option($link, LDAP_OPT_REFERRALS, 0)) |
|
238 | { |
|
239 | debug_write_log(DEBUG_ERROR, '[ldap_findallusers] ldap_set_option(LDAP_OPT_REFERRALS) error: ' . ldap_err2str(ldap_errno($link))); |
|
240 | } |
|
241 | elseif (LDAP_USE_TLS && !@ldap_start_tls($link)) |
|
242 | { |
|
243 | debug_write_log(DEBUG_ERROR, '[ldap_finduser] ldap_start_tls() error: ' . ldap_err2str(ldap_errno($link))); |