Code

Updated sudo checks
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 8 Apr 2008 09:35:47 +0000 (09:35 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 8 Apr 2008 09:35:47 +0000 (09:35 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10274 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc

index 967d8c4ce5e3a1cdfb0b6e5cec1f42bb917293a3..16545939182c0d996d11786660d01184a9dd967f 100644 (file)
@@ -567,8 +567,8 @@ class sudo extends plugin
     }
 
     /* Check name */
-    if(!preg_match("/^[a-z]*$/i",$this->cn)){
-      $message[] = msgPool::invalid(_("Name"),$this->cn,"/[a-z]/i");
+    if(!preg_match("/^[a-z\@]*$/i",$this->cn)){
+      $message[] = msgPool::invalid(_("Name"),$this->cn,"/[a-z\@]/i");
     }
 
     /* Check if this entry will cause duplicated ldap entries */