I tried to stop PerLDAP following referrals during search by
using the API
$host = "172.15.207.46";
$port = "389";
$ld = ldap_init($host,$port);
$status = ldap_set_option($ld,LDAP_OPT_REFERRALS,0);
$status = ldap_get_option($ld,LDAP_OPT_REFERRALS,$opt);
print ("$status -- option = $opt\n");
The problem I got are
(1) The LDAP_OPT_REFFERALS is still ON (that is one) after the call.
(2) LDAP_OPT_OFF cannot be used. The error is
Can't locate auto/Mozilla/LDAP/API/LDAP_OPT_OF.al in
@INC <@INC contains: C:/Perl/lib C:/Perl/site/lib .>
at option.plx line 40
However, other constants defined in API are available such as
LDAP_OPT_ON, LDAP_SUCCESS, LDAP_VERSION3 etc.
As a reult, I got the value of LDAP_OPT_OFF (that is zero) from the api.pm
and hard coded it in the API call.
Your help is sought.
______________________________________________________________________
This message is intended only for use of the addressee and may contain
information that is privileged and confidential. If you are not the intended
recipient, you are hereby notified that any use or dissemination of this
communication is strictly prohibited. If you have received this communication in
error, please notify us immediately by reply and delete this message from your
system.