A quick query I hope you can help with.
External to the yii framework I can successfully bind to, search and add to an external ldap via:
$ds=ldap_connect($ldapoptions['host'],$ldapoptions['port']);
if ($ds)
{
echo 'LDAP CONNECTED';
ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3);
ldap_set_option($ds, LDAP_OPT_REFERRALS, 0);
ldap_set_option($ds, LDAP_OPT_DEBUG_LEVEL, 7);
$r=ldap_bind($ds,$ldapoptions['binddn'],$ldapoptions['bindpass']);
...
}
within the yii framework, exactly the same code results in a:
ldap_bind(): Unable to bind to server: Can't contact LDAP server
Is there any reason this would be the case?
Thanks!

Help











