diff options
author | Andrew Bartlett <abartlet@samba.org> | 2006-05-07 18:21:55 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:05:42 -0500 |
commit | 8792ff810dd038f2c669a75227633e6aceace6eb (patch) | |
tree | 58ce4cb4edcb9bd42455c4deb155dbc8fabd3af3 /source4 | |
parent | 5f36534629f7f755c7ad8681ec2322baa50f5504 (diff) | |
download | samba-8792ff810dd038f2c669a75227633e6aceace6eb.tar.gz samba-8792ff810dd038f2c669a75227633e6aceace6eb.tar.bz2 samba-8792ff810dd038f2c669a75227633e6aceace6eb.zip |
r15501: Allow interactive password prompting on kerberos as well.
Andrew Bartlett
(This used to be commit 7003c3e8dee2d2bfc391875d90eb747616cb361a)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/auth/kerberos/kerberos_util.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/auth/kerberos/kerberos_util.c b/source4/auth/kerberos/kerberos_util.c index 776b591ba4..605ccdc513 100644 --- a/source4/auth/kerberos/kerberos_util.c +++ b/source4/auth/kerberos/kerberos_util.c @@ -209,6 +209,13 @@ krb5_error_code principal_from_credentials(TALLOC_CTX *parent_ctx, talloc_free(mem_ctx); return ret; } + + if (ret == KRB5KDC_ERR_PREAUTH_FAILED && cli_credentials_wrong_password(credentials)) { + ret = kinit_to_ccache(parent_ctx, + credentials, + smb_krb5_context, + ccache); + } if (ret) { DEBUG(1,("kinit for %s failed (%s)\n", cli_credentials_get_principal(credentials, mem_ctx), |