So i reconfigure my config.php file.
I also install
php4-ldap in case of.
Si now when i want to log to glpi with the account
glpi/glpi, i have this error :
Warning: ldap_bind(): Unable to bind to server: Invalid credentials in /var/www/glpi/glpi/setup/classes.php on line 90
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /var/www/glpi/glpi/setup/classes.php:90) in /var/www/glpi/glpi/common/classes.php on line 280
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /var/www/glpi/glpi/setup/classes.php:90) in /var/www/glpi/glpi/common/classes.php on line 280
Warning: Cannot modify header information - headers already sent by (output started at /var/www/glpi/glpi/setup/classes.php:90) in /var/www/glpi/login.php on line 129
and when i use an account of the active directory it say that :
Bad username or password.
-----Message d'origine-----
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] De la
part de Davy MOREL
Envoyé : mercredi 21 juillet 2004 12:35
À :
[email protected]
Objet : RE: [Glpi-user] ldap
Ok thanks for all these
details.
I have one question, what is the " $cfg_login['ldap']['rootdn'] = ;
" it's the login administrator or it's the path to the administrator account in
the active directory ?
-----Message d'origine-----
De :
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] De la
part de [EMAIL PROTECTED] Envoyé : mardi 20 juillet 2004 18:06 À :
[email protected] Objet : Re: [Glpi-user] ldap
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
_______________________________________________
Glpi-user
mailing list
[email protected]
https://mail.gna.org/listinfo/glpi-user
_______________________________________________
Glpi-user
mailing list
[email protected]
https://mail.gna.org/listinfo/glpi-user
