summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 037f1ee)
raw | patch | inline | side by side (parent: 037f1ee)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 1 Jun 2010 11:38:49 +0000 (11:38 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 1 Jun 2010 11:38:49 +0000 (11:38 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18814 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/dyngroup/addons/dyngroup/classDynamicLdapGroup.inc | patch | blob | history |
diff --git a/gosa-plugins/dyngroup/addons/dyngroup/classDynamicLdapGroup.inc b/gosa-plugins/dyngroup/addons/dyngroup/classDynamicLdapGroup.inc
index b8bf59797567df14cb2a39df7f63cc2b968dba04..6569467954b3eeead9d6bdf3a87b9f3d7b01bd12 100644 (file)
public $labeledURI = array();
public $labeledURIparsed = array();
public $labeledURIdefault = 'ldap:///dc=example,dc=com?memberUid?sub?(objectClass=posixGroup)';
+
+ public $scopes = array('base','one','sub');
/**
* Store values of memberUrl.
//
$smarty = get_smarty();
$smarty->assign('labeledURIparsed', $this->labeledURIparsed);
- $smarty->assign('scopes', array('base','one','sub'));
+ $smarty->assign('scopes', $this->scopes);
$display .= $smarty->fetch(get_template_path('dyngroup.tpl', TRUE, dirname(__FILE__)));
return $display;
}
// Build up labeledUri entries
$this->labeledURI = array();
foreach($this->labeledURIparsed as $entry){
- $this->labeledURI[] = "{$entry['base']}?{$entry['attr']}?{$entry['scope']}?{$entry['filter']}";
+ $scope = $this->scopes[$entry['scope']];
+ $this->labeledURI[] = "{$entry['base']}?{$entry['attr']}?{$scope}?{$entry['filter']}";
}
parent::save();
$ldap = $this->config->get_ldap_link();
$ldap->cd($this->dn);
$ldap->modify($this->attrs);
-
if(!$ldap->success()){
msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->dn, LDAP_DEL, get_class()));
}