added length check to usernames

This commit is contained in:
mh 2009-04-30 13:43:14 +00:00
parent 2bc082c505
commit 2deb2ff246

View file

@ -56,6 +56,10 @@ define user::managed(
default => $shell,
}
if strlength($name) > 32 {
fail("Usernames can't be longer than 32 characters. ${name} is too long!")
}
user { $name:
ensure => $ensure,
allowdupe => false,