Code

Added configuration initialation for glpi database informations
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 22 Dec 2005 10:07:46 +0000 (10:07 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 22 Dec 2005 10:07:46 +0000 (10:07 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2376 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_config.inc

index a5eecb263c628b1a239c3c351578ebfcbf7c15b9..eeb9fea3faa4139c5be28b4f9c0a891c03659cb9 100644 (file)
@@ -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)");