From: hickert Date: Tue, 15 May 2007 07:55:21 +0000 (+0000) Subject: Added gosaLogServer to config class X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4e21fc2c719f4175c9b0e72ee9fbc95249a16ddf;p=gosa.git Added gosaLogServer to config class git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6379 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_config.inc b/include/class_config.inc index 762c6e0f9..e3d3635e0 100644 --- a/include/class_config.inc +++ b/include/class_config.inc @@ -420,6 +420,8 @@ class config { 'PASSWORD' => $attrs['goGlpiPassword'][0], 'DB' => $attrs['goGlpiDatabase'][0]); } + + /* Get logdb server */ $ldap->cd ($this->current['BASE']); $ldap->search ("(objectClass=goLogDBServer)"); @@ -430,6 +432,20 @@ class config { 'PASSWORD' => $attrs['goLogPassword'][0]); } + + /* GOsa logging databases */ + $ldap->cd ($this->current['BASE']); + $ldap->search ("(objectClass=gosaLogServer)"); + if ($ldap->count()){ + $attrs= $ldap->fetch(); + $this->data['SERVERS']['LOGGING'][$attrs['cn'][0]]= + array( + 'USER' => $attrs['goLogDBUser'][0], + 'DB' => $attrs['goLogDB'][0], + 'PWD' => $attrs['goLogDBPassword'][0]); + } + + /* Get NFS server lists */ $tmp= array("default"); $ldap->cd ($this->current['BASE']);