diff options
author | Tim Potter <tpot@samba.org> | 2003-07-02 03:01:27 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2003-07-02 03:01:27 +0000 |
commit | 66c4beb28672ef335ff4d6d6a3447e4c2c337f76 (patch) | |
tree | d19cfb9e482aea01e57c39e09258488f7f433a4e /source/client/client.c | |
parent | 9648e9762561296c33401079389b5d201d1e8a2f (diff) | |
download | samba-66c4beb28672ef335ff4d6d6a3447e4c2c337f76.tar.gz samba-66c4beb28672ef335ff4d6d6a3447e4c2c337f76.tar.xz samba-66c4beb28672ef335ff4d6d6a3447e4c2c337f76.zip |
Suggest the user runs kinit if smbclient -k returns NT_STATUS_MORE_PROCESSING_REQUIRED.
Diffstat (limited to 'source/client/client.c')
-rw-r--r-- | source/client/client.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/client/client.c b/source/client/client.c index f2be268efe2..ea21957d73d 100644 --- a/source/client/client.c +++ b/source/client/client.c @@ -2563,6 +2563,9 @@ static struct cli_state *do_connect(const char *server, const char *share) if (password[0] || !username[0] || use_kerberos || !cli_session_setup(c, "", "", 0, "", 0, lp_workgroup())) { d_printf("session setup failed: %s\n", cli_errstr(c)); + if (NT_STATUS_V(cli_nt_error(c)) == + NT_STATUS_V(NT_STATUS_MORE_PROCESSING_REQUIRED)) + d_printf("did you forget to run kinit?\n"); cli_shutdown(c); return NULL; } @@ -2859,6 +2862,7 @@ static void remember_query_host(const char *arg, pstrcpy(username, cmdline_auth_info.username); pstrcpy(password, cmdline_auth_info.password); + use_kerberos = cmdline_auth_info.use_kerberos; got_pass = cmdline_auth_info.got_pass; |