Jump to content

Help with LDAP options


cgydosh

Recommended Posts

Hi,

I haven't worked with PHP in years and was asked to debug something.  Maybe you can help me out since I'm stuck.  This error popped up when we upgraded from PHP 5.3 to 5.4.

 

It is setting LDAP options.

 

Here is the code:

ldap_set_option($ldapconn, LDAP_OPT_PROTOCOL_VERSION, 3);
ldap_set_option($ldapconn, LDAP_OPT_REFERRALS, 0) or die ("Could not set option referrals");

 

 

Both of these statement are throwing the following error message to the log.

 

52 is not a valid ldap link resource

 

Anything I can check or look at? I am a little clueless here.

 

Thanks

 

 

Link to comment
https://forums.phpfreaks.com/topic/293987-help-with-ldap-options/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.