|
From: David A. P. <dpi...@un...> - 2001-06-07 15:06:18
|
As I reported, the patch allowed me to make my search; however, at the
time, I had commented out the lines getting the
LDAP_CONTROL_VLVRESPONSE. When I uncomment them, I get the following error
message:
Can't call method "context" on an undefined value at ...VLV.pm line 107.
That line is in sub response, which reads: "$asn->{contextID} =
$resp->context;"
Here is my code segment again:
##############
$vlv = Net::LDAP::Control::VLV->new(
before => 0, # No entries before target entry
after => 1, # number of entries after target entry
content => 0, #If set to 0, list size is unknown
offset => 1, # Target entry is the first
);
$sort = Net::LDAP::Control::Sort->new(
order => "sn givenname"
);
$mesg=$ldap->search(
filter => '(&(|(|(sn=*) (givenname=*))
(mail=*))(objectclass=person))',
base => 'ou=People,o=unipress.com',
attrs => $anonAttr,
control => [ $sort, $vlv ], #sets sort & vlv which works only in v.3
);
($resp) = $mesg->control( LDAP_CONTROL_VLVRESPONSE );
$vlv->response( $resp );
######################
The vlv control results in the correct output, but I fail when calling the
second to last line as described above. Is there any debugging I should do
or any place I should look for the error?
Thank you in advance for any help you can give me.
--
David A. Pinkowitz
UniPress Software, Inc.
dpi...@un...
(732) 287-2100 ext. 943
|