Warning: ldap_bind(): Unable to bind to server: Invalid credentials
Publicado por Hfr (93 intervenciones) el 25/08/2015 17:24:54
este mi codigo php
al colocar el usuario y el pass
arroja este error
Warning: ldap_bind(): Unable to bind to server: Invalid credentials in C:\xamm\htdocs\dashboard\aldeasinfantiles\php\CONEXION\con_Lapd.php on line 14
LDAP bind failed...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?
$host = "ldap://adds-01.aldeasinfantiles.local";
$puerto = 389;
$conex = ldap_connect($host,$puerto) or die ("No ha sido posible conectarse al servidor");
echo "<br>conexion: ".$conex;
$admin="#####r";
$passwd=#####';
if (ldap_set_option($conex, LDAP_OPT_PROTOCOL_VERSION, 3)) {
echo "<br>Using LDAPv3";
} else {
echo "<br>Failed to set protocol version to 3";
}
if ($conex) {
// bind with appropriate dn to give update access
$r=ldap_bind($conex, $admin, $passwd);
if ($r)
{echo "<br>Congratulations! $admin is authenticated.";}
else
{echo "<br>Nice try, kid. Better luck next time!";}
ldap_close($conex);
} else {
echo "<br>Unable to connect to LDAP server";
}
al colocar el usuario y el pass
arroja este error
Warning: ldap_bind(): Unable to bind to server: Invalid credentials in C:\xamm\htdocs\dashboard\aldeasinfantiles\php\CONEXION\con_Lapd.php on line 14
LDAP bind failed...
Valora esta pregunta


0