La commande (Get-ADDomainController -Filter *).HostName ne marche donc pas sur le serveur qui exécute le script ?
]]>A l'arrache j'ai ajouté la ligne dc="monserveur.mondomaine.local" et c'est OK
]]>[Fri Jun 07 16:06:56 2013] [error] [client 192.168.50.25] File does not exist: /var/www/favicon.ico
> [Fri Jun 07 16:01:51 2013] [error] [client 192.168.50.25] File does not exist: /var/www/favicon.ico
> [Fri Jun 07 16:02:39 2013] [error] [client 192.168.50.25] File does not exist: /var/www/favicon.ico
> [Fri Jun 07 16:04:17 2013] [error] [client 192.168.50.25] File does not exist: /var/www/favicon.ico
> [Fri Jun 07 16:06:49 2013] [notice] caught SIGTERM, shutting down
> [Fri Jun 07 16:06:51 2013] [notice] Apache/2.2.16 (Debian) PHP/5.3.3-7+squeeze3 with Suhosin-Patch mod_perl/2.0.4 Perl/v5.10.1 configured — resuming normal operations
> [Fri Jun 07 16:06:55 2013] [error] Bad/Missing NTLM/Basic Authorization Header for /glpi/front/auth.others.php
> [Fri Jun 07 16:06:55 2013] [error] Connect to SMB Server failed (pdc = serveur2000 bdc = domain = farouest.farouest error = -11/0) for /glpi/front/auth.others.php
> [Fri Jun 07 16:06:55 2013] [error] Cannot get nonce
> [Fri Jun 07 16:06:55 2013] [crit] [client 192.168.50.25] configuration error: couldn’t check user. Check your authn provider!: /glpi/front/auth.others.php, referer: http://192.168.50.118:8080/glpi/front/auth.others.php
, j’ai activé les authentifications sur le serveur, J’ai mis la variable remote user et username dans Champ de stockage de l’identifiant dans la requête HTTP ça ne marche pas ….
Voici mon fichier glpi/front/auth.others.php
define(‘GLPI_ROOT’, ‘..’);
include (GLPI_ROOT . « /inc/includes.php »);
Session::checkRight(« config », « w »);
$config = new Config();
//Update CAS configuration
if (isset($_POST[« update »])) {
$config->update($_POST);
Html::redirect($CFG_GLPI[« root_doc »] . « /front/auth.others.php »);
}
if (!isset($_GET[« id »])) {
$_GET[« id »]= » »;
}
Html::header($LANG[‘title’][14], $_SERVER[‘PHP_SELF’], »config », »extauth », »others »);
Auth::showOtherAuthList();
Html::footer();
?>
Tu arrives bien à te connecter avec un user de l’AD n’est-ce pas ?
]]>