summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2004-01-21 14:38:11 +0000
committerVolker Lendecke <vlendec@samba.org>2004-01-21 14:38:11 +0000
commitb63c7081c593a78a9217899c201a1029707193b1 (patch)
tree44d5a336c6ac03bb4757b0d586411fb913db7291 /source3
parente25e0e372bfd3afbab0e116d61a48bbcb934203d (diff)
downloadsamba-b63c7081c593a78a9217899c201a1029707193b1.tar.gz
samba-b63c7081c593a78a9217899c201a1029707193b1.tar.bz2
samba-b63c7081c593a78a9217899c201a1029707193b1.zip
Display some nicer error messages for login via 'net'. I don't
see a reason why we have so many special cases and not simply use nt_errstr(nt_status). Comments? Volker (This used to be commit 18fa3ee649102f4bd36f9b03702fe72d234b6a3a)
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/net.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/utils/net.c b/source3/utils/net.c
index 4d2b1eb439..b9081c3e31 100644
--- a/source3/utils/net.c
+++ b/source3/utils/net.c
@@ -155,6 +155,14 @@ NTSTATUS connect_to_ipc(struct cli_state **c, struct in_addr *server_ip,
NT_STATUS_V(NT_STATUS_LOGON_FAILURE))
d_printf("The username or password was not correct.\n");
+ if (NT_STATUS_V(nt_status) ==
+ NT_STATUS_V(NT_STATUS_ACCOUNT_LOCKED_OUT))
+ d_printf("The account was locked out.\n");
+
+ if (NT_STATUS_V(nt_status) ==
+ NT_STATUS_V(NT_STATUS_ACCOUNT_DISABLED))
+ d_printf("The account was disabled.\n");
+
return nt_status;
}
}