From 6951a54866dfd987b3b0e9c491cfd3f8a898528a Mon Sep 17 00:00:00 2001 From: Andrea Redaelli Date: Fri, 2 Aug 2024 12:29:01 +0200 Subject: [PATCH] Fallback to realm if no domain is found in %d token expansion 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 627d84276bc16537fa70b1989047ea19aa5ab24f Signed-off-by: Andrea Redaelli --- saslauthd/lak.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/saslauthd/lak.c b/saslauthd/lak.c index e29c898c..cb3cd34c 100644 --- a/saslauthd/lak.c +++ b/saslauthd/lak.c @@ -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)) {