From: hickert Date: Thu, 22 Dec 2005 10:07:46 +0000 (+0000) Subject: Added configuration initialation for glpi database informations X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3f18c26c787393014e1544eedf464e92a0a08db1;p=gosa.git Added configuration initialation for glpi database informations git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2376 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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)");