[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Virtual list view problem



On 8 September 2009 at 13:30, Venish Khant <venish@deeproot.co.in> wrote:
> Michael Ströder wrote:
>>
>> Venish Khant wrote:
>>
>>>
>>> You have any idea about how to
>>> upgrade  openldap.
>>> Because, my openldap version 2.4.15 so, I want upgrade.
>>>
>>
>>

Old one, but I'm just using this code too:

http://search.cpan.org/dist/perl-ldap-0.55/lib/Net/LDAP/Control/VLV.pm

even with the overlay loaded, the error is no match type set:

 use Net::LDAP;
 use Net::LDAP::Control::VLV;
 use Net::LDAP::Constant qw( LDAP_CONTROL_VLVRESPONSE );

 $ldap = Net::LDAP->new( "ldap.mydomain.eg" );

 # Get the first 20 entries
 $vlv  = Net::LDAP::Control::VLV->new(
           before  => 0,        # No entries from before target entry
           after   => 19,       # 19 entries after target entry
           content => 0,        # List size unknown
           offset  => 1,        # Target entry is the first
         );
 $sort = Net::LDAP::Control::Sort->new( order => 'cn' );

should be:

 my $sort = Net::LDAP::Control::Sort->new( order => 'sn:caseIgnoreIA5Match' );

The ldapsearch syntax would be something like:

/opt/symas/bin/ldapsearch -x -b dc=suretec,dc=co,dc=uk -D
uid=xxx,ou=users,dc=suretec,dc=co,dc=uk -E
\!sss=mail:caseIgnoreIA5Match -E \!vlv=0/10/0/10 -W

I'll also note we don't have this overlay in the overlay section of
the OpenLDAP Admin Guide.

Thanks,
Gavin.