The branch, master has been updated
       via  490f6c418d8b1280d0a3b85773a72b2047122c12 (commit)
       via  32add69632ed4a2b877043c8df1185008516c299 (commit)
      from  1214bf606d1cdf3f33b91ffe7cb4c349ce737d68 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 490f6c418d8b1280d0a3b85773a72b2047122c12
Author: Günther Deschner <[email protected]>
Date:   Fri Apr 17 11:14:14 2009 +0200

    s3-selftest: enable RPC-SAMR-PASSWORDS-PWDLASTSET whilte testing Samba3.
    
    Guenther

commit 32add69632ed4a2b877043c8df1185008516c299
Author: Günther Deschner <[email protected]>
Date:   Fri Apr 17 11:04:44 2009 +0200

    s4-smbtorture: disable CreateUser2 tests when running 
RPC-SAMR-PASSWORDS-PWDLAST
    against Samba3.
    
    Samba 3 does not (yet) get all the ACB_flag settings right upon creation.
    
    Guenther

-----------------------------------------------------------------------

Summary of changes:
 source3/script/tests/test_posix_s3.sh |    3 ++-
 source4/torture/rpc/samr.c            |    4 +++-
 2 files changed, 5 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/script/tests/test_posix_s3.sh 
b/source3/script/tests/test_posix_s3.sh
index 89a7ea7..093afb6 100755
--- a/source3/script/tests/test_posix_s3.sh
+++ b/source3/script/tests/test_posix_s3.sh
@@ -40,7 +40,8 @@ raw="$raw RAW-SAMBA3ROOTDIRFID"
 rpc="RPC-AUTHCONTEXT RPC-BINDSAMBA3 RPC-SAMBA3-SRVSVC RPC-SAMBA3-SHARESEC"
 rpc="$rpc RPC-SAMBA3-SPOOLSS RPC-SAMBA3-WKSSVC"
 rpc="$rpc RPC-NETLOGSAMBA3 RPC-SAMBA3SESSIONKEY RPC-SAMBA3-GETUSERNAME"
-rpc="$rpc RPC-SVCCTL RPC-SPOOLSS-WIN RPC-NTSVCS RPC-LSA-LOOKUPSIDS"
+rpc="$rpc RPC-SVCCTL RPC-SPOOLSS-WIN RPC-NTSVCS RPC-LSA-LOOKUPSIDS "
+rpc="$rpc RPC-SAMR-PASSWORDS-PWDLASTSET"
 
 # NOTE: to enable the UNIX-WHOAMI test, we need to change the default share
 # config to allow guest access. I'm not sure whether this would break other
diff --git a/source4/torture/rpc/samr.c b/source4/torture/rpc/samr.c
index 8af9867..9c867fd 100644
--- a/source4/torture/rpc/samr.c
+++ b/source4/torture/rpc/samr.c
@@ -5664,7 +5664,9 @@ static bool test_OpenDomain(struct dcerpc_pipe *p, struct 
torture_context *tctx,
                }
                break;
        case TORTURE_SAMR_PASSWORDS_PWDLASTSET:
-               ret &= test_CreateUser2(p, tctx, &domain_handle, sid, 
which_ops, machine_credentials);
+               if (!torture_setting_bool(tctx, "samba3", false)) {
+                       ret &= test_CreateUser2(p, tctx, &domain_handle, sid, 
which_ops, machine_credentials);
+               }
                ret &= test_CreateUser(p, tctx, &domain_handle, &user_handle, 
sid, which_ops, machine_credentials);
                if (!ret) {
                        printf("Testing PASSWORDS PWDLASTSET on domain %s 
failed!\n", dom_sid_string(tctx, sid));


-- 
Samba Shared Repository

Reply via email to