Re: Net::LDAP::Constant module problem

2003-06-06 Thread Graham Barr
On Thu, 2003-06-05 at 21:58, Steve Dockter wrote: > Hi, > > I have a Linux RedHat 7.3 machine that I am trying to install the > Netmeeting Directory Kit on > (http://www.freesoft.org/software/NetMeeting/). I have installed the > Berkeley 4.0.14 database and OpenLDAP 2.0.27. I am using Perl 5.6.

[Fwd] Using Net::LDAP with AD

2003-06-06 Thread Graham Barr
- Forwarded message from [EMAIL PROTECTED] - Date: Fri, 6 Jun 2003 14:18:41 -0600 To: [EMAIL PROTECTED] From: [EMAIL PROTECTED] Subject: Using Net::LDAP with AD Hi Graham, I'm using Robbie Allens' book to try to write perl-LDAP scripts to work against Active Directory. When I go to yo

[Fwd] Writing in nonascii (binary) format

2003-05-30 Thread Graham Barr
- Forwarded message from Neo - <[EMAIL PROTECTED]> - Date: Thu, 29 May 2003 08:41:09 -0700 (PDT) To: [EMAIL PROTECTED] From: Neo - <[EMAIL PROTECTED]> Subject: Writing in nonascii (binary) format Hi grahm, I am new bee to net ldap your documentation really helped me to get through all my

Re: [Fwd] Writing in nonascii (binary) format

2003-05-30 Thread Graham Barr
On Thu, May 29, 2003 at 09:15:23AM -0700, Neo - wrote: > This is follow-up of my pervious question ...when i try to add values say > > CN=" test"; (Having a white space character in front) > > or name =" "; (null value) If you are using LDIF tou output the entries then any attribute where the

Re: [Fwd] Writing in nonascii (binary) format

2003-05-30 Thread Graham Barr
bute name and thier values in %prod_hash > > $addresult = $prod_ldap->add (dn => $dn , attr => [%prod_hash]); > $addresult->code && warn "failed to add entry: ", $addresult->code; > > > hope this clears up ... > > Thanks again. > -N

Re: Net::LDAPS unbind not closing the socket..

2003-05-31 Thread Graham Barr
On Fri, May 30, 2003 at 05:00:22PM +0100, Neil McBennett wrote: > Hi, I have a perl script which is using Net::LDAPS. > The script sits in a loop, and each time round it binds to a directory > server on port 636. At the end of the loop it does a unbind. > The problem is that if I run netstat -a I

Re: Net::LDAPS unbind not closing the socket..

2003-05-31 Thread Graham Barr
On Fri, May 30, 2003 at 05:19:56PM +0100, Chris Ridd wrote: > On 30/5/03 5:00 pm, Neil McBennett <[EMAIL PROTECTED]> wrote: > > > Hi, I have a perl script which is using Net::LDAPS. > > The script sits in a loop, and each time round it binds to a directory > > server on port 636. At the end of the

Re: Net::LDAPS unbind not closing the socket..

2003-05-31 Thread Graham Barr
On Fri, May 30, 2003 at 05:22:45PM +0100, Neil McBennett wrote: > > > On Fri, May 30, 2003 at 05:00:22PM +0100, Neil McBennett wrote: > >> Hi, I have a perl script which is using Net::LDAPS. > >> The script sits in a loop, and each time round it binds to a directory > >> server on port 636. At the

Re: Net::LDAPS unbind not closing the socket..

2003-06-03 Thread Graham Barr
On Mon, Jun 02, 2003 at 02:52:44PM +0100, Chris Ridd wrote: > On 2/6/03 12:00 pm, Neil McBennett <[EMAIL PROTECTED]> wrote: > > ->unbind does not cause the socket to be closed. You need to call > >>> ->disconnect to do that. > > Graham. > >>> > >>> Thanks Graham! Sorry for such a

Re: bind problem with perl-ldap0.25/0.28

2003-06-03 Thread Graham Barr
On Tue, Jun 03, 2003 at 12:27:19PM +0530, Arun Garg wrote: > Hi, > > I have installed 'perl-ldap0.25' on RedHat-8.0 . My perl version is 5.8.0 > built for i386-linux-thread-multi. > > Now I am not able to bind as the program just hangs there. I even tried > with 'perl-ldap0.28' but got the same

Re: Binding with Cyrus SASL with mech GSSAPI

2003-06-16 Thread Graham Barr
On Saturday, Jun 14, 2003, at 23:03 Europe/London, Ziya Suzen wrote: Hi, Is any one using Net::LDAP with Cyrus SASL with mech GSSAPI. I have seen a few threads on the mailing list but no conclusion, (if I haven't missed it). I can use ldapsearch -Y GSSAPI with no problems. When I try with Net::L

[Fwd] Perl LDAP / Accents

2003-06-16 Thread Graham Barr
- Forwarded message from Christophe Gevrey <[EMAIL PROTECTED]> - Date: Mon, 16 Jun 2003 11:53:28 +0200 To: [EMAIL PROTECTED] From: "Christophe Gevrey" <[EMAIL PROTECTED]> Subject: Perl LDAP / Accents Hi Graham, Sorry to bother you. Do you know any problem while using accents in cn with

[Fwd] re: mem leak

2003-06-18 Thread Graham Barr
- Forwarded message from Robert H'obbes' Zakon <[EMAIL PROTECTED]> - Date: Wed, 18 Jun 2003 17:09:43 -0400 To: <[EMAIL PROTECTED]> From: "Robert H'obbes' Zakon" <[EMAIL PROTECTED]> Subject: re: mem leak Graham - A colleague using a perl-ldap based script I wrote for him has been experien

Re: Memory Leak / How to Destroy objects?

2003-06-24 Thread Graham Barr
On Wed, 2003-06-18 at 16:17, Steven Carr wrote: > Hello, >Im experiencing a memory leak problem with my Net::LDAP. It may be > due to me not properly destroying the $ldap object? I checked previous > mailings and tried to use the old suggstions. > The code I used to test is attached at end

[Fwd: perl ldap test with server]

2003-06-25 Thread Graham Barr
-Forwarded Message- From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: perl ldap test with server Date: 25 Jun 2003 11:40:52 +0200 Hello Graham, I got the latest perl-ldap distribution (and all its required modules), which builds ok on my perl-5.8.0 (ithreads), Linux RedHat 7.2. I try

Re: [Fwd: perl ldap test with server]

2003-06-25 Thread Graham Barr
On Wed, 2003-06-25 at 11:49, Graham Barr wrote: > -Forwarded Message- > From: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > Subject: perl ldap test with server > Date: 25 Jun 2003 11:40:52 +0200 > > Hello Graham, > > I got the latest perl-ldap distribution (a

[Fwd: Query]

2003-06-26 Thread Graham Barr
-Forwarded Message- From: Edward Hibbert <[EMAIL PROTECTED]> To: '[EMAIL PROTECTED]' <[EMAIL PROTECTED]> Subject: Query Date: 26 Jun 2003 17:10:13 +0100 Hi, I'm using your perl LDAP paged results module. I'm not sure how to extract the estimate of the total size of the results which the

RE: [Fwd: Query]

2003-06-26 Thread Graham Barr
t; Cc: Edward Hibbert > Subject: Re: [Fwd: Query] > > > On 26/6/03 5:24 pm, Graham Barr <[EMAIL PROTECTED]> wrote: > > > -Forwarded Message- > > From: Edward Hibbert <[EMAIL PROTECTED]> > > To: '[EMAIL PROTECTED]' <[EMAIL PROTECTED]

Fwd: help me on a filter LDAP syntax

2003-06-29 Thread Graham Barr
Begin forwarded message: From: Derveloy François Xavier <[EMAIL PROTECTED]> Date: Sat Jun 28, 2003 17:23:24 Europe/London To: <[EMAIL PROTECTED]> Subject: help me on a filter LDAP syntax I explain,   I use a novell directory, I want check the password expiration Time ( attribute passwordexpira

Re: $ldap->search triggers Bug in ASN1 and utf8 Net::LDAP code

2003-07-09 Thread Graham Barr
On Wednesday, Jul 9, 2003, at 08:11 US/Pacific, Miroslav Zubcic wrote: Thanks for your response Chris; Chris Ridd <[EMAIL PROTECTED]> writes: On 7/7/03 3:23 pm, Miroslav Zubcic <[EMAIL PROTECTED]> wrote: I think I found bug in Net::LDAP in the part which is doing something with ASN.1 (Convert::

Fwd: question on Net::LDAP

2003-07-09 Thread Graham Barr
Begin forwarded message: From: Frank Koenen <[EMAIL PROTECTED]> Date: Wed Jul 9, 2003 15:57:45 US/Pacific To: [EMAIL PROTECTED] Subject: question on Net::LDAP Reply-To: [EMAIL PROTECTED] Graham, Quick question on Net::LDAP. Is there a way that I could detect if the LDAP server has closed down

Fwd: Net::LDAPS

2003-07-15 Thread Graham Barr
Begin forwarded message: From: "jsingh" <[EMAIL PROTECTED]> Date: Tue Jul 15, 2003 14:20:48 US/Pacific To: <[EMAIL PROTECTED]> Subject: Net::LDAPS Reply-To: <[EMAIL PROTECTED]> Sir ?I am unable to use Net::LDAPS to connect to the SSL port of? my LDAP server, I keep getting the error ?“IO::Soc

Re: Net::LDAP::Control::Paged problems

2003-07-22 Thread Graham Barr
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

Re: Net::LDAP::Control::Paged problems

2003-07-23 Thread Graham Barr
On Wednesday, Jul 23, 2003, at 09:20 US/Pacific, [EMAIL PROTECTED] wrote: Jim -- Try something for me -- insert print("Control valid? -- ",$page -> valid(), "\n"); after line 6. This will return "True" if your LDAP server supports the 'paged' control. No, that will return true if the

Re: Net::LDAP::Control::Paged problems

2003-07-23 Thread Graham Barr
On Wednesday, Jul 23, 2003, at 13:59 US/Pacific, Jim Longino wrote: Folks, As I suspected, further digging indicates that although simple page control is possible with the iPlanet Directory Server (where it is referred to as VLV or Virtual List Views), it is not a default option. Unfortunatel

Re: How to use Net::LDAP::Control to track changes within active dire ctory?

2003-07-24 Thread Graham Barr
On Thursday, Jul 24, 2003, at 10:37 US/Pacific, Chhabria, Kavita - Apogent wrote: Does anyone have any examples on how to use Net::LDAP::Control in order to track changes within active directory. I have seen examples on how to receive sorted and paged results using LDAP_CONTROL_PAGED and LDAP_C

Re: Can't get the search object to sort

2003-08-01 Thread Graham Barr
On Thursday, Jul 31, 2003, at 22:55 US/Pacific, Chris Ridd wrote: On Thursday, July 31, 2003, at 10:52PM, Chris Heath <[EMAIL PROTECTED]> wrote: I am using the Net::LDAP and Net::LDAP::Search objects to retrieve up to 10 entries from a LDAP db. Everything works fine until I try to sort the ent

Re: Can't get the search object to sort

2003-08-01 Thread Graham Barr
On Friday, Aug 1, 2003, at 06:21 US/Pacific, Chris Ridd wrote: On Friday, August 01, 2003, at 02:11PM, Graham Barr <[EMAIL PROTECTED]> wrote: On Thursday, Jul 31, 2003, at 22:55 US/Pacific, Chris Ridd wrote: The sorted method just takes an array of attributes, not a reference to an arr

Re: Can't locate object method "new" via package

2003-08-02 Thread Graham Barr
On Friday, Aug 1, 2003, at 07:06 US/Pacific, Radhakrishnan, Rajagopal wrote: Hello, I'm using Net::LDAP to search and add ldap entry. the search works fine, but "add" gives below error. any help appreciated. Thanks. -Raj compile: perl -Ic:/perl/lib/Convert-ASN1-0.17/lib/ -Ic:/perl/li

Re: How to handle character set in perl-ldap?

2003-08-14 Thread Graham Barr
On Wed, 2003-08-13 at 20:50, Kurt D. Zeilenga wrote: > I don't think the LDAP API should do any trancoding, the API should > be a simple conduit between the application and the wire. Any > transcoding desires should be done by the application (by directly > calling APIs specifically designed to d

Fwd: How to handle character set in perl-ldap?

2003-08-14 Thread Graham Barr
From: Dan Oscarsson <[EMAIL PROTECTED]> Date: Wed Aug 6, 2003 12:34:54 Europe/London To: [EMAIL PROTECTED] Subject: How to handle character set in perl-ldap? Reply-To: Dan Oscarsson <[EMAIL PROTECTED]> Hi I have been using my own LDAP module in perl for many years. Now I am looking if I could use

Re: Net::LDAP Bad hostname

2003-08-14 Thread Graham Barr
On Thu, 2003-08-07 at 18:44, [EMAIL PROTECTED] wrote: > Hello all, > > I have written a script to add new entries in the LDAP directory service, > but when I setup an array of hosts I > get the following error when executing the script: "IO::Socket::INET: Bad > hostname 'myhost1.ldap.com myhost2.l

[Fwd: howto perl-ldap AD authentication with SASL/GSSAPI mechanism?]

2003-08-27 Thread Graham Barr
-Forwarded Message- From: "Cann, Ben A." <[EMAIL PROTECTED]> To: '[EMAIL PROTECTED]' <[EMAIL PROTECTED]> Subject: howto perl-ldap AD authentication with SASL/GSSAPI mechanism? Date: Wed, 27 Aug 2003 15:03:40 -0400 I have spent a week trying to search Active Directory via Net::LDAP. I fi

Re: [Fwd: howto perl-ldap AD authentication with SASL/GSSAPI mechanism?]

2003-08-28 Thread Graham Barr
On Thu, 2003-08-28 at 13:19, Tim Musson wrote: > Hey Graham, or Ben :-) > > My MUA believes you used Ximian Evolution 1.4.4 > to write the following on Wednesday, August 27, 2003 at 3:06:04 PM. And mine shows yours does not honor Reply-To lines (Cc'd to Ben) Graham. > > GB> I have spent a wee

Re: Strange error from Net::LDAP::Message... bug?

2003-09-22 Thread Graham Barr
This seems to be a line that was missed when the memory leak patch was applied. Change line 253 in Net::LDAP::Entry from $mesg = Net::LDAP::Message->new( {} ); to $mesg = Net::LDAP::Message->new( $ldap ); should fix it. Graham. On 22 Sep 2003, at 10:33, Marco Marongiu wrote: Has any

Re: Strange error from Net::LDAP::Message... bug?

2003-09-22 Thread Graham Barr
On 22 Sep 2003, at 14:56, Marco Marongiu wrote: Graham Barr wrote: This seems to be a line that was missed when the memory leak patch was applied. Change line 253 in Net::LDAP::Entry from $mesg = Net::LDAP::Message->new( {} ); to $mesg = Net::LDAP::Message->new( $ldap ); should

Fwd: LDAP question

2003-09-23 Thread Graham Barr
Begin forwarded message: From: "Ajay Lulia" <[EMAIL PROTECTED]> Date: 23 September 2003 5:54:19 BST To: <[EMAIL PROTECTED]> Subject: LDAP question Hello, I am using Net::LDAP to connect my GroupWise Address Book and getting data from the Address Book. This module is really good and help me a lot

Re: Strange error from Net::LDAP::Message... bug?

2003-09-23 Thread Graham Barr
On 23 Sep 2003, at 9:18, Marco Marongiu wrote: This seems to be a line that was missed when the memory leak patch was applied. Change line 253 in Net::LDAP::Entry from $mesg = Net::LDAP::Message->new( {} ); to $mesg = Net::LDAP::Message->new( $ldap ); should fix it. Just tried it: Messa

Re: Bug/unpredictable behavior in Schema.pm for must/may methods

2003-09-25 Thread Graham Barr
On 25 Sep 2003, at 19:04, Matthias Helmling wrote: Hi, here's the part of code ($VERSION = "0.9901") from the Schema.pm Module which i just downloaded from theoryx5.uwinnipeg.ca/CPAN/data/perl-ldap/. -- [snipp] while (@oc) { my $oc = shift @oc; $done{lc

Re: Decoding a subjectAltName using Convert::ASN1?

2003-09-30 Thread Graham Barr
On 30 Sep 2003, at 20:46, Chris Ridd wrote: One problem might be that the X.509 module is using explicit tagging, and Convert::ASN1 uses implicit tagging. You'll need to hack the ASN.1 definitions you feed into Convert::ASN1 if this is the case. (I didn't know about the x509decode script; it migh

Re: Encoding/Decoding a subjectAltName using Convert::ASN1?

2003-10-01 Thread Graham Barr
On 1 Oct 2003, at 9:05, Chris Ridd wrote: On 30/9/03 10:55 pm, Paul Bearer <[EMAIL PROTECTED]> wrote: OK, and it turns out that the extension value really *is* encapsulated inside an OCTET STRING. (Typical X.509 brokenness.) Your value isn't actually a SubjectAltName extension, it is an Extension

Re: Encoding/Decoding a subjectAltName using Convert::ASN1?

2003-10-01 Thread Graham Barr
On 1 Oct 2003, at 18:10, Chris Ridd wrote: extnValue [UNIVERSAL 4] EXPLICIT ANY DEFINED BY extnID But that causes a parse error as it is expecting the tag to have the constructor bit set :( Maybe I could add an extension so we can write extnValue [UNIVERSAL 4] CONTAINING ANY DEFINED BY extnID

Re: Encoding/Decoding a subjectAltName using Convert::ASN1?

2003-10-01 Thread Graham Barr
On 1 Oct 2003, at 18:58, Graham Barr wrote: On 1 Oct 2003, at 18:10, Chris Ridd wrote: extnValue [UNIVERSAL 4] EXPLICIT ANY DEFINED BY extnID But that causes a parse error as it is expecting the tag to have the constructor bit set :( Maybe I could add an extension so we can write extnValue

Re: [Fwd: question about ldap module]

2003-10-06 Thread Graham Barr
On 6 Oct 2003, at 19:39, Chris Ridd wrote: On 5/10/03 3:27 pm, Bruce Bahlmann <[EMAIL PROTECTED]> wrote: When using this module as part of a CGI script and then compiling using active state, I receive the following errors (not if I do not compile and merely run as a plain old perl script, every

Re: [Fwd: question about ldap module]

2003-10-06 Thread Graham Barr
t I've run this with many other perl scripts including SNMP, DBI, etc. and it has run flawless. This LDAP module is the first exception I've seen. Graham Barr wrote: On 6 Oct 2003, at 19:39, Chris Ridd wrote: On 5/10/03 3:27 pm, Bruce Bahlmann <[EMAIL PROTECTED]> wrote: When

Re: Unable to install Convert::ASN1

2003-10-16 Thread Graham Barr
What version of perl do you have ? I suspect 5.004 In release 0.18 I accidently removed the use 5.005 from Makefile.PL. You must have at least 5.005 to use Convert::ASN1 Graham. On 16 Oct 2003, at 16:37, kenboss wrote: Witness the following: # gilbert:/usr/pool/lib/perl5/CPAN/build/Convert-AS

Re: [PERL-LDAP-DEV] perl-ldap AD authentication with SASL/GSSAPI

2003-10-18 Thread Graham Barr
On 18 Oct 2003, at 3:57, Zhang Liquan wrote: Now, I can use SASL/GSSAPI encryption to search AD successfully, though this may not be a fine resolution. I'm a tyro of PERL, and I'm not very familiar with PERL MODULE, so I can't explain the problems and resolve it really. I'll decribe my modificat

ANNOUNCE: perl-ldap-0.30 and Authen-SASL-2.05

2003-10-18 Thread Graham Barr
perl-ldap-0.30 and Authen-SASL-2.05 were uploaded to CPAN yesterday and should be on most mirrors by now. perl-ldap-0.30 * Documentation updates * Fixed bug checking return value of client_step in bind() * Fixed bug in Entry.pm causing method calls on unblessed references Authen-SASL-2.05 * Doc

perl-ldap in Linux Journal

2003-10-23 Thread Graham Barr
The November issue of Linux journal references an article on their web site An Introduction to perl-ldap by Paul Dwerryhouse http://www.linuxjournal.com/article/7086 For a beginner guide it is very good IMO. graham.

Fwd: perl-ldap question

2003-11-10 Thread Graham Barr
Begin forwarded message: From: Gonzalo Servat <[EMAIL PROTECTED]> Date: November 8, 2003 14:56:34 GMT To: Graham Barr <[EMAIL PROTECTED]> Subject: perl-ldap question Message-Id: <[EMAIL PROTECTED]> Hi Graham, First of all I just wanted to thank you and your contributors for a

Fwd: Error in LDAP.html/LDAP.pod

2003-11-10 Thread Graham Barr
Begin forwarded message: From: Bruno Grossmann <[EMAIL PROTECTED]> Date: November 10, 2003 16:41:58 GMT To: [EMAIL PROTECTED] Subject: Error in LDAP.html/LDAP.pod Message-Id: <[EMAIL PROTECTED]> Hello, I am happily and extensively using the start_tls feature of the Net::LDAP module and it works fin

Fwd: Can't call method X without a package or object reference

2003-11-11 Thread Graham Barr
Begin forwarded message: From: Chris Masters <[EMAIL PROTECTED]> Date: November 11, 2003 11:13:12 GMT To: [EMAIL PROTECTED] Subject: Can't call method X without a package or object reference Message-Id: <[EMAIL PROTECTED]> Hi All, I'm getting this problem intermittenly i.e. it works for the firs

Re: Can't call method X without a package or object reference

2003-11-11 Thread Graham Barr
, Chris --- Graham Barr <[EMAIL PROTECTED]> wrote: Begin forwarded message: From: Chris Masters <[EMAIL PROTECTED]> Date: November 11, 2003 11:13:12 GMT To: [EMAIL PROTECTED] Subject: Can't call method X without a package or object reference Message-Id: <[EMAIL PROTECTED]&g

Re: Can't call method X without a package or object reference

2003-11-11 Thread Graham Barr
On Nov 11, 2003, at 11:13, Chris Masters wrote: I'm getting this problem intermittenly i.e. it works for the first few runs, then it fails. Getting this error: Can't call method "entry" (or count etc) without a package or object reference at ... (the first entry call in the if test) Odd. eval {

Re: Can't call method X without a package or object reference

2003-11-11 Thread Graham Barr
On Nov 11, 2003, at 13:01, Chris Masters wrote: Please keep it on list $mesg will always be defined. You need to look at $mesg->code to determine if there was a problem. Can't call method "code" without a package or object reference at blah! with the following code after calling search: if($

Re: CAUSE: Can't call method X without a package or object

2003-11-11 Thread Graham Barr
Have you tried perl-ldap-0.30 as suggested in a previous mail ? Graham. On Nov 11, 2003, at 17:21, Chris Masters wrote: Appologies. I was not unbinding before I attempted to rebind after I found the error. Does 'I/O Error' refer to the socket connection being closed by the server? Note: forward

Re: CAUSE: Can't call method X without a package or object

2003-11-11 Thread Graham Barr
"'$mesg'" unless ref($mesg); Graham. --- Graham Barr <[EMAIL PROTECTED]> wrote: Have you tried perl-ldap-0.30 as suggested in a previous mail ? Graham. On Nov 11, 2003, at 17:21, Chris Masters wrote: Appologies. I was not unbinding before I attempted to rebind after I f

Fwd: Net::LDAP results comapre woes.

2003-12-01 Thread Graham Barr
Begin forwarded message: From: John Hennessy <[EMAIL PROTECTED]> Date: 1 December 2003 15:22:09 GMT To: [EMAIL PROTECTED] Subject: Net::LDAP results comapre woes. Message-Id: <[EMAIL PROTECTED]> Hi Graham, please excuse the direct contact, I appreciate you must get a lot of email. I am wanting to

Fwd: LDAP_CONTROL_PAGED question

2003-12-05 Thread Graham Barr
From: "Tyler, Grayling" <[EMAIL PROTECTED]> Date: 5 December 2003 13:24:40 GMT To: [EMAIL PROTECTED] Subject: LDAP_CONTROL_PAGED question Message-Id: <[EMAIL PROTECTED]> Hi, I know your busy and may not ever reply to this, but since I've beat my head against the brick wall and asked on all the gro

Fwd: ldap search filter problem

2003-12-05 Thread Graham Barr
Begin forwarded message: From: [EMAIL PROTECTED] Date: 5 December 2003 22:23:49 GMT To: [EMAIL PROTECTED] Subject: ldap search filter problem Message-Id: <[EMAIL PROTECTED]> Hi, I am having trouble doing a existing filter search on my LDAP directory. My LDAP directory is openLDAP v3 server. I am

Fwd: Net::LDAP data accessors

2003-12-10 Thread Graham Barr
Begin forwarded message: From: "D.Kreft" <[EMAIL PROTECTED]> Date: 10 December 2003 18:44:25 GMT To: Graham Barr <[EMAIL PROTECTED]> Subject: Net::LDAP data accessors Message-Id: <[EMAIL PROTECTED]> Hey Graham, One tiny suggestion for your next release of Net::LDAP

Re: Odd perl error in Bind.pm under load

2003-12-10 Thread Graham Barr
On 10 Dec 2003, at 14:49, Brendan E. Quinn wrote: Hi folks, I've written an ldap server load testing tool using Net::LDAP, and I'm getting an odd (and inconsistent) error: "LDAP_SASL_BIND_IN_PROGRESS" is not exported by the Net::LDAP::Constant module at /usr/lib/perl5/site_perl/5.8.0/Net/LDAP/

Re: Net::LDAP data accessors

2003-12-10 Thread Graham Barr
On 10 Dec 2003, at 20:36, D.Kreft wrote: On Wed, 10 Dec 2003, Chris Ridd did scribble: On 10/12/03 7:58 pm, D.Kreft <[EMAIL PROTECTED]> wrote: On Wed, 10 Dec 2003, Chris Ridd did scribble: $ldap->socket->peername returns the peer address and port. $ldap->socket's documented as well ;-) I just g

Re: Net::LDAP data accessors

2003-12-10 Thread Graham Barr
On 10 Dec 2003, at 20:25, Chris Ridd wrote: On 10/12/03 7:58 pm, D.Kreft <[EMAIL PROTECTED]> wrote: On Wed, 10 Dec 2003, Chris Ridd did scribble: $ldap->socket->peername returns the peer address and port. $ldap->socket's documented as well ;-) I just grepped the perldocs for Net::LDAP (v0.2701)

Re: Net::LDAP data accessors

2003-12-11 Thread Graham Barr
On 11 Dec 2003, at 18:09, D.Kreft wrote: Thanks for your help yesterday, now I'm hoping you can help me untangle another "mess" I'm in. Big picture: I've written a subclass of Net::LDAP that transparently handles referrals (Amazon::Net::LDAP). The referral-handling code is in another module (Amaz

Re: Net::LDAP data accessors

2003-12-11 Thread Graham Barr
On 11 Dec 2003, at 20:29, D.Kreft wrote: On Thu, 11 Dec 2003, Graham Barr did scribble: Personally I think it is wrong for Net::LDAP to remember that. Also, its not very generic to re-use the same credentials, the referral could be to a different server that requires different credentials. Hrmm

Re: tarball and top-level directory names

2003-12-14 Thread Graham Barr
On 13 Dec 2003, at 14:46, Kenneth Porter wrote: I just built an RPM from perl-ldap-0.30.tar.gz, using cpanflute2 from the RPM::Specfile module. Because the tarball's name doesn't match the usual CPAN format (eg. Net-LDAP-0.30.tar.gz), the resulting RPM is named perl-perl-ldap. I imagine other CP

Re: following referrals

2003-12-16 Thread Graham Barr
On 16 Dec 2003, at 19:10, Chris Ridd wrote: On 16/12/03 8:39 am, David Syzdek <[EMAIL PROTECTED]> wrote: Are there plans to expand add(), delete(), moddn(), and modify() to follow referrals? Not especially, but if a clean design was suggested then I'm sure it would be considered. I am currently

Re: following referrals

2003-12-16 Thread Graham Barr
On 16 Dec 2003, at 19:42, Chris Ridd wrote: On 16/12/03 7:25 pm, Graham Barr <[EMAIL PROTECTED]> wrote: It came up recently. My suggestion is that the user should be able to register a callback with Net::LDAP that Net::LDAP will call when it needs a connection to a different server. It woul

Re: following referrals

2004-01-01 Thread Graham Barr
On 17 Dec 2003, at 09:06, Chris Ridd wrote: No, because lots of stuff is hidden. Consider what you have todo today $mesg = $ldap->delete(@args); handle_referal($mesg) if (... check for referral ..); vs $ldap = Net::LDAP-.new(..., referral_connect => \&my_connect) $mesg= $ldap->delete(@args)

Re: following referrals

2004-01-01 Thread Graham Barr
On 1 Jan 2004, at 10:47, Chris Ridd wrote: On 1/1/04 10:11 am, Graham Barr <[EMAIL PROTECTED]> wrote: On 17 Dec 2003, at 09:06, Chris Ridd wrote: No, because lots of stuff is hidden. Consider what you have todo today $mesg = $ldap->delete(@args); handle_referal($mesg) if (...

RELEASE perl-ldap 0.31

2004-01-01 Thread Graham Barr
perl-ldap-0.31 has just been uploaded to CPAN and should be on mirror sites soon and is available from sourceforge now http://prdownloads.sourceforge.net/perl-ldap/perl-ldap-0.31.tar.gz Changes are 2004-01-01 10:43 Graham Barr * RELEASE_NOTES, lib/Net/LDAP.pm: Release 0.31

Re: unsupported extension

2004-01-01 Thread Graham Barr
On 31 Dec 2003, at 21:45, D.Kreft wrote: On Wed, 31 Dec 2003, Chris Ridd did scribble: There's at least one way where these methods return a non-object. Mostly they call _error() to set an error code in a message object, but this isn't always true - if $ldap->socket fails the integer LDAP_SERVER

Re: CAUSE: Can't call method X without a package or object

2004-01-05 Thread Graham Barr
On 20 Dec 2003, at 09:46, GuRU wrote: Graham Barr wrote: > On Nov 11, 2003, at 17:55, Chris Masters wrote: > >> I upgraded to 0.30 directly after you suggested. All >> mails after your suggestion were refering to a 0.30 >> version installation. > > > Then please

Re: CAUSE: Can't call method X without a package or object

2004-01-06 Thread Graham Barr
On 6 Jan 2004, at 17:40, GuRU wrote: Graham Barr wrote: On 20 Dec 2003, at 09:46, GuRU wrote: I've been following this thread as I'm having the same problem with search. I'm running NetBSD -current with perl 5.6.1. We're also seeing the same problem with perl 5.8. on

Fwd: Net::LDAP, start_tls and referrals

2004-01-16 Thread Graham Barr
Begin forwarded message: From: Larry Stewart Lile <[EMAIL PROTECTED]> Date: 15 January 2004 23:26:32 GMT To: Graham Barr <[EMAIL PROTECTED]> Subject: Net::LDAP, start_tls and referrals Message-Id: Hi Graham, I've having problems chasing referrals while using start_tls, it ap

Fwd: uninit bug in Net::LDAP

2004-01-28 Thread Graham Barr
Begin forwarded message: From: Uri Guttman <[EMAIL PROTECTED]> Date: 28 January 2004 00:05:16 GMT To: [EMAIL PROTECTED] Subject: uninit bug in Net::LDAP Message-Id: <[EMAIL PROTECTED]> hi graham, i am using Net::LDAP for a project and i found a minor bug in the module. if i do a search call and do

Fwd: IO::Socket::SSL: connect: Invalid argument at

2004-01-28 Thread Graham Barr
Begin forwarded message: From: "Mudry, Robert (N-aerotek)" <[EMAIL PROTECTED]> Date: 27 January 2004 00:12:56 GMT To: [EMAIL PROTECTED] Subject: IO::Socket::SSL: connect: Invalid argument at Message-Id: <[EMAIL PROTECTED]> Hi! I'm going bonkers and I was hoping you can help me. I appreciate a

Fwd: net::ldap

2004-02-10 Thread Graham Barr
Begin forwarded message: From: Takis Skagos <[EMAIL PROTECTED]> Date: 10 February 2004 16:43:25 GMT To: [EMAIL PROTECTED] Subject: net::ldap Message-Id: <[EMAIL PROTECTED]> Hi, I've just downloaded your really nice net::ldap perl-ldap module. It is much nicer than the perldap stuff I've been u

Moving off sourceforge

2004-02-14 Thread Graham Barr
It's no secret that for sometime I have wanted to move away from sourceforge. We moved the mailing list a while back, which has reduced spam a lot, and today I finally completed moving the homepage and source repository The new home for the perl-ldap webpage is now http://ldap.perl.org/ . This

Re: exception in Schema.pm

2004-02-23 Thread Graham Barr
On 23 Feb 2004, at 11:30, Claude wrote: Hello, Running the schema() method fails with an exception in Schema.pm when binding to a Netscape DS 6.2. It runs fine with an OpenLdap DS. I suppose that the problem is in non RFC compliant definitions of Netscape. Could you tell me if there is

Re: Patch for Authen::SASL::Perl::DIGEST_MD5

2004-03-08 Thread Graham Barr
On 4 Mar 2004, at 09:03, Paul Connolly wrote: Graham & co- See below for a patch to DIGEST_MD5.pm - there are two issues resolved here. Firstly, as reported on this list, the qop value in the response should not be a quoted value. The second fixes bad handling of the qop in the challenge. The qo

Re: TLS or SSL problems.

2004-03-31 Thread Graham Barr
On 31 Mar 2004, at 11:12, Danny Carroll wrote: I am at a loss trying to figure out why my perl script wont talk TLS or SSL. I have told openldap to force TLS with the "security tls = 56" line in slapd.conf Here is the output form the script. Do you have access to the openldap server logs ? there

Re: Multi-homed host

2004-04-05 Thread Graham Barr
On 5 Apr 2004, at 17:11, Chris Ridd wrote: On 5/4/04 4:52 pm, Peter Marschall <[EMAIL PROTECTED]> wrote: Hi, On Monday 05 April 2004 17:31, Safford, Brian wrote: I have a multi-homed host, and I need to be able to specify an IP address or local host name to use for the connection to the LDAP se

Re: more question about modifyTimestamp attribute

2004-04-06 Thread Graham Barr
On 6 Apr 2004, at 12:40, Claude wrote: I need to create a search filter containing comparaison to a modifyTimestamp value. Someting like: (&(modifyTimestamp>=20040325161257Z)(|(objectClass=XX)(objectClass=YY)) ) The data type syntax ("Generalized Time") is close to what 'date' can output: $

Re: more question about modifyTimestamp attribute

2004-04-06 Thread Graham Barr
On 6 Apr 2004, at 16:23, Claude wrote: "Graham" == Graham Barr <[EMAIL PROTECTED]> writes: [...] 25/Mar/2004:13:02:31 -0200 Can I convert this date to the "Generalized Time" format using the convert::ASN1 module? Graham> Try Date::Parse to turn this into a unixt

Re: LDAP_CONTROL_ENTRYCHANGE examples against eDirectory

2004-04-07 Thread Graham Barr
[NOTE to self: don't start to answer an email first thing in the morning] On 6 Apr 2004, at 22:45, Don Miller wrote: I am able to do a persistent search against the server but I cannot figure out how to use/extract population of the ENTRYCHANGE control. I was wondering if anyone had any compl

Re: LDAP_CONTROL_ENTRYCHANGE examples against eDirectory

2004-04-07 Thread Graham Barr
On 7 Apr 2004, at 11:17, Graham Barr wrote: [NOTE to self: don't start to answer an email first thing in the morning] 2nd note to self. Remember to add attachments :-) Graham. controls.patch Description: application/text

Re: LDAP_CONTROL_ENTRYCHANGE examples against eDirectory

2004-04-07 Thread Graham Barr
On 7 Apr 2004, at 11:18, Graham Barr wrote: On 7 Apr 2004, at 11:17, Graham Barr wrote: [NOTE to self: don't start to answer an email first thing in the morning] 2nd note to self. Remember to add attachments :-) Graham. Actually that one is not quite right. Try this one. controls.

Re: LDAP_CONTROL_ENTRYCHANGE examples against eDirectory

2004-04-09 Thread Graham Barr
ntrol) = $message->control(LDAP_CONTROL_ENTRYCHANGE); my $changeType = $asn->find('EntryChangeNotification')->decode($control->value)- >{changeType}; print "$changeType\n"; } - Original Message ----- From: Graham Barr <[EMAIL PROTECTED]> Date: Wednesda

Re: Problems with creating a user password

2004-04-16 Thread Graham Barr
On 16 Apr 2004, at 00:10, Christopher A Bongaarts wrote: In the immortal words of Paul Connolly: The password attribute in Active Directory is unicodePwd (in objectClass securityPrincipal) and not userPassword. Note that you can only perform LDAP operations on unicodePwd if SSL is being used. Als

Re: parse does not return false when it should

2004-04-23 Thread Graham Barr
On 23 Apr 2004, at 15:11, Peter Marschall wrote: I haven't tried the code, but on inspection I'd be surprised if simply doing this will return undef: $schema->_error("Foo"); return; Why not ? That should be return undef; not just return. the method is defined to return a single scalar. if

Re: Error message while trying to add to the ldap server

2004-04-26 Thread Graham Barr
On 26 Apr 2004, at 20:48, Daniel Campbell wrote: I get the following error when I try to add an entry: addRequest.addRequest.objectName is undefined at /usr/lib/perl5/site_perl/5.8.1/Net/LDAP/Message.pm line 182 I am almost positive I have all the correct packages installed. Any ideas? First I wo

Re: Antwort: Re: how to use async option? [Virus checked]

2004-04-29 Thread Graham Barr
On 28 Apr 2004, at 19:30, [EMAIL PROTECTED] wrote: Also the async option is only valid in the constructor as it is a per connection option. You can also call $ldap->async to turn on/off the connection's async flag. It isn't correct to pass async=>1 in a normal operation. Well, I wasn't sure where t

Re: bulk deleting entries

2004-04-29 Thread Graham Barr
On 29 Apr 2004, at 14:29, [EMAIL PROTECTED] wrote: I'm playing with the callbacks, and decided to do a mass extinction on my directory, by doing a "search and delete" operation. So I try: my $res=$ldap->search(callback=\&myCallback); sub myCallback { my $mesg = shift; my $entry = shift; $ent

Re: Patch for Authen::SASL::Perl::DIGEST_MD5

2004-05-24 Thread Graham Barr
On 23 May 2004, at 17:51, Peter Marschall wrote: let me come back to the mail from Paul Connolly. I tested DIGEST-MD5 from Authen-SASL 2.05 against OpenLDAP (using cyrus-sasl2 as server-side SASL implementation) and can confirm Paul's findings. I also checked against RFC2831 as well as the newer dr

Re: Authen::SASL patches

2004-06-01 Thread Graham Barr
On 31 May 2004, at 22:00, Peter Marschall wrote: Hi Graham, hi Chris, hi list, I shouldn't have begged for a new relaese to be cut so quickly. Here's a set of new patches against Authen::SASL. The first one - Authen-SASL-2.08-import.patch - uses the import routine to select the plugins and/or thei

Fwd: Potential bug in Net::LDAP (with binary data)

2004-06-03 Thread Graham Barr
Begin forwarded message: From: Douglas Gray Stephens <[EMAIL PROTECTED]> Date: 3 June 2004 15:58:41 BST To: [EMAIL PROTECTED] Subject: Potential bug in Net::LDAP (with binary data) Message-Id: <[EMAIL PROTECTED]> Graham, I have an odd observation while working with a usercertificate;binary data.

Re: make Net::LDAP::LDIF more similar to Net::LDAP

2004-06-08 Thread Graham Barr
On 8 Jun 2004, at 16:56, [EMAIL PROTECTED] wrote: I\'d like to start with a code() method that tries to mimic the Net::LDAP one and I assume you mean better error handling ? I\'d like to extend the Net::LDAP::Entry->update() method so that it takes a Net::LDAP::LDIF object as an argument. The latte

Re: make Net::LDAP::LDIF more similar to Net::LDAP

2004-06-08 Thread Graham Barr
changetype LDIF required up to synchronise entry objects. Can you expand what you mean by that ? ::LDIF can already read a file with changetype entries and you can update a server. It can also create such a file from ::Entry objects too. Graham. Graham Barr wrote: On 8 Jun 2004, at 16:56, [EMAIL

  1   2   3   4   >