You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2008-10-15 16:57:15

igzivkov
Member
Registered: 2008-10-15
Posts: 2

Active Directory authentication

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&#263;,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

#2 2008-10-15 19:27:47

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: Active Directory authentication

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

#3 2008-10-16 10:17:46

igzivkov
Member
Registered: 2008-10-15
Posts: 2

Re: Active Directory authentication

It seems that rootdn was the problem. Thanks!

Offline

Board footer

Powered by FluxBB