From d24f2ca960fe77031368ab462f183be58f01e88c Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 8 Apr 2008 09:35:47 +0000 Subject: [PATCH] Updated sudo checks git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10274 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */ -- 2.30.2