summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c164f04)
raw | patch | inline | side by side (parent: c164f04)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 20 Jun 2006 06:28:07 +0000 (06:28 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 20 Jun 2006 06:28:07 +0000 (06:28 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3825 594d385d-05f5-0310-b6e9-bd551577e9d8
include/class_config.inc | patch | blob | history |
index d1f47b457c6b9b33492561ea79a0fe81de9b7d09..33bc836d86b9ff021e93452545e522b1b9ed29d3 100644 (file)
--- a/include/class_config.inc
+++ b/include/class_config.inc
/* Get asterisk 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();
+ if(!isset($attrs['goGlpiPassword'])){
+ $attrs['goGlpiPassword'][0] ="";
+ }
$this->data['SERVERS']['GLPI']= array(
'SERVER' => $attrs['cn'][0],
'LOGIN' => $attrs['goGlpiAdmin'][0],