diff --git a/services/univention-samba4/scripts/create_spn_account.sh b/services/univention-samba4/scripts/create_spn_account.sh index b416956636..88d2454314 100755 --- a/services/univention-samba4/scripts/create_spn_account.sh +++ b/services/univention-samba4/scripts/create_spn_account.sh @@ -127,7 +127,7 @@ create_spn_account() { if [ -z "$spn_account_dn" ]; then - samba-tool user add -- "$spn_account_name" "$spn_account_name_password" || return $? + samba-tool user create -- "$spn_account_name" "$spn_account_name_password" || return $? samba-tool user setexpiry --noexpiry "$spn_account_name" diff --git a/test/ucs-test/tests/52_s4connector/030_sync_with_activated_pwqualitycheck b/test/ucs-test/tests/52_s4connector/030_sync_with_activated_pwqualitycheck index 3d3819f8de..f80c41aa60 100755 --- a/test/ucs-test/tests/52_s4connector/030_sync_with_activated_pwqualitycheck +++ b/test/ucs-test/tests/52_s4connector/030_sync_with_activated_pwqualitycheck @@ -30,7 +30,7 @@ trap 'test "$old_value" = None && \ username="$(random_chars)" for((i=0;i<5;i++)); do - samba-tool user add "$username$i" Univention.99 || fail_bool 0 110 + samba-tool user create "$username$i" Univention.99 || fail_bool 0 110 done ad_wait_for_synchronization; fail_bool 0 110