summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 07283db)
raw | patch | inline | side by side (parent: 07283db)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 24 Jul 2008 16:02:56 +0000 (16:02 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 24 Jul 2008 16:02:56 +0000 (16:02 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12034 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/admin/groups/class_groupGeneric.inc | patch | blob | history |
diff --git a/gosa-core/plugins/admin/groups/class_groupGeneric.inc b/gosa-core/plugins/admin/groups/class_groupGeneric.inc
index 8c1662549b2d7fd16299287f6da6843a534bfc14..955216970e0bc93420bcc72c1e347920721136c5 100644 (file)
function group (&$config, $dn= NULL)
{
/* Set rfc2307bis flag */
- if (isset($config->current['RFC2307BIS']) && ($config->current['RFC2307BIS']== "true")){
+ if ($config->get_cfg_value("rfc2307bis") == "true"){
$this->rfc2307bis= TRUE;
$this->attributes[]= "member";
$this->objectclasses[]= "groupOfNames";
plugin::plugin ($config, $dn);
/* Load attributes depending on the samba version */
- $this->samba3= ($config->current['SAMBAVERSION'] == 3);
+ $this->samba3= ($config->get_cfg_value("sambaversion") == 3);
$this->orig_dn= $dn;
$this->orig_cn= $this->cn;
if(isset($attrs['sambaAlgorithmicRidBase'])){
$this->ridBase= $attrs['sambaAlgorithmicRidBase'][0];
} else {
- $this->ridBase= $this->config->current['RIDBASE'];
+ $this->ridBase= $this->config->get_cfg_value("ridbase");
}
/* Get domain name for SID */
}
}
} else {
- if (isset($this->config->current['RIDBASE'])){
+ if ($this->config->get_cfg_value("ridbase") != ""){
$this->sambaDomainName= "DEFAULT";
- $this->ridBase= $this->config->current['RIDBASE'];
- $this->SID= $this->config->current['SID'];
+ $this->ridBase= $this->config->get_cfg_value("ridbase");
+ $this->SID= $this->config->get_cfg_value("sid");
} else {
msg_dialog::display(_("Configuration error"), _("Cannot find group SID in your configuration!"), ERROR_DIALOG);
}
to be prepared when adding/deleting users)
*/
$filter = "";
- if(!isset($this->config->current['LDAP_FILTER_NESTING_LIMIT']) ||
- count($this->memberUid) < $this->config->current['LDAP_FILTER_NESTING_LIMIT']){
+ if ($this->config->get_cfg_value("ldap_filter_nesting_limit") == "" ||
+ count($this->memberUid) < $this->config->get_cfg_value("ldap_filter_nesting_limit")){
foreach ($this->memberUid as $value){
if(!isset($this->members[$value])){
$filter .= "(uid=".normalizeLdap($value).")";
}
/* check if all uids are resolved */
- if(!isset($this->config->current['LDAP_FILTER_NESTING_LIMIT']) ||
- count($this->memberUid) < $this->config->current['LDAP_FILTER_NESTING_LIMIT']){
+ if ($this->config->get_cfg_value("ldap_filter_nesting_limit") == "" ||
+ count($this->memberUid) < $this->config->get_cfg_value("ldap_filter_nesting_limit")){
foreach ($this->memberUid as $value){
if(!isset($this->members[$value])){
$this->members[$value] = _("! unknown id")." [".$value."]";
/* User wants me to fake the idMappings? This is useful for
making winbind resolve the group names in a reasonable amount
of time in combination with larger databases. */
- if (isset($this->config->current['SAMBAIDMAPPING']) &&
- preg_match('/true/i', $this->config->current['SAMBAIDMAPPING'])){
+ if ($this->config->get_cfg_value("sambaidmapping") == "true"){
$this->attrs['objectClass'][]= "sambaIdmapEntry";
}
if (!tests::is_id($this->gidNumber)){
$message[]= msgPool::invalid(_("GID"), $this->gidNumber, "/[0-9]/");
} else {
- if ($this->gidNumber < $this->config->current['MINID']){
- $message[]= msgPool::toosmall(_("GID"), $this->config->current['MINID']);
+ if ($this->gidNumber < $this->config->get_cfg_value("minid")){
+ $message[]= msgPool::toosmall(_("GID"), $this->config->get_cfg_value("minid"));
}
}
}
/* Find out next free id near to UID_BASE */
- if (!isset($this->config->current['BASE_HOOK'])){
- $base= $this->config->current['UIDBASE'];
+ if ($this->config->get_cfg_value("base_hook") == ""){
+ $base= $this->config->get_cfg_value("uidbase");
} else {
/* Call base hook */
$base= get_base_from_hook($dn, $attrib);