Hi
I bind via Net::LDAP with an username and a password. If
the password is incorrect, NL bind default as anonymous, right?
*Is there any function to get return code to control the status.*
At the moment, I try to read the userpassword after bind. If
that failed I know I'm anonymous. But that isn'
Graham, I tried:
my $page = Net::LDAP::Control::Paged->new( size => 5, critical => 1 );
print Dumper($page);
and got:
$VAR1 = bless( {
'critical' => 1,
'type' => '1.2.840.113556.1.4.319',
'asn' => {
'cookie' => '',
Are you sure your server supports the paged results ? You did not mark
it as critical, so
if the server does not support it then it will ignore it.
What happens if you addcritical => 1 into the arguments for the
::Paged->new
Graham.
On Tuesday, Jul 22, 2003, at 15:04 US/Pacific, Jim Longi
Bob,
I'm using perl 5.8.0 (compiled from source) Net::LDAP version 0.28, and
Net::LDAP::Control::Paged version 0.02, but still get all results (252)
matches on one page.
I'm also using iPlanet Directory Server 5.1 sp2. Any suggestions? I
need this to simplify the task of controlling an LDAP
I am a bit confused. I clipped out your code and made two changes: host
(line 8) and search base (line 11) to talk to my directory. The code runs
the way you expected. (I am using perl 5.6.1 and Net::LDAP version
0.28). I am afraid that I am at a loos as to why you are not seeing the
righ
I spent a little time on this, but am not sure where the problem lies.
Maybe I don't understand the purpose of the module. Here is the code,
which is pretty similar to the example in the module documentation:
#!/usr/local/bin/perl
use strict;
use warnings;
use Net::LDAP;
use Net::LDAP::Contro
Dear all,
I found the problem : I was calling
$entry->get_value($field);
in scalar context instead of list context.
This meant that a whole swathe of results were cut from the
output of my script.
Terribly sorry for the intrusion.
-Benji
--
Benji Wakely
http://arsimagica.net/~benji
pers