From: hickert Date: Tue, 16 Sep 2008 12:50:08 +0000 (+0000) Subject: Update sudo class X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bb8397c871bd3d8bb87c89881aaa5766e60f3ebd;p=gosa.git Update sudo class -sudo::get_sudoers_ou uses get_ou now. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12479 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 1f5f1413e..c7fc62c29 100644 --- a/gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc +++ b/gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc @@ -58,22 +58,11 @@ class sudo extends plugin /*** GET sudo base ***/ - $base =""; + $base = get_ou("sudoRDN"); if(empty($base)){ - /* Default is ou=sudoers,BASE */ - $base = "ou=sudoers,".$config->current['BASE']; - }else{ - - /* Append base to given sudoers ou if missing */ - if(!preg_match("/".normalizePreg($config->current['BASE'])."$/i",$base)){ - if(!preg_match("/,$/",$base)){ - $base = $base.",".$config->current['BASE']; - }else{ - $base = $base.$config->current['BASE']; - } - } + $base = "ou=sudoers,"; } - return($base); + return($base.$config->current['BASE']); } /*! \brief Initializes this sudo class, with all required attributes.