Skip to content

Commit

Permalink
Merge pull request ceph#12616 from atheism/rgw-ldap-fix-simple-bind
Browse files Browse the repository at this point in the history
rgw: ldap: simple_bind() should set ldap version option on tldap
  • Loading branch information
mattbenjamin authored Dec 22, 2016
2 parents fcbabdd + 96cf7fa commit 566ad2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rgw/rgw_ldap.h
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 566ad2d

Please sign in to comment.