Your IP : 216.73.216.40


Current Path : /var/www/html/mmishra/istore/
Upload File :
Current File : /var/www/html/mmishra/istore/z.inc

<h3>LDAP Test</h3>

<?php

//$ds = ldap_connect("ldaps://172.31.1.42:636");
$ds = ldap_connect("ldap://172.31.1.41:389");

ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3);
$a = ldap_search($ds, "dc=iiita,dc=ac,dc=in", "uid=mmishra");
$b = ldap_get_entries($ds, $a);
$dn = $b[0]["dn"];
echo $dn;
//ldap_bind($ds, $dn, $pwd) ? TRUE : FALSE);
ldap_close($ds);

?>
OK