mirror of
https://github.com/ceph/ceph
synced 2025-01-19 17:41:39 +00:00
Merge pull request #12616 from atheism/rgw-ldap-fix-simple-bind
rgw: ldap: simple_bind() should set ldap version option on tldap
This commit is contained in:
commit
566ad2d8b5
@ -79,7 +79,7 @@ namespace rgw {
|
||||
int ret = ldap_initialize(&tldap, uri.c_str());
|
||||
if (ret == LDAP_SUCCESS) {
|
||||
unsigned long ldap_ver = LDAP_VERSION3;
|
||||
ret = ldap_set_option(ldap, LDAP_OPT_PROTOCOL_VERSION,
|
||||
ret = ldap_set_option(tldap, LDAP_OPT_PROTOCOL_VERSION,
|
||||
(void*) &ldap_ver);
|
||||
if (ret == LDAP_SUCCESS) {
|
||||
ret = ldap_simple_bind_s(tldap, dn, pwd.c_str());
|
||||
|
Loading…
Reference in New Issue
Block a user