I am trying to connect the active directory or LDAP of the window with an application ( GLPI ) made in PHP.
Connection parameters:
$ds = ldap_connect($host, $port) // me retorna verdadero
@ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3);
@ldap_set_option($ds, LDAP_OPT_REFERRALS, 0);
@ldap_set_option($ds, LDAP_OPT_DEREF, $deref_options);
Relate connection to server and user and password
ldap_bind($ds, $login, $password)
returns me:
"Can not contact LDAP server" (I can not contact the LDAP server)
I want to know what can happen with that error message, since in the first method it returns true to me, which means that if it connects to the server.
RootDN
It's ok and it has all the permissions the user I'm using.
The default server is fine since I made it ping
and telnet
.
Please, if you can help me, thank you very much.
Note: I already downloaded LDAPExplorer and established a connection without problem.