For Programmers: Free Programming Magazines  


Home > Archive > LDAP > January 2006 > Re: OID not set by Net::LDAP::Control::PersistentSearch constructor?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: OID not set by Net::LDAP::Control::PersistentSearch constructor?
Peter Marschall

2006-01-12, 7:11 pm

Hi,

On Tuesday, 10. January 2006 20:49, Jim Schnitter wrote:
> I'm having some problems getting the PersistentSearch Control working.
> I've taken the example and found that it's not setting the OID
> correctly. Here's the relevant code snippet:
>


I cannot reproduce the problem.
What version of perl-ldap do you use ?

You might try the changes below to your sample test program.

#!/usr/bin/perl

use Net::LDAP::Control::PersistentSearch;
use Data::Dumper; # new !!!

$persist = Net::LDAP::Control::PersistentSearch->new(
changeTypes => 15,
changesOnly => 0,
returnECs => 0 );

if (defined $persist) {
print "OID of control is ",$persist->type(),"\n";
print Dumper($persist)."\n"; # new !!!
} else {
print "didn't create control\n";

It displays the value of the Net::LDAP::Control::PersistentSearch object,
which in my tests (with perl-ldap 0.33) resulted in:

OID of control is 2.16.840.1.113730.3.4.3
$VAR1 = bless( {
'changeTypes' => 15,
'type' => '2.16.840.1.113730.3.4.3',
'returnECs' => 0,
'changesOnly' => 0,
'asn' => {
'changeTypes' => 15,
'returnECs' => '0',
'changesOnly' => '0'
}
}, 'Net::LDAP::Control::PersistentSearch' );

Regards
Peter
--
Peter Marschall
eMail: peter@adpm.de
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com