You are not logged in.
Pages: 1
Hello,
I can't get GLPI AD auth to work. The script below works but when i type the $dn part on GLPI login page and corresponding password I get the "unknown user" error. Test of connection to LDAP directory in GLPI settings is successful. Could anyone help me out, please?
<?php
$hostname = "ogzgdc00.oglasnik.lan";
$dn = "CN=Igor Živković,OU=IT,DC=oglasnik,DC=lan";
$password = "*********";
$ad = ldap_connect($hostname);
ldap_set_option($ad, LDAP_OPT_PROTOCOL_VERSION, 3);
ldap_set_option($ad, LDAP_OPT_REFERRALS, 0);
$bd = ldap_bind($ad, $dn, $password);
ldap_unbind($ad);
?>
--
Igor
Offline
Please read the wiki before to post
http://glpi-project.org/wiki/doku.php?id=en:ldap
CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6 - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)
Offline
It seems that rootdn was the problem. Thanks!
Offline
Pages: 1