Univention Bugzilla – Attachment #7526: Patch file for bug #40876
spn_account_name="${2:?missing argument for samaccountname}"
if ! [[ $spn_account_name =~ ^[A-Za-z0-9.\-]+$ ]]; then
echo "Only numbers, letters, dots and dashes are allowed to be used in samaccountname."
exit 1
fi
shift 2 || exit 2