From: hickert Date: Tue, 8 Apr 2008 09:35:47 +0000 (+0000) Subject: Updated sudo checks X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d24f2ca960fe77031368ab462f183be58f01e88c;p=gosa.git Updated sudo checks git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10274 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc b/gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc index 967d8c4ce..165459391 100644 --- a/gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc +++ b/gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc @@ -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 */