summaryrefslogtreecommitdiff
path: root/src/providers/ldap/sdap_async_connection.c
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2010-06-25 17:50:56 +0200
committerStephen Gallagher <sgallagh@redhat.com>2010-06-28 08:38:14 -0400
commitb0249a8990feeb7e7b49da59fb1337a5f462bc64 (patch)
treea753c1372246684df3e96ae2008cd17e64cef9be /src/providers/ldap/sdap_async_connection.c
parent330c5f39ae4d78b85e260ebbd5b3126bba70ff5c (diff)
downloadsssd-b0249a8990feeb7e7b49da59fb1337a5f462bc64.tar.gz
sssd-b0249a8990feeb7e7b49da59fb1337a5f462bc64.tar.bz2
sssd-b0249a8990feeb7e7b49da59fb1337a5f462bc64.zip
Fix SASL authentication
Diffstat (limited to 'src/providers/ldap/sdap_async_connection.c')
-rw-r--r--src/providers/ldap/sdap_async_connection.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/providers/ldap/sdap_async_connection.c b/src/providers/ldap/sdap_async_connection.c
index 14a1a4b7..a0224a1c 100644
--- a/src/providers/ldap/sdap_async_connection.c
+++ b/src/providers/ldap/sdap_async_connection.c
@@ -571,7 +571,7 @@ static int sdap_sasl_interact(LDAP *ld, unsigned flags,
switch (in->id) {
case SASL_CB_GETREALM:
- case SASL_CB_AUTHNAME:
+ case SASL_CB_USER:
case SASL_CB_PASS:
if (in->defresult) {
in->result = in->defresult;
@@ -580,7 +580,7 @@ static int sdap_sasl_interact(LDAP *ld, unsigned flags,
}
in->len = strlen(in->result);
break;
- case SASL_CB_USER:
+ case SASL_CB_AUTHNAME:
if (state->sasl_user) {
in->result = state->sasl_user;
} else if (in->defresult) {