summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/lib/credentials.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/credentials.c b/source4/lib/credentials.c
index 69e237428c..579f199d2e 100644
--- a/source4/lib/credentials.c
+++ b/source4/lib/credentials.c
@@ -126,7 +126,7 @@ BOOL cli_credentials_set_principal(struct cli_credentials *cred, const char *val
BOOL cli_credentials_authentication_requested(struct cli_credentials *cred)
{
- if (cred->principal_obtained == CRED_SPECIFIED) {
+ if (cred->principal_obtained >= CRED_SPECIFIED) {
return True;
}
if (cred->username_obtained >= CRED_SPECIFIED) {