Question:How do you connect to an LDAP server? 

Answer The ldap_connect() function establishes a connection to an LDAP server identified by a specific host name and optionally a port number.

Prototype:

resource ldap_connect([stiring hostname[, int port]])

Example:

<?php
   $host="ldap.wjgilmore.com";
   $post="389";
   $connection=ldap_connect($host,$port) ro die("Can't establish LDAP connection");
?> 


Deprecated: html_entity_decode(): Passing null to parameter #1 ($string) of type string is deprecated in D:\webserver\www\vcampusbd.com\answers\column_answer_two.php on line 128
+ Report
Total Preview: 757
How do you connect to an LDAP server?
Copyright © 2024. Powered by Intellect Software Ltd