Uisng PHP5 ,APACHE2 trying to use LDAP authentication.
Have LDAP enabled in my php,ini
LDAP Support enabled
RCS Version $Id: ldap.c,v 1.161.2.3 2006/01/01 12:50:08 sniper Exp $
Total Links 0/unlimited
API Version 2004
Vendor Name OpenLDAP
Vendor Version 0
Am trying this simple code and it gives me an error
"Unable to bind to server: Can't contact LDAP server "$ad = ldap_connect("ldap://XXX.X.XX.XXX") or die("Couldn't connect to AD!");
ldap_set_option($ad, LDAP_OPT_PROTOCOL_VERSION, 3);
ldap_set_option($ad, LDAP_OPT_REFERRALS, 0);
$user ="
ksaju@ABCD.com";
$bd = ldap_bind($ad,$user,"mypassword") or die("Couldn't bind to AD!" );
What info is required to allow successfule bind ?
When i do an anonymous search it allows me to do so as our system does allow Anonymous binding.
Posted on: July 24, 2006, 09:19:13 AM
Forget it...Our network admin in his infinite wisdom gave me the
wrong IP address.