Changeset View
Changeset View
Standalone View
Standalone View
b/dirmngr/dirmngr_ldap.c
| Context not available. | |||||
| /* Fixme: Can we use MYOPT->user or is it shared with other theeads?. */ | /* Fixme: Can we use MYOPT->user or is it shared with other theeads?. */ | ||||
| ret = my_ldap_simple_bind_s (ld, myopt->user, myopt->pass); | ret = my_ldap_simple_bind_s (ld, myopt->user, myopt->pass); | ||||
| npth_protect (); | npth_protect (); | ||||
| #ifdef LDAP_VERSION3 | |||||
| if (ret == LDAP_PROTOCOL_ERROR) | |||||
| { | |||||
| int version = LDAP_VERSION3; | |||||
| /* Protocol error could mean that the server only supports v3 */ | |||||
| npth_unprotect (); | |||||
| log_debug ("Protocol error, retrying bind with V3 Protocol. \n"); | |||||
| ldap_set_option (ld, LDAP_OPT_PROTOCOL_VERSION, &version); | |||||
| ret = my_ldap_simple_bind_s (ld, myopt->user, myopt->pass); | |||||
| npth_protect (); | |||||
| } | |||||
| #endif | |||||
| if (ret) | if (ret) | ||||
| { | { | ||||
| log_error (_("binding to '%s:%d' failed: %s\n"), | log_error (_("binding to '%s:%d' failed: %s\n"), | ||||
| Context not available. | |||||