diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-05-10 11:23:50 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:51:55 -0500 |
commit | 0f581e4af943a7e5dfd71d1c308ac668f287aed3 (patch) | |
tree | 023b42ba3ffcd6e3a58f6fe9065ac4c51d7b551e /source4/torture | |
parent | 0997d02c50dfe1bd65db89e91705166d29b5ec56 (diff) | |
download | samba-0f581e4af943a7e5dfd71d1c308ac668f287aed3.tar.gz samba-0f581e4af943a7e5dfd71d1c308ac668f287aed3.tar.bz2 samba-0f581e4af943a7e5dfd71d1c308ac668f287aed3.zip |
r623: setUserInfo level 24 (password set) now works in the SAMR server. This includes all
of the password complexity, password history and other password restrictions.
(This used to be commit cb070b9084d95cf5178edbef951b75eab62b7220)
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/rpc/samr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/torture/rpc/samr.c b/source4/torture/rpc/samr.c index dc6a1a27dd..4e11cd3995 100644 --- a/source4/torture/rpc/samr.c +++ b/source4/torture/rpc/samr.c @@ -350,7 +350,8 @@ static BOOL test_SetUserPass(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, s.in.level = 24; encode_pw_buffer(u.info24.password.data, newpass, STR_UNICODE); - u.info24.pw_len = strlen(newpass); + /* w2k3 ignores this length */ + u.info24.pw_len = str_charnum(newpass)*2; status = dcerpc_fetch_session_key(p, &session_key); if (!NT_STATUS_IS_OK(status)) { |