diff options
author | Howard Chu <hyc@symas.com> | 2013-09-17 13:09:07 -0700 |
---|---|---|
committer | Nadezhda Ivanova <nivanova@samba.org> | 2013-09-18 19:47:55 +0200 |
commit | b3bb3040364d4b8a497ced3e758fc81f24924db9 (patch) | |
tree | f29cf8e8ca814c4562fef6bfa3ca20b90a79fe73 /auth/credentials | |
parent | 887f4fbf4396489f353773de0606597c68f71b8a (diff) | |
download | samba-b3bb3040364d4b8a497ced3e758fc81f24924db9.tar.gz samba-b3bb3040364d4b8a497ced3e758fc81f24924db9.tar.bz2 samba-b3bb3040364d4b8a497ced3e758fc81f24924db9.zip |
Prepare for SASL/EXTERNAL support
Signed-off-by: Howard Chu <hyc@symas.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Nadezhda Ivanova <nivanova@symas.com>
Diffstat (limited to 'auth/credentials')
-rw-r--r-- | auth/credentials/credentials.c | 8 |
1 files changed, 8 insertions, 0 deletions
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; } |