From: hickert Date: Mon, 14 May 2007 12:17:28 +0000 (+0000) Subject: Updated config.inc to support new logging db settings X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=acdf450db9ef0410a88c5bd0a624a9191b7933d4;p=gosa.git Updated config.inc to support new logging db settings git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6369 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_config.inc b/include/class_config.inc index 5f3d8ceb5..7ef00cb6c 100644 --- a/include/class_config.inc +++ b/include/class_config.inc @@ -423,28 +423,15 @@ class config { /* Get logdb server */ $ldap->cd ($this->current['BASE']); - $ldap->search ("(objectClass=goLogDBServer)"); + $ldap->search ("(objectClass=goLogDBServer)",array("cn","goLogDBServerUser","goLogDBServerPassword","goLogDB")); if ($ldap->count()){ $attrs= $ldap->fetch(); - $this->data['SERVERS']['LOG']= array( 'SERVER' => $attrs['cn'][0], - 'LOGIN' => $attrs['goLogAdmin'][0], - 'PASSWORD' => $attrs['goLogPassword'][0]); + $this->data['SERVERS']['LOGGING'][$attrs['cn'][0]]= + array('USER' => $attrs['goLogDBServerUser'][0], + 'PWD' => $attrs['goLogDBServerPassword'][0], + 'DB' => $attrs['goLogDB'][0]); } - /* Logging databases */ - $this->data['SERVERS']['LOGGING']= - array("testserver1" => - array( - "SERVER" => "localhost", - "USER" => "gosa_log", - "PWD" => "tester", - "DB" => "gosa_log" - ) - ); - - - - /* Get NFS server lists */ $tmp= array("default"); $ldap->cd ($this->current['BASE']);