1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-11 16:58:40 +03:00

r18759: Do not use "simple" as test password as pointed out by Andrew Bartlett.

Thanks metze.

Guenther
(This used to be commit ea313d55655626cd4c8058cf5e89c0baa1cdcd6d)
This commit is contained in:
Günther Deschner 2006-09-20 23:59:17 +00:00 committed by Gerald (Jerry) Carter
parent a0ea586b25
commit 13b3421d96

View File

@ -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 */