From 3f18c26c787393014e1544eedf464e92a0a08db1 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 22 Dec 2005 10:07:46 +0000 Subject: [PATCH] Added configuration initialation for glpi database informations git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2376 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_config.inc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/class_config.inc b/include/class_config.inc index a5eecb263..eeb9fea3f 100644 --- a/include/class_config.inc +++ b/include/class_config.inc @@ -357,6 +357,18 @@ class config { 'QUEUE_TABLE' => "queues", 'QUEUE_MEMBER_TABLE' => "queue_members"); } + + /* Get asterisk servers */ + $ldap->cd ($this->current['BASE']); + $ldap->search ("(objectClass=goiGlpiServer)"); + if ($ldap->count()){ + $attrs= $ldap->fetch(); + $this->data['SERVERS']['GLPI']= array( + 'SERVER' => $attrs['cn'][0], + 'LOGIN' => $attrs['goGlpiAdmin'][0], + 'PASSWORD' => $attrs['goGlpiPassword'][0], + 'DB' => $attrs['goGpliDatabase'][0]); + } /* Get logdb server */ $ldap->cd ($this->current['BASE']); $ldap->search ("(objectClass=goLogDBServer)"); -- 2.30.2