From 69e0fe9972e8897f61307d988f290a41c105e1f5 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Fri, 14 Dec 2001 03:55:09 +0000 Subject: Display a nice error message for NT_STATUS_LOGON_FAILURE in connect_to_ipc() (This used to be commit 60eb4dc7b1114275f035d27a890e0301a65e0e42) --- source3/utils/net.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source3/utils') 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; } } -- cgit