r22983: This should ensure that torture_create_testuser() can be called,
authorAndrew Bartlett <abartlet@samba.org>
Fri, 18 May 2007 01:15:50 +0000 (01:15 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 18 May 2007 01:15:50 +0000 (01:15 +0000)
without needing to change the user's password afterwoulds.

(Accounts were being created with 'must change at next login' set).

Andrew Bartlett

source/torture/rpc/testjoin.c

index c52ef6e853b4f2f0777f2921b9e87b70a2437c29..0e30b974ed58e405bd0dc3b57e573b4797d350e8 100644 (file)
@@ -261,7 +261,7 @@ again:
        s.in.info = &u;
        s.in.level = 21;
 
-       u.info21.acct_flags = acct_type;
+       u.info21.acct_flags = acct_type | ACB_PWNOEXP;
        u.info21.fields_present = SAMR_FIELD_ACCT_FLAGS | SAMR_FIELD_DESCRIPTION | SAMR_FIELD_COMMENT | SAMR_FIELD_FULL_NAME;
 
        u.info21.comment.string = talloc_asprintf(join,