->sync on an uninitialized/unbound connection can cause an exception

2008-02-06 Thread Michael Alan Dorman
On a host that has an LDAP server running, try: perl -MNet::LDAP -e 'my $ldap = Net::LDAP->new ('localhost'); $ldap->sync' You'll get a failure like: Can't use an undefined value as a HASH reference at /usr/share/perl5/Net/LDAP.pm line 742, line 228. I've attached a patch that guards against t

Re: Reading all elements

2008-02-07 Thread Michael Alan Dorman
On Thu, 07 Feb 2008 13:27:52 +0100 [EMAIL PROTECTED] wrote: > Is there a easy way to get all ldap elements? (objectclass=*) should get everything---at least with openldap, everything is guaranteed to have an object class. Have you tried doing it without the paged control? Mike.

Re: ->sync on an uninitialized/unbound connection can cause an exception

2008-02-07 Thread Michael Alan Dorman
On Thu, 7 Feb 2008 07:27:34 + Chris Ridd <[EMAIL PROTECTED]> wrote: > I simplified it slightly, and revision 542 contains this change: > > [patch elided] > > Can you check that still fixes your problem? What you did is actually what I was more initially inclined to do, but there seemed to be

Re: Reading all elements

2008-02-07 Thread Michael Alan Dorman
On Thu, 07 Feb 2008 19:00:46 +0100 [EMAIL PROTECTED] wrote: > Sorry, > > i changed the page control value to 10.000... > > but the result is below :( Well I don't know the exact mechanism by which the page control works, so my gut inclination would be to remove it entirely, at least to rule it