I am using ActivePerl 5.6.0.623 with PerLDAP6 on NT 4.0.

I tried to stop PerLDAP following referrals during search by

use Mozilla::LDAP::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.

(3) The get LDAP_OPT_PROTOCOL_VERSION returns version 2. Should it be 3?

Your help is sought.

Regards,
Philip Chan




 -----  Posted via NewsOne.Net: Free (anonymous) Usenet News via the Web  -----
  http://newsone.net/ -- Free reading and anonymous posting to 60,000+ groups
   NewsOne.Net prohibits users from posting spam.  If this or other posts
made through NewsOne.Net violate posting guidelines, email [EMAIL PROTECTED]

Reply via email to