summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b8e1f2d)
raw | patch | inline | side by side (parent: b8e1f2d)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 19 May 2006 03:37:40 +0000 (03:37 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 19 May 2006 03:37:40 +0000 (03:37 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3436 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/posix/class_posixAccount.inc | patch | blob | history | |
plugins/personal/posix/posix_groups.tpl | patch | blob | history |
diff --git a/plugins/personal/posix/class_posixAccount.inc b/plugins/personal/posix/class_posixAccount.inc
index 2af3bc0fa1c2b4ee5d70ffe2102a0b9535da937c..b72840a3f6da714c7a64e5685f40bca7c8e7c3af 100644 (file)
var $GroupRegex = "*";
var $GroupUserRegex = "*";
+ var $SubSearch = false;
/* attribute list for save action */
var $CopyPasteVars = array("grouplist","groupMembership","use_shadowMin","use_shadowMax","use_shadowWarning","use_shadowInactive","use_shadowExpire","must_change_password","force_ids","printerList","grouplist","savedGidNumber","savedUidNumber","savedGroupMembership");
}
}
+ if($this->SubSearch){
+ $smarty->assign("SubSearchCHK"," checked ");
+ }else{
+ $smarty->assign("SubSearchCHK","");
+ }
+
$smarty->assign("regex",$this->GroupRegex);
$smarty->assign("guser",$this->GroupUserRegex);
$smarty->assign("groups", $glist);
}
}
}
+ if(isset($_POST["PosixGroupDialogPosted"])){
+ if(isset($_POST['SubSearch']) && ($_POST['SubSearch'])){
+ $this->SubSearch = true;
+ }else{
+ $this->SubSearch = false;
+ }
+ }
}
/* Set base for all searches */
$base = $_SESSION['CurrentMainBase'];
- $base = get_groups_ou().$base;
+ $base = $base;
$ldap = $this->config->get_ldap_link();
$attrs = array("cn", "description", "gidNumber");
+ $Flags = GL_SIZELIMIT;
/* Get groups */
if ($this->GroupUserRegex == '*'){
} else {
$filter= "(&(objectClass=posixGroup)(cn=".$this->GroupRegex.")(memberUid=".$this->GroupUserRegex."))";
}
- $res= get_list($filter, $this->ui->subtreeACL, $base,$attrs, GL_SIZELIMIT);
+ if($this->SubSearch){
+ $Flags |= GL_SUBSEARCH;
+ }else{
+ $base = get_groups_ou().$base;
+ }
+
+
+ $res= get_list($filter, $this->ui->subtreeACL, $base,$attrs, $Flags);
/* check sizelimit */
if (preg_match("/size limit/i", $ldap->error)){
index 3616545e80e0f2e3578ebaba9f77ffa77c3f97dd..ca3ae3ec5825979e2ced3e347b68fc9074a6cb6d 100644 (file)
<table summary="" style="width:100%;">
{$alphabet}
</table>
+
<table summary="" width="100%" style="border-top:1px solid #B0B0B0;background-color:#F8F8F8">
<tr>
<td width="50%">
</tr>
</table>
<table summary="" width="100%" style="border-top:1px solid #B0B0B0;background-color:#F8F8F8">
+ <tr>
+ <td>
+ <input type="checkbox" name="SubSearch" value="1" {$SubSearchCHK}
+ onClick="mainform.submit();">
+ {t}Ignore subtrees{/t}
+ </td>
+ </tr>
+ </table>
+ <table summary="" width="100%" style="border-top:1px solid #B0B0B0;background-color:#F8F8F8">
<tr>
<td width="50%">
<img alt="" src="{$search_image}" align=middle> {t}Display groups matching{/t}
</td>
</tr>
</table>
-
+<input type="hidden" value="1" name="PosixGroupDialogPosted">
<p class="plugbottom">
<input type=submit name="add_groups_finish" value="{t}Add{/t}">