diff --git a/lam/lib/account.inc b/lam/lib/account.inc index 202a833a..be64bfce 100644 --- a/lam/lib/account.inc +++ b/lam/lib/account.inc @@ -502,6 +502,9 @@ function get_preg($argument, $regexp) { case 'DNSname': $pregexpr = '/^[0-9a-zA-Z_-]+(\\.[0-9a-zA-Z_-]+)*$/'; break; + case 'nis_alias': + $pregexpr = '/^([[:alnum:]@\\.\\ \\_-])+$/u'; + break; } if ($pregexpr!='') if (preg_match($pregexpr, $argument)) {