LDAP


I am going to start about basic LDAP concept  in Php here, basically, LDAP is lightweight Directory Access Protocol.it is a mechanism to organize the directory in hard disk a directory server manager can set up any structure that is meaningful for the purpose there are some convention that are used the massage is that you can't write code to access a directory server unless you know something about its structure,any more than you can use a database also...
Basically,more Complex Searching supporting in using LDAP's feature since php have bunch of function for updating LDAP Directory server.Indeed, you can be used to add and update and delete entities to the LDAP Directory Tree.


More Convenience to search in Complex data or entities form the directory and Hard Disk,using pass specific parameter in Php 's LDAP let example to understand how to work LDAP in Complex Searching.
we suppose that my colleague ravi shah is working in any organization it is quite obvious that there are million ravi shah in world so i would like drill down mechanism for that.      

Connection to an LDAP Server

The ldap_connection() function establish a connection to an LDAP server identified by a specific Host name and optionally a port number.syntax as follow :

ldap_connection ([string hostname [,int port]]) if u not specifies optional port number then we should default port number is 389. and subsequent, if the ldap://  feature is used than port is 636. e.g

$host="ldap.wjgilmore.com";   
$port="389";
$connection=ldap_connect($host,$port) or die("error massage....");

                      Transport Layer Security (TLS) in LDAP
Boolean ldap_start_tls(resource link-id);
it is typically executing immediately after a call to ldap_connection()  

Comments