diff --git a/lam/lib/account.inc b/lam/lib/account.inc index 29f76281..8d818ea7 100644 --- a/lam/lib/account.inc +++ b/lam/lib/account.inc @@ -511,6 +511,9 @@ function get_preg($argument, $regexp) { case 'country': // Allow all letters and space $pregexpr = '/^[[:alpha:]]([[:alpha:] ])+$/u'; break; + case 'dn': // LDAP DN + $pregexpr = '/^([^=,]+=[^=,]+)(,([^=,]+=[^=,]+))*$/'; + break; } if ($pregexpr!='') if (preg_match($pregexpr, $argument)) {