From: hickert Date: Tue, 18 May 2010 16:01:02 +0000 (+0000) Subject: Added new flag ignoreLdapProperties which ignores settings made in the property editor. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=247ad716e35706b7da553949bfed7cce39a0032d;p=gosa.git Added new flag ignoreLdapProperties which ignores settings made in the property editor. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18536 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/contrib/gosa.conf b/gosa-core/contrib/gosa.conf index 62c53a6e8..1b600d1c0 100644 --- a/gosa-core/contrib/gosa.conf +++ b/gosa-core/contrib/gosa.conf @@ -350,7 +350,10 @@ the gosa.conf(5) manual page. --> -
+ +
config = &$config; @@ -76,8 +79,15 @@ class configRegistry{ } } + // Skip searching for LDAP defined properties if 'ignoreLdapProperties' is set to 'true' + // in the config. + if(isset($this->fileStoredProperties['core'][strtolower('ignoreLdapProperties')]) && + preg_match("/(true|on)/i", $this->fileStoredProperties['core'][strtolower('ignoreLdapProperties')])){ + $this->ignoreLdapProperties = TRUE; + } + // Search for all config flags defined in the LDAP - BUT only if we ARE logged in. - if(!empty($this->config->current['CONFIG'])){ + if(!$this->ignoreLdapProperties && !empty($this->config->current['CONFIG'])){ $ldap = $this->config->get_ldap_link(); $ldap->cd($this->config->current['CONFIG']); $ldap->search('(&(objectClass=gosaConfig)(gosaSetting=*))', array('cn','gosaSetting'));