summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-09-20 23:59:17 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:19:08 -0500
commit13b3421d969fe822678a09d3bf41c3718017e364 (patch)
treedec30f418514b3731a5bb0f999d4fad1265509ad /source4/torture/rpc
parenta0ea586b2526600cbee2e04d0a76bedc9d1a0c3b (diff)
downloadsamba-13b3421d969fe822678a09d3bf41c3718017e364.tar.gz
samba-13b3421d969fe822678a09d3bf41c3718017e364.tar.bz2
samba-13b3421d969fe822678a09d3bf41c3718017e364.zip
r18759: Do not use "simple" as test password as pointed out by Andrew Bartlett.
Thanks metze. Guenther (This used to be commit ea313d55655626cd4c8058cf5e89c0baa1cdcd6d)
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/samr.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/source4/torture/rpc/samr.c b/source4/torture/rpc/samr.c
index 657898c4a2..33da02e8c8 100644
--- a/source4/torture/rpc/samr.c
+++ b/source4/torture/rpc/samr.c
@@ -1882,9 +1882,20 @@ static BOOL test_ChangePassword(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
ret = False;
}
- /* test what happens when picking a simple password (FIXME) */
- if (!test_ChangePasswordUser3(p, mem_ctx, acct_name, 0, password, "simple", 0, True)) {
- ret = False;
+ {
+ char simple_pass[9];
+ char v = (char)random();
+ int i;
+
+ for (i=0; i <ARRAY_SIZE(simple_pass); i++) {
+ simple_pass[i] = v;
+ }
+ simple_pass[i] = '\0';
+
+ /* test what happens when picking a simple password */
+ if (!test_ChangePasswordUser3(p, mem_ctx, acct_name, 0, password, simple_pass, 0, True)) {
+ ret = False;
+ }
}
/* set samr_SetDomainInfo level 1 with min_length 5 */