summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-11-27 01:25:46 +0100
committerGünther Deschner <gd@samba.org>2008-11-27 18:28:59 +0100
commit257d99d0cd441697d67b52f3e7c260c17a4a0916 (patch)
tree29ead6f55d2870459a820a4534e9511b74fee825
parente398eed15a7a94d2a53d3bb865927a9db411008c (diff)
downloadsamba-257d99d0cd441697d67b52f3e7c260c17a4a0916.tar.gz
samba-257d99d0cd441697d67b52f3e7c260c17a4a0916.tar.bz2
samba-257d99d0cd441697d67b52f3e7c260c17a4a0916.zip
s3-samr: fix return code for invalid password sets in SetUserInfo.
Guenther
-rw-r--r--source3/rpc_server/srv_samr_nt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c
index 537d58fac1..332d41b1b0 100644
--- a/source3/rpc_server/srv_samr_nt.c
+++ b/source3/rpc_server/srv_samr_nt.c
@@ -4053,7 +4053,7 @@ static NTSTATUS set_user_info_23(TALLOC_CTX *mem_ctx,
&len,
STR_UNICODE)) {
TALLOC_FREE(pwd);
- return NT_STATUS_INVALID_PARAMETER;
+ return NT_STATUS_WRONG_PASSWORD;
}
if (!pdb_set_plaintext_passwd (pwd, plaintext_buf)) {
@@ -4410,7 +4410,7 @@ NTSTATUS _samr_SetUserInfo(pipes_struct *p,
if (!set_user_info_pw(info->info24.password.data, pwd,
switch_value)) {
- status = NT_STATUS_ACCESS_DENIED;
+ status = NT_STATUS_WRONG_PASSWORD;
}
break;
@@ -4431,7 +4431,7 @@ NTSTATUS _samr_SetUserInfo(pipes_struct *p,
}
if (!set_user_info_pw(info->info25.password.data, pwd,
switch_value)) {
- status = NT_STATUS_ACCESS_DENIED;
+ status = NT_STATUS_WRONG_PASSWORD;
}
break;
@@ -4447,7 +4447,7 @@ NTSTATUS _samr_SetUserInfo(pipes_struct *p,
if (!set_user_info_pw(info->info26.password.data, pwd,
switch_value)) {
- status = NT_STATUS_ACCESS_DENIED;
+ status = NT_STATUS_WRONG_PASSWORD;
}
break;