summaryrefslogtreecommitdiff
path: root/source4/auth
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-05-03 14:54:57 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:05:34 -0500
commited752c800425ffd3db39a770ddaee3ad2d73c494 (patch)
tree0d78add2b43ff2f73c21b01b742606e1c2877391 /source4/auth
parent557c98bd5f4e5268d4793d51037f59ef3482fe8c (diff)
downloadsamba-ed752c800425ffd3db39a770ddaee3ad2d73c494.tar.gz
samba-ed752c800425ffd3db39a770ddaee3ad2d73c494.tar.bz2
samba-ed752c800425ffd3db39a770ddaee3ad2d73c494.zip
r15415: Use Jelmer's new credentials 'wrong password' code to give the user 3
attempts for the password, when talking to a remote CIFS server. Andrew Bartlett (This used to be commit 3a4ddc8f5978210ab3ad79f0332cee80a0d6e6c9)
Diffstat (limited to 'source4/auth')
-rw-r--r--source4/auth/credentials/credentials.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/auth/credentials/credentials.c b/source4/auth/credentials/credentials.c
index 66b6c120cf..cf54bfe3b5 100644
--- a/source4/auth/credentials/credentials.c
+++ b/source4/auth/credentials/credentials.c
@@ -58,6 +58,8 @@ struct cli_credentials *cli_credentials_init(TALLOC_CTX *mem_ctx)
cred->bind_dn = NULL;
+ cred->tries = 3;
+
cli_credentials_set_kerberos_state(cred, CRED_AUTO_USE_KERBEROS);
return cred;
@@ -233,7 +235,7 @@ const char *cli_credentials_get_password(struct cli_credentials *cred)
if (cred->password_obtained == CRED_CALLBACK) {
cred->password = cred->password_cb(cred);
- cred->password_obtained = CRED_SPECIFIED;
+ cred->password_obtained = CRED_CALLBACK_RESULT;
}
return cred->password;