summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f1d3111)
raw | patch | inline | side by side (parent: f1d3111)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 20 Jun 2006 06:31:54 +0000 (06:31 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 20 Jun 2006 06:31:54 +0000 (06:31 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@3826 594d385d-05f5-0310-b6e9-bd551577e9d8
include/class_config.inc | patch | blob | history |
index 88754e06908d1a0b259313bce8b353295fc34571..e84d684b5df640e598b98cd147eb809985089c78 100644 (file)
--- a/include/class_config.inc
+++ b/include/class_config.inc
'QUEUE_MEMBER_TABLE' => "queue_members");
}
- /* Get asterisk servers */
+ /* Get glpi servers */
$ldap->cd ($this->current['BASE']);
- $ldap->search ("(objectClass=goGlpiServer)");
+ $ldap->search ("(&(objectClass=goGlpiServer)(cn=*)(goGlpiAdmin=*)(goGlpiDatabase=*))",array("cn","goGlpiPassword","goGlpiAdmin","goGlpiDatabase"));
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['goGlpiDatabase'][0]);
+ if(!isset($attrs['goGlpiPassword'])){
+ $attrs['goGlpiPassword'][0] ="";
+ }
+ $this->data['SERVERS']['GLPI']= array(
+ 'SERVER' => $attrs['cn'][0],
+ 'LOGIN' => $attrs['goGlpiAdmin'][0],
+ 'PASSWORD' => $attrs['goGlpiPassword'][0],
+ 'DB' => $attrs['goGlpiDatabase'][0]);
}
/* Get logdb server */
$ldap->cd ($this->current['BASE']);