Lines 141-149
Link Here
|
141 |
{ |
141 |
{ |
142 |
int rv; |
142 |
int rv; |
143 |
|
143 |
|
|
|
144 |
#ifdef WITH_SASL |
144 |
if (ctxt->auth_required == LDAP_AUTH_USESIMPLE) |
145 |
if (ctxt->auth_required == LDAP_AUTH_USESIMPLE) |
145 |
rv = ldap_simple_bind_s(ldap, ctxt->user, ctxt->secret); |
146 |
rv = ldap_simple_bind_s(ldap, ctxt->user, ctxt->secret); |
146 |
else if (ctxt->version == 2) |
147 |
else if (ctxt->version == 2) |
|
|
148 |
#else |
149 |
if (ctxt->version == 2) |
150 |
#endif |
147 |
rv = ldap_simple_bind_s(ldap, ctxt->base, NULL); |
151 |
rv = ldap_simple_bind_s(ldap, ctxt->base, NULL); |
148 |
else |
152 |
else |
149 |
rv = ldap_simple_bind_s(ldap, NULL, NULL); |
153 |
rv = ldap_simple_bind_s(ldap, NULL, NULL); |