Skip to content
Snippets Groups Projects
Commit c43fec53 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Cyrus SASL uses screwy terms.

parent 5701fec1
No related branches found
No related tags found
No related merge requests found
......@@ -829,12 +829,18 @@ ldap_negotiated_sasl_bind_s(
sasl_callback_t callbacks[4];
int rc;
callbacks[n=0].id = SASL_CB_USER;
/*
* Cyrus uses screwy terms. The authname is the
* SASL "username" or authentication identity.
* The user is the authorization identity.
*/
callbacks[n=0].id = SASL_CB_AUTHNAME;
callbacks[n].proc = ldap_pvt_sasl_getsimple;
callbacks[n].context = (void *)authenticationId;
if( authorizationId != NULL ) {
callbacks[++n].id = SASL_CB_AUTHNAME;
callbacks[++n].id = SASL_CB_USER;
callbacks[n].proc = ldap_pvt_sasl_getsimple;
callbacks[n].context = (void *)authorizationId;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment