diff --git a/plugins/admin/groups/class_groupApplication.inc b/plugins/admin/groups/class_groupApplication.inc
index 26af428f42ae7b09e6b3f20492cf7216ea1f1ebf..4a4fde162c069a21fe595b08f4b95b940961ac92 100644 (file)
var $gosaApplicationParameter ;
var $gosaApplicationParameter ;
- function appgroup ($config, $dn= NULL)
+ function appgroup ($config, $dn= NULL, $parent= NULL)
{
/* prepare group app for release management */
{
/* prepare group app for release management */
$this->attributes[] = "FAIrelease";
}
$this->attributes[] = "FAIrelease";
}
- plugin::plugin ($config, $dn);
+ plugin::plugin ($config, $dn, $parent);
/* In some case of old applikations with old release tag saving, we
must reassign is_account state.
/* In some case of old applikations with old release tag saving, we
must reassign is_account state.
$ldap = $this->config->get_ldap_link();
$ldap->cd($dn);
$ldap->search("(&(objectClass=organizationalUnit)(objectClass=FAIbranch))",array("ou"));
$ldap = $this->config->get_ldap_link();
$ldap->cd($dn);
$ldap->search("(&(objectClass=organizationalUnit)(objectClass=FAIbranch))",array("ou"));
-
- $ui = get_userinfo();
- $returned = get_list("(&(objectClass=organizationalUnit)(objectClass=FAIbranch))",$ui->subtreeACL,$dn,array("ou"));
$ret =array();
$ret =array();
-
- foreach($returned as $attrs){
+ while($attrs = $ldap->fetch()){
if(preg_match("/ou=apps,/",$attrs['dn'])){
$bb = preg_replace("/ou=apps,.*/","",$attrs['dn']);
$parts = array_reverse(split("ou=",$bb));
if(preg_match("/ou=apps,/",$attrs['dn'])){
$bb = preg_replace("/ou=apps,.*/","",$attrs['dn']);
$parts = array_reverse(split("ou=",$bb));