X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=plugins%2Fadmin%2Fusers%2Fclass_userManagement.inc;h=88936bd503a44fca137274790f3a877074bdd5c7;hb=c3a786a7af7dcec35d946e2e7f551ab29f05ad1c;hp=fbc3ab56b9cf4df74d5b90d7de1b40ffb2cf73f6;hpb=07853ec87fb4aba06800bf95b5716bdb0138c629;p=gosa.git diff --git a/plugins/admin/users/class_userManagement.inc b/plugins/admin/users/class_userManagement.inc index fbc3ab56b..88936bd50 100644 --- a/plugins/admin/users/class_userManagement.inc +++ b/plugins/admin/users/class_userManagement.inc @@ -350,7 +350,7 @@ class userManagement extends plugin /* Lock the current entry, so nobody will edit it during deletion */ add_lock ($this->dn, $this->ui->dn); - $smarty->assign("info", sprintf(_("You're about to delete the user %s."), $this->dn)); + $smarty->assign("info", sprintf(_("You're about to delete the user %s."), LDAP::fix($this->dn))); return($smarty->fetch(get_template_path('remove.tpl', TRUE))); } else { @@ -674,13 +674,13 @@ class userManagement extends plugin "  ". "  ". "  ". - _("Current base")." ". + _("Base")." ". "  ". ""; - $action= ""; - $action.= ""; - $action.= ""; + $action= ""; + $action.= ""; + $action.= ""; @@ -723,29 +723,29 @@ class userManagement extends plugin } /* Pictures for Extensions */ - $usrimg =""; - $posiximg = ""; - $eviroimg = ""; - $mailimg = ""; - $fonimg = ""; - $faximg = ""; - $sambaimg = ""; - $tplcreateuserimg = ""; - $empty = ""; + $empty = ""; // User and Template Images - $userimg = "User"; - $tplimg = "Template"; + $userimg = "User"; + $tplimg = "Template"; $editlink = "%s"; // Defines Arrays to save User and Templates @@ -991,7 +991,13 @@ class userManagement extends plugin */ /* Create base to search in */ - $base2 = preg_replace("/ou=people,/i","",$base); + + $peopleOU = get_people_ou(); + if(empty($peopleOU)) { + $base2 = $base; + }else{ + $base2 = preg_replace("/".$peopleOU."/i","",$base); + } /* Get all departments within this subtree */ $res3 = get_list2($this->ui->subtreeACL, "(&(|(ou=$regex)(description=$regex))(objectClass=gosaDepartment))",