selftest: Do not use the deprecated samba-tool user add
authorAndreas Schneider <asn@samba.org>
Tue, 5 Jul 2016 08:53:08 +0000 (10:53 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 6 Jul 2016 17:07:16 +0000 (19:07 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
selftest/target/Samba4.pm

index 731ad1f7db663ac565f27f8f4e7993c2dd9d0f36..7778615505706dd62ea4833aa7002c5a64aba025 100755 (executable)
@@ -728,7 +728,7 @@ sub provision_raw_step2($$$)
        my $samba_tool_cmd = "";
        $samba_tool_cmd .= "KRB5_CONFIG=\"$ret->{KRB5_CONFIG}\" ";
        $samba_tool_cmd .= Samba::bindir_path($self, "samba-tool")
-           . " user add --configfile=$ctx->{smb_conf} $testallowed_account $ctx->{password}";
+           . " user create --configfile=$ctx->{smb_conf} $testallowed_account $ctx->{password}";
        unless (system($samba_tool_cmd) == 0) {
                warn("Unable to add testallowed user: \n$samba_tool_cmd\n");
                return undef;
@@ -768,7 +768,7 @@ servicePrincipalName: host/testallowed
        $samba_tool_cmd = "";
        $samba_tool_cmd .= "KRB5_CONFIG=\"$ret->{KRB5_CONFIG}\" ";
        $samba_tool_cmd .= Samba::bindir_path($self, "samba-tool")
-           . " user add --configfile=$ctx->{smb_conf} testdenied $ctx->{password}";
+           . " user create --configfile=$ctx->{smb_conf} testdenied $ctx->{password}";
        unless (system($samba_tool_cmd) == 0) {
                warn("Unable to add testdenied user: \n$samba_tool_cmd\n");
                return undef;