summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2016-07-05 10:53:08 +0200
committerStefan Metzmacher <metze@samba.org>2016-07-06 19:07:16 +0200
commit3be06be00f410a19c58fae9d35147675b160e0ee (patch)
tree3068cea445fb56c17e0062e3e688d5e4af4fbe10
parent38b7bed93c6926a914a2eaeff4e9ffe1f2fcc6d7 (diff)
downloadsamba-3be06be00f410a19c58fae9d35147675b160e0ee.tar.gz
selftest: Do not use the deprecated samba-tool user add
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
-rwxr-xr-xselftest/target/Samba4.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/selftest/target/Samba4.pm b/selftest/target/Samba4.pm
index 731ad1f7db6..77786155057 100755
--- a/selftest/target/Samba4.pm
+++ b/selftest/target/Samba4.pm
@@ -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;