From b3bb3040364d4b8a497ced3e758fc81f24924db9 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 17 Sep 2013 13:09:07 -0700 Subject: Prepare for SASL/EXTERNAL support Signed-off-by: Howard Chu Reviewed-by: Andrew Bartlett Reviewed-by: Nadezhda Ivanova --- auth/credentials/credentials.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'auth') diff --git a/auth/credentials/credentials.c b/auth/credentials/credentials.c index e98dfbdae4..d15cee6b77 100644 --- a/auth/credentials/credentials.c +++ b/auth/credentials/credentials.c @@ -365,6 +365,14 @@ _PUBLIC_ bool cli_credentials_authentication_requested(struct cli_credentials *c return true; } + /* + * If we forced the mech we clearly want authentication. E.g. to use + * SASL/EXTERNAL which has no credentials. + */ + if (cred->forced_sasl_mech) { + return true; + } + if (cli_credentials_is_anonymous(cred)){ return false; } -- cgit