From 3be06be00f410a19c58fae9d35147675b160e0ee Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 5 Jul 2016 10:53:08 +0200 Subject: [PATCH] selftest: Do not use the deprecated samba-tool user add Signed-off-by: Andreas Schneider Reviewed-by: Ralph Boehme --- selftest/target/Samba4.pm | 4 ++-- 1 file 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;