summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b70ff8e)
raw | patch | inline | side by side (parent: b70ff8e)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 11 Jul 2006 04:39:34 +0000 (04:39 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 11 Jul 2006 04:39:34 +0000 (04:39 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4083 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/posix/class_posixAccount.inc | patch | blob | history |
diff --git a/plugins/personal/posix/class_posixAccount.inc b/plugins/personal/posix/class_posixAccount.inc
index 2e01d28828288caedfcee0a551ca1ad3d71c464b..2062f47faa44ad96ef3a267c9589c9322d99e68d 100644 (file)
/* Manage group add dialog */
if ($this->group_dialog){
- /* Get Posts */
- if(isset($_POST['depselect'])){
- if(isset($_POST['regex'])){
- $this->GroupRegex = $_POST['regex'];
- }
- if(isset($_POST['guser'])){
- $this->GroupUserRegex = $_POST['guser'];
- }
- }
-
/* Get global filter config */
$this->reload();
}
}
}
+
+ /* Get regex from alphabet */
+ if(isset($_GET['search'])){
+ $this->GroupRegex = $_GET['search']."*";
+ }
+
+ /* Check checkboxes and regexes */
if(isset($_POST["PosixGroupDialogPosted"])){
+
if(isset($_POST['SubSearch']) && ($_POST['SubSearch'])){
$this->SubSearch = true;
}else{
$this->SubSearch = false;
}
+ if(isset($_POST['guser'])){
+ $this->GroupUserRegex = $_POST['guser'];
+ }
+ if(isset($_POST['regex'])){
+ $this->GroupRegex = $_POST['regex'];
+ }
}
+ $this->GroupRegex = preg_replace("/\*\**/","*",$this->GroupRegex);
+ $this->GroupUserRegex = preg_replace("/\*\**/","*",$this->GroupUserRegex);
}
/* Get groups */
if ($this->GroupUserRegex == '*'){
- $filter = "(objectClass=posixGroup)";
+ $filter = "(&(objectClass=posixGroup)(cn=".$this->GroupRegex."))";
} else {
$filter= "(&(objectClass=posixGroup)(cn=".$this->GroupRegex.")(memberUid=".$this->GroupUserRegex."))";
}