summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-01-01 04:19:34 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-01-01 04:19:34 +0000
commit60f9614400a073626344be6e0dedb8d15611cfff (patch)
tree14aab1f6d3ac49b18ef10c9f332e21fa8860f634 /source3/rpc_server
parent2eb7a80a46e1e2d7331a62d15c5754895285540f (diff)
downloadsamba-60f9614400a073626344be6e0dedb8d15611cfff.tar.gz
samba-60f9614400a073626344be6e0dedb8d15611cfff.tar.bz2
samba-60f9614400a073626344be6e0dedb8d15611cfff.zip
Move our password change code along a little - use NTSTATUS, and implmenet
minimum password age and min password length for all password changes. Andrew Bartlett (This used to be commit 028f808c032becfa4618924cb301a4af2708fa96)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_samr_nt.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c
index 3e3baedb9a..b4cd8ae5b5 100644
--- a/source3/rpc_server/srv_samr_nt.c
+++ b/source3/rpc_server/srv_samr_nt.c
@@ -1536,9 +1536,8 @@ NTSTATUS _samr_chgpasswd_user(pipes_struct *p, SAMR_Q_CHGPASSWD_USER *q_u, SAMR_
* is case insensitive.
*/
- if (!pass_oem_change(user_name, q_u->lm_newpass.pass, q_u->lm_oldhash.hash,
- q_u->nt_newpass.pass, q_u->nt_oldhash.hash))
- r_u->status = NT_STATUS_WRONG_PASSWORD;
+ r_u->status = pass_oem_change(user_name, q_u->lm_newpass.pass, q_u->lm_oldhash.hash,
+ q_u->nt_newpass.pass, q_u->nt_oldhash.hash);
init_samr_r_chgpasswd_user(r_u, r_u->status);