summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2010-06-25 17:50:56 +0200
committerStephen Gallagher <sgallagh@redhat.com>2010-10-08 19:51:16 -0400
commit9304c0fa4dbc3a887b2cabf290f5ef6eb3862332 (patch)
tree40009af6b286365b2b7824a82a5d72d6b8806435
parent18663f80aac977d5cfb55e500933999c4fed9a52 (diff)
downloadsssd-9304c0fa4dbc3a887b2cabf290f5ef6eb3862332.tar.gz
sssd-9304c0fa4dbc3a887b2cabf290f5ef6eb3862332.tar.xz
sssd-9304c0fa4dbc3a887b2cabf290f5ef6eb3862332.zip
Fix SASL authentication
-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 14a1a4b7d..a0224a1c1 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) {