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:


$cfg_login['ldap']['host'] = $db->result($result,0,"ldap_host");
$cfg_login['ldap']['basedn'] = $db->result($result,0,"ldap_basedn");

$cfg_login['ldap']['rootdn'] = $db->result($result,0,"ldap_rootdn");
$cfg_login['ldap']['pass'] = $db->result($result,0,"ldap_pass");

$cfg_login['ldap']['fields'] = array( "name" =>
        $db->result($result,0,"ldap_field_name"), "email" =>
        $db->result($result,0,"ldap_field_email"), "location" =>
        $db->result($result,0,"ldap_field_location"), "phone" =>
        $db->result($result,0,"ldap_field_phone"), "realname" =>
        $db->result($result,0,"ldap_field_realname"));


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.

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.

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).


> Thanks for your help.

Say me if works. I've tested only on openldap...

-- 
dott. Marco Gaiarin                                 GNUPG Key ID: 240A3D66
  Associazione ``La Nostra Famiglia''                http://www.sv.lnf.it/
  Polo FVG  -  Via della Bontà, 7 - 33078  -  San Vito al Tagliamento (PN)
  gaio(at)sv.lnf.it             tel +39-0434-842711    fax +39-0434-842797

    ... votantoniovotantoniovotantoniovotantoniovotantoniovotantonio ...
             resistenza arcobaleno contro la politica grigia

                    http://www.peacelink.it/votantonio

Reply via email to