Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
saslserv/main: accept grouped nicknames
Due to popular request, finish what was started by ff19f55.
Can't say I like this, but it was easy to do, and I guess I should
continue with the "usability" line anyway.
  • Loading branch information
grawity committed Jun 20, 2014
1 parent 6062284 commit dff8e44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/saslserv/main.c
Expand Up @@ -503,13 +503,13 @@ static myuser_t *login_user(sasl_session_t *p)
/* source_mu is the user whose credentials we verified ("authentication id") */
/* target_mu is the user who will be ultimately logged in ("authorization id") */

source_mu = myuser_find(p->username);
source_mu = myuser_find_by_nick(p->username);
if(source_mu == NULL)
return NULL;

if(p->authzid && *p->authzid)
{
target_mu = myuser_find(p->authzid);
target_mu = myuser_find_by_nick(p->authzid);
if(target_mu == NULL)
return NULL;
}
Expand Down

0 comments on commit dff8e44

Please sign in to comment.