Marco Gaiarin a écrit :
Mandi! Davy MOREL
In chel di` si favelave...
Ok, so i would like some help ton configure glpi with the ldap fonction. I
want to make the authentification on my windows active directory. I try
without success to modify the config file.
I've just upgrade from cvs, and something change... in any case, you
have to simply edit glpi/config/config.php:
The cvs version is a dev version (surely not version that would works in
production).
I think Davy Morel was speaking about the 0.31 version where the config
file is as it was before.
This part of the new config file, only works with the new database
schema, and the new update and install scripts that come with the 0.4
version.
So, I try to correct your mail :
in first two you have to set ldap host and basedn, for host you can use
host, ip or uri (like ldaps://my.ldap.host) as php like.
$cfg_login['ldap']['host'] = ;
$cfg_login['ldap']['basedn'] = ;
the middle two define and explicit bind: i think it's your case,
openldap permit anonymous bind where AD seems not, so you have to
hardocode a valid dn and password
$cfg_login['ldap']['rootdn'] = ;
$cfg_login['ldap']['pass'] = ;
The last define what ldap field are used/imported in glpi, with a
simple associative arrays with as key the glpi table's field name, and
with value the ldap field name (eg, 'location' =>
'phisicaldeliveryofficename' in my setup).
$cfg_login['ldap']['fields'] = array(
"name" => ""
, "email" => ""
, "location" => ""
, "phone" => ""
, "realname" => ""
);
I've another exemple from the config file :
$cfg_login['ldap']['fields'] = array(
"name" => "uid",
"email" => "mail",
"location" => "physicaldeliveryofficename",
"phone" => "telephonenumber",
"realname" => "cn"
);
Say me if works. I've tested only on openldap...
I've only tested with POSIX acounts on openldap too, so I don't if it
works with Active Directory, but I don't see why it would don't.
--
Bazile