LDAP_DECODING_ERROR:C on SSL connection after a number of pages

2006-05-15 Thread Si Smith
Hi, I am using Perl-ldap ( and excellent it is too ) to connect to an Active Directory. I am using an SSL connection since I do not want to pass the password in the clear. When reading a large sub-tree, in a number of pages, I get this error ( LDAP_DECODING_ERROR:C ). If I change the page size

Re: LDAP_DECODING_ERROR:C on SSL connection after anumber of pages

2006-05-15 Thread Si Smith
Chris Ridd wrote: On 15/5/06 11:55, Si Smith <[EMAIL PROTECTED]> wrote: Hi, I am using Perl-ldap ( and excellent it is too ) to connect to an Active Directory. I am using an SSL connection since I do not want to pass the password in the clear. When reading a large sub-tree, in a num

Re: LDAP_DECODING_ERROR:C on SSL connection after anumber of pages

2006-05-15 Thread Si Smith
starting "30 84 00 00" the bad record starts "00 84 00 00". Does this make any sense? Cheers Si Chris Ridd wrote: On 15/5/06 11:55, Si Smith <[EMAIL PROTECTED]> wrote: Hi, I am using Perl-ldap ( and excellent it is too ) to connect to an Active Directory. I

Re: LDAP_DECODING_ERROR:C on SSL connection after anumber of pages

2006-05-15 Thread Si Smith
starting "30 84 00 00" the bad record starts "00 84 00 00". Does this make any sense? Cheers Si Chris Ridd wrote: On 15/5/06 11:55, Si Smith <[EMAIL PROTECTED]> wrote: Hi, I am using Perl-ldap ( and excellent it is too ) to connect to an Active Directory. I am usi

Re: Perl question

2006-06-10 Thread Si Smith
Rita, Why not start with some example code (see link below). Regards, Simon http://search.cpan.org/~gbarr/perl-ldap/lib/Net/LDAP/Examples.pod Rita Uddin wrote: I am trying to use perl to connect to an LDAP server... I am very confused on how to even begin. Can someone help.

Re: LDAP_DECODING_ERROR:C on SSL connectionafteranumber of pages

2006-06-16 Thread Si Smith
ening fast diagnostics :-) ). Si Chris Ridd wrote: On 19/5/06 1:44, Simon P Smith <[EMAIL PROTECTED]> wrote: Chris Ridd wrote: On 15/5/06 3:26, Si Smith <[EMAIL PROTECTED]> wrote: So instead of starting "30 84 00 00" the bad record starts "00 84 00 00". Does this

Re: LDAP_DECODING_ERROR:C on SSL connectionafteranumber of pages

2007-01-31 Thread Si Smith
Erik, That is exactly the issue that I get. I am not sure that it is related to particular entries since the problem "moves" if I change the page size for paged responses; it was also repeatable on a different directory with different data. I guess it is some weird interaction between SSL and L

Re: A question for everyone

2007-02-25 Thread Si Smith
Graham Barr wrote: So does anyone really object to this list becoming a list for all perl related LDAP questions, serving both modules, instead of just Net::LDAP ? I guess the deafening lack of replies means everyone is happy :-) Si

LDIF _write_entry for changes

2007-05-22 Thread Si Smith
Something I have noticed recently, when trying to write into an AD using the microsoft tools is that they are fussy on the "-\n" delimiter after each attribute in a modify record. This seems to have to be there (for AD/ADAM) even if there is only one attribute change. Naturally using the perl L

Re: Net::LDAPS SSL timeout

2007-05-31 Thread Si Smith
Jo De Troy wrote: I'm trying to setup a secure LDAP connection and I get the error IO::Socket:SSL: Timeout The code is below: my $ldap = Net::LDAPS->new($server, verify => 'required', capath => 'somepath') || die $!; $ldap->bind ($BINDDN, password => $pwd, version => 3); Have you tried expli

Re: Fwd: modify group membership using perl-ldap

2007-06-21 Thread Si Smith
Casey, the thing to remember, despite what the Microsoft GUI tells you is that you add objects as members to a group not add the groups to the object/user. I use something like the following to add a user to a group: sub addGroupMember { my $groupDn = shift; my $dn = shift; $mesg =