From f5ad2e65668d71d1fd519885a0c1e303d1483435 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Tue, 26 Jul 2005 09:54:35 +0000 Subject: [PATCH] allow \"@\" in cn attribute --- lam/lib/account.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lam/lib/account.inc b/lam/lib/account.inc index 8b8b7643..c4730b29 100644 --- a/lam/lib/account.inc +++ b/lam/lib/account.inc @@ -433,7 +433,9 @@ function get_preg($argument, $regexp) { case 'password': // fixme where do i get an exact regexp? $pregexpr = '/^([[:alnum:]\\ \\|\\#\\*\\,\\.\\;\\:\\_\\+\\!\\%\\&\\/\\?\\{\\(\\)\\}-])*$/u'; break; - case 'cn': + case 'cn': // first character must be a letter. All letters, numbers, space and @._- are allowed characters + $pregexpr = '/^[[:alpha:]]([[:alnum:]@\\.\\ \\_-])*$/u'; + break; case 'groupname': // first character must be a letter. All letters, numbers, space and ._- are allowed characters case 'username': // first character must be a letter. All letters, numbers, space and ._- are allowed characters $pregexpr = '/^[[:alpha:]]([[:alnum:]\\.\\ \\_-])*$/u';