diff options
author | Tim Potter <tpot@samba.org> | 2001-12-14 03:55:09 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2001-12-14 03:55:09 +0000 |
commit | 69e0fe9972e8897f61307d988f290a41c105e1f5 (patch) | |
tree | da847cb6f466b3ea2ea17706d808f27a6c9e0082 | |
parent | 6c2dfef8890ed834e9ef110b90ebf04e45bf8fff (diff) | |
download | samba-69e0fe9972e8897f61307d988f290a41c105e1f5.tar.gz samba-69e0fe9972e8897f61307d988f290a41c105e1f5.tar.bz2 samba-69e0fe9972e8897f61307d988f290a41c105e1f5.zip |
Display a nice error message for NT_STATUS_LOGON_FAILURE in connect_to_ipc()
(This used to be commit 60eb4dc7b1114275f035d27a890e0301a65e0e42)
-rw-r--r-- | source3/utils/net.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/utils/net.c b/source3/utils/net.c index c4fcdf7a72..99b0998992 100644 --- a/source3/utils/net.c +++ b/source3/utils/net.c @@ -124,6 +124,13 @@ static struct cli_state *connect_to_ipc(struct in_addr *server_ip, const char *s } else { DEBUG(0,("Cannot connect to server. Error was %s\n", get_nt_error_msg(nt_status))); + + /* Display a nicer message depending on the result */ + + if (NT_STATUS_V(nt_status) == + NT_STATUS_V(NT_STATUS_LOGON_FAILURE)) + d_printf("The username or password was not correct.\n"); + return NULL; } } |