summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-06-14 04:00:42 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:09:06 -0500
commit9482de397977fc6b7c18795f0398bcc3768fd189 (patch)
treee058d47d737a0a2dcc487536ebf220f3bba7d07d
parent9fb340758bfea2d22047e541ab86894d48534649 (diff)
downloadsamba-9482de397977fc6b7c18795f0398bcc3768fd189.tar.gz
samba-9482de397977fc6b7c18795f0398bcc3768fd189.tar.bz2
samba-9482de397977fc6b7c18795f0398bcc3768fd189.zip
r16218: If a connection is forced as 'anonymous', don't treat it as
'authentication requested'... Andrew Bartlett (This used to be commit d5fc88c93697dbcab13b2356ef4e5d1d2a7d59eb)
-rw-r--r--source4/auth/credentials/credentials.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/auth/credentials/credentials.c b/source4/auth/credentials/credentials.c
index d884fb59ce..caaef3e0c2 100644
--- a/source4/auth/credentials/credentials.c
+++ b/source4/auth/credentials/credentials.c
@@ -216,8 +216,8 @@ BOOL cli_credentials_authentication_requested(struct cli_credentials *cred)
return True;
}
- if (cred->machine_account_pending) {
- cli_credentials_set_machine_account(cred);
+ if (cli_credentials_is_anonymous(cred)){
+ return False;
}
if (cred->principal_obtained >= CRED_SPECIFIED) {