git.samba.org
/
jra
/
samba
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
747b363
)
Display some nicer error messages for login via 'net'. I don't
author
Volker Lendecke
<vlendec@samba.org>
Wed, 21 Jan 2004 14:36:56 +0000
(14:36 +0000)
committer
Volker Lendecke
<vlendec@samba.org>
Wed, 21 Jan 2004 14:36:56 +0000
(14:36 +0000)
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
ea1a5fb30357f4fe70139ff5583d09cef9fdaa62
)
source3/utils/net.c
patch
|
blob
|
history
diff --git
a/source3/utils/net.c
b/source3/utils/net.c
index 4d2b1eb439b99ea7017d3af2ff9b9860f00f5137..b9081c3e31c3825511d276de66f2ac46b7b67af4 100644
(file)
--- 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;
}
}