Skip to content

Commit

Permalink
Fallback to realm if no domain is found in %d token expansion
Browse files Browse the repository at this point in the history
If username have no domain, the %d have to use the same value of %r,
so the break will be executed only if a domain is found.

Regression of 627d842
  • Loading branch information
Andrea Redaelli committed Aug 2, 2024
1 parent 537af16 commit 26558e4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions saslauthd/lak.c
Original file line number Diff line number Diff line change
Expand Up @@ -705,9 +705,8 @@ static int lak_expand_tokens(
strcat(buf,ebuf);
free(ebuf);
}
} else
syslog(LOG_DEBUG|LOG_AUTH, "Domain/Realm not available.");
break;
break;
}
case 'R':
case 'r':
if (ISSET(realm)) {
Expand Down

0 comments on commit 26558e4

Please sign in to comment.