Re: NET::LDAP->new( async => 1)

2022-10-25 Thread Chris Ridd via perl-ldap
I couldn’t see any examples either. However, if you look at the tests in the sources you’ll find a couple of very simple examples. Eg. https://github.com/perl-ldap/perl-ldap/blob/master/t/60cancel.t There’s another in https://github.com/perl-ldap/perl-ldap/blob/master/t/04refloop.t but it

Re: Net::LDAP not returning SEQUENCE data type

2021-12-16 Thread Chris Ridd via perl-ldap
> On 15 Dec 2021, at 22:27, johnhirsch via perl-ldap wrote: > > Hi. I am working on migrating a perl script that uses Net::LDAP from HP-UX to > RedHat Linux. When running the script on RedHat Linux, the debug seems to > indicate that Net:LDAP is returning a 00 for the ASN1 data type instead

Re: LDAP channel binding and LDAP signing in AD

2020-02-19 Thread Chris Ridd via perl-ldap
> On 19 Feb 2020, at 07:21, Vladimir Levijev wrote: > > Hi, > > Microsoft has announced the following: > > https://support.microsoft.com/en-us/help/4520412/2020-ldap-channel-binding-and-ldap-signing-requirement-for-windows > > Does Perl::LDAP support LDAP channel binding and signing? The

Re: what is the best practice to modrdn for branch of objects?

2018-06-19 Thread Chris Ridd
> On 19 Jun 2018, at 05:58, Zeus Panchenko wrote: > > Chris Ridd wrote: >> Net::LDAP's moddn method does not take a „recursively“ option. > > may it sound sane to add it to the method? > >> The LDAP modifydn operation is already defined to move all the entry

Re: what is the best practice to modrdn for branch of objects?

2018-06-18 Thread Chris Ridd
> On 18 Jun 2018, at 12:33, Zeus Panchenko wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > hi > > what is the best practice to moddn() for branch of objects? I’m not really sure “best practice” is relevant here - whatever you need to do needs to be expressed in LDAP protocol

Re: Net::LDAP::Entry - RFC

2018-01-02 Thread Chris Ridd
> On 2 Jan 2018, at 13:36, Burns, Victor M via perl-ldap > wrote: > > Thanks for getting back to me. I suspect I confused the version number. As > you know perl-ldap is a large set of classes. I am using the latest > perl-ldap-0.65 and the class in Question

Re: Searching without retaining all results

2017-08-03 Thread Chris Ridd
Good idea! > On 3 Aug 2017, at 17:42, Brandon Hume <hume...@bofh.ca> wrote: > >> On 8/3/2017 12:59 PM, Chris Ridd wrote: >> I ended up patching Search.pm to avoid capturing each result when using >> callbacks. Is there a better way to do this? > > Were you

Re: Searching without retaining all results

2017-08-03 Thread Chris Ridd
> On 3 Aug 2017, at 17:35, Frank Swasey wrote: > > Was there a reason not to use ldapsearch or slapcat to extract the entries of > interest or the entire database into an LDIF file and then process with > Net::LDAP::LDIF? I was wondering whether at some point exporting

Re: Searching without retaining all results

2017-08-03 Thread Chris Ridd
> On 3 Aug 2017, at 17:55, Graham Barr <gb...@pobox.com> wrote: > > >> On Aug 3, 2017, at 10:59 , Chris Ridd <chrisr...@mac.com> wrote: >> >> I had a requirement to extract 30+ million entries from an ldap server, and >> naively thought that

Searching without retaining all results

2017-08-03 Thread Chris Ridd
I had a requirement to extract 30+ million entries from an ldap server, and naively thought that using callbacks would be useful. While they are useful in getting me each result quickly, I didn't realise that Search still captures each result in self. So after reading several million entries

Re: Net::LDAP::Entry - RFC

2017-07-27 Thread Chris Ridd
> On 27 Jul 2017, at 12:42, Burns, Victor M via perl-ldap > wrote: > > I’ve been working with the Net::LDAP::Entry class. > I think it would be keen/natural if the ->ldif method supported additional > Net::LDAP::LDIF options. > For example: > print $entry->ldif( wrap => 0

Re: How to bind to AD?

2015-06-13 Thread Chris Ridd
On 13 Jun 2015, at 12:30, Natxo Asenjo natxo.ase...@gmail.com wrote: On Sat, Jun 13, 2015 at 11:47 AM, Chris Ridd chrisr...@mac.com wrote: On 11 Jun 2015, at 22:45, David Lee Lambert dav...@lmert.com wrote: I've reduced my non-working code to the following... #! perl -w

Re: How to bind to AD?

2015-06-13 Thread Chris Ridd
On 11 Jun 2015, at 22:45, David Lee Lambert dav...@lmert.com wrote: I know this question has been asked before, but maybe the answers were in response to differnt details... I'm trying to write a script that compares data in an Oracle database with Active Directory. So, it seems like I

Re: usercertificate attribute fingerprint (possibly OT)

2015-05-17 Thread Chris Ridd
On 17 May 2015, at 16:10, Natxo Asenjo natxo.ase...@gmail.com wrote: hi, connecting to a freeipa ldap host (that uses the 389 directory server under the hood) I can successfully retrieve certificates belonging to hosts. I can then use Crypt::X509 to extract info from that. But how

Re: Net::LDAP object inside a callback function

2015-03-30 Thread Chris Ridd
On 30 Mar 2015, at 19:01, Téssio Fechine tess...@gmail.com wrote: Hi, I want to pass a callback function to a search command. My function, compare_attributes, uses the method compare on the entry object passed as the 2th parameter. Is there a way to use the method compare without

Re: LDAP search

2013-10-01 Thread Chris Ridd
On 1 Oct 2013, at 19:46, Clément OUDOT clem.ou...@gmail.com wrote: You use a base in ldapsearch and a filter in your code. Use 'base' in search() to set the search base. For Paul's benefit: what's happening here is that LDAP searches *require* that a search base is specified, a search scope

Re: LDAP search

2013-10-01 Thread Chris Ridd
On 1 Oct 2013, at 22:16, Quanah Gibson-Mount qua...@zimbra.com wrote: --On Tuesday, October 01, 2013 9:19 PM +0100 Chris Ridd chrisr...@mac.com wrote: On 1 Oct 2013, at 19:46, Clément OUDOT clem.ou...@gmail.com wrote: You use a base in ldapsearch and a filter in your code. Use 'base

Re: How to LDAP Perl module

2013-08-01 Thread Chris Ridd
On 26 Jul 2013, at 13:08, Dileep S dil...@citrusinformatics.com wrote: Hi, I am new to perl scripting. I have downloaded perl-ldap-0.57 from http://ldap.perl.org/ What should I have to do with the extracted perl-ldap-0.57.tar.gz Where Should I have to copy or how install ?

Re: Net::LDAP Search Filter

2013-04-26 Thread Chris Ridd
On 25 Apr 2013, at 15:03, Zachary, Carlton - Hoboken czach...@wiley.com wrote: Thanks David. -Original Message- From: david.suarezde...@telefonica.es [mailto:david.suarezde...@telefonica.es] Sent: Thursday, April 25, 2013 9:35 AM To: perl-ldap@perl.org Subject: Re: Net::LDAP

Re: Search and print unique LDAP attribute values.

2012-09-14 Thread Chris Ridd
On 14 Sep 2012, at 16:46, Bruce Johnson john...@pharmacy.arizona.edu wrote: On Sep 14, 2012, at 12:13 AM, Chris Ridd wrote: By definition the values in a given stored LDAP attribute have to be all unique, so most of your problem goes away: @result is simply @a! I'm pretty sure

Re: Use of uninitialized value $cn in substitution (s///) at ...

2012-03-08 Thread Chris Ridd
On 8 Mar 2012, at 08:44, Clément OUDOT wrote: Maybe the error come from the CA certificate, which should contain a CN in his subject? I'm not sure there are particular naming rules for CA DNs. What about the subject name of the AD server itself - what's that? IO::Socket::SSL might be

Re: LDAPS via Oracle Internet Directory

2012-02-25 Thread Chris Ridd
On 23 Feb 2012, at 22:19, tBM wrote: First let me ask for your forgiveness, I am a perl newbie. We have a little perl script that is currently doing cleartext authentication against Oracle Internet Directory 10G that we've revised to use LDAPS and have the following in our NET::LDAP

Re: Problem with Net::LDAP::Control::Paged and Oracle Internet Directory

2012-01-19 Thread Chris Ridd
On 19 Jan 2012, at 01:35, John Devitofranceschi wrote: I am trying to use a slightly modified version of the Net::LDAP example scripts with paging and callbacks against Oracle Internet directory. I am using perl 5.14.2 and very fresh versions of all the CPAN modules. The script fails

Re: Problem with Net::LDAP::Control::Paged and Oracle Internet Directory

2012-01-19 Thread Chris Ridd
On 19 Jan 2012, at 12:39, John Devitofranceschi wrote: Two bugs! Such a deal! No extra charge :-) Yes, the cookie setting code is in the while (1) loop and the callback merely prints out the dn of the returned entries. You mentioned that the OpenLDAP ldapsearch command-line tool seemed to

Re: Problem with Net::LDAP::Control::Paged and Oracle Internet Directory

2012-01-19 Thread Chris Ridd
On 19 Jan 2012, at 14:00, John Devitofranceschi wrote: On Jan 19, 2012, at 8:21, Chris Ridd chrisr...@mac.com wrote: On 19 Jan 2012, at 12:39, John Devitofranceschi wrote: Two bugs! Such a deal! No extra charge :-) Yes, the cookie setting code is in the while (1) loop

Re: Problem with Net::LDAP::Control::Paged and Oracle Internet Directory

2012-01-19 Thread Chris Ridd
On 19 Jan 2012, at 14:05, Chris Ridd wrote: On 19 Jan 2012, at 14:00, John Devitofranceschi wrote: On Jan 19, 2012, at 8:21, Chris Ridd chrisr...@mac.com wrote: On 19 Jan 2012, at 12:39, John Devitofranceschi wrote: Two bugs! Such a deal! No extra charge :-) Yes

Re: Searching for entries with expired ppolicy controlled passwords

2011-12-02 Thread Chris Ridd
On 1 Dec 2011, at 23:40, Nick Urbanik wrote: This is ugly, especially when I want to have other code to fetch only users who *have* expired. Do I really need to do this sort of thing? The server knows which ones have expired; it would be great if I had a way of asking it to filter them out

Re: Searching for entries with expired ppolicy controlled passwords

2011-11-30 Thread Chris Ridd
On 30 Nov 2011, at 22:21, Nick Urbanik wrote: Dear Folks, I am writing Perl software to manage our OpenLDAP cluster using the slapo.ppolicy overlay to manage password policy. I'm hoping to get this into production very soon. My problem: how to efficiently search for users who have

Re: [Net::LDAP] I cannot list multiple values for the same attribute

2011-08-11 Thread Chris Ridd
On 11 Aug 2011, at 18:04, Mehmet wrote: Peter, Thanks so much for your super-fast reply, which made me realize that entry-get_value($attr) returns a list which can be iterated :) When you call it in an array context it will return all the values, otherwise it will just return a single

Re: ldaps ssl validation

2011-08-03 Thread Chris Ridd
On 3 Aug 2011, at 18:06, Kevan Carstensen wrote: We can easily address this by changing the options we pass to IO::Socket::SSL's new and start_SSL functions. I'm attaching a patch that does this, setting SSL_verifycn_name to 'ldap'. This behaves correctly in my tests: LDAPS connections to a

Re: Problem with LDAP search filter containing a backslash ('\')

2011-07-20 Thread Chris Ridd
On 20 Jul 2011, at 11:34, Clément OUDOT wrote: Hi, I will have a look to Net::LDAP::Filter, but I see in Net::LDAP that a new Net::LDAP::Filter is created in the search subroutine when filter is a string. Why do the Net::LDAP::Filter object do not escape the special characters from the

Re: Problem with LDAP search filter containing a backslash ('\')

2011-07-20 Thread Chris Ridd
On 20 Jul 2011, at 13:36, Graham Barr wrote: On Jul 20, 2011, at 07:32 , Francis Swasey wrote: On Jul 20, 2011, at 8:26, Chris Ridd chrisr...@mac.com wrote: Graham, should _escape be made public? It seems like it would be useful. Or is manipulating the data structure

Re: Capturing LDAP error message

2011-07-19 Thread Chris Ridd
On 19 Jul 2011, at 16:17, Rick Sanders wrote: I am trying to capture a better error description than I am getting with the following code: use Net::LDAP::Util qw(ldap_error_name ldap_error_text ldap_error_desc); $result = $ldap-add( $dn, attr = [ %$attrs ] ); if ( $result-code ) {

Re: basic question about binding without knowing the DN

2011-04-14 Thread Chris Ridd
On 14 Apr 2011, at 18:22, Mark Inaba wrote: hello perl-ldap mailing list, i'm wondering if i'm trying to do the impossible, even though it seems like this might be a common situation. i'm trying to verify a user/password by having the user bind to an ldap server. the problem is that

Re: Password modify

2011-02-19 Thread Chris Ridd
On 17 Feb 2011, at 17:10, Robert Threet wrote: I have a working Net::LDAP::Entry program for adding users so I decided to gut it to create a userPassword changer. I keep getting Error changing password: no objectClass attribute. I cannot find examples doing simple one-at-a-time adds like

Re: What's wrong with this code?

2011-02-17 Thread Chris Ridd
On 17 Feb 2011, at 21:13, Prentice Bisbal wrote: I cut off the last line of the errors, which says this, which might be an additional clue: ntUserDomainId: value #0 invalid per syntax What does your $ntUserDomainId value look like? If you call $ldap-debug(15) before $entry-add you will

Re: Problem with modify/replace function

2010-12-21 Thread Chris Ridd
On 21 Dec 2010, at 09:13, LIBRIZZI FRANCESCO wrote: Hello, I wrote a script for updating the LDAP content. I want to modify the members that belong to a group. Therefore I used the modify function with the replace option. In this latter I used as parameter the new member list. When the

Re: ObjectClass and Attributes via command line

2010-09-23 Thread Chris Ridd
On 23 Sep 2010, at 08:06, sajuptpm wrote: How add new ObjectClass and Attributes via command line. I need to add a new Objectclass MyObject with new attributes group_id and role, and i also need existing attribute uid. You will need to look at the documentation for your server. This list

Re: Check for write access on attributes

2010-09-06 Thread Chris Ridd
On 28 Aug 2010, at 21:03, Kilian Röhner wrote: Hi, when i'm trying to modify an attribute of an entry, i am not allow to modify, the update method gives me of course an Insufficent Access Error. I want to prevent that, so my question is: How can i check _before_ doing the modify, if i

Re: NET::LDAP Search Works, pop_entry problematic #2

2010-07-08 Thread Chris Ridd
On 7 Jul 2010, at 22:47, rfran...@comcast.net wrote: my $HOST = 1; my $ADMIN = cn=me,DC=corp; my $PWD = 0; my $BASEDN = DC=corp; my $ldap = Net::LDAP-new($HOST, port=389) or die $@; my $dn = $ldap-bind($ADMIN, password=$PWD); my $mgrdn = $ldap-bind($ADMIN, password=$PWD); This

Re: Perl Net::LDAP::Entry

2010-04-12 Thread Chris Ridd
On 12 Apr 2010, at 06:21, William King wrote: Is there a way to get the internal attributes? such as for an inetOrgPerson entry I would want access to: createTimestamp creatorsName modifiersName modifyTimestamp These are available when using phpldapadmin and selecting internal

Re: SSL/TLS does not check hostname in cert

2010-03-31 Thread Chris Ridd
On 31 Mar 2010, at 19:25, Prentice Bisbal wrote: It's my understanding that using LDAPS-new or $ldap-start_tls with the option verify = 'require' Should verify that the host name should be checked and fail if it's not an exact match. From my experience with websites, TLS/SSL requires

Re: Extension Refresh (RFC 2589)

2010-03-09 Thread Chris Ridd
On 8 Mar 2010, at 09:00, Etienne Bagnoud wrote: On Fri, 05 Mar 2010 18:11:38 + Chris Ridd chrisr...@mac.com wrote: You should also add an OID to Net::LDAP::Constant so that callers can easily test for this extension's presence in the root DSE. Is that ok ? --- Constant.pm 2010

Re: Extension Refresh (RFC 2589)

2010-03-05 Thread Chris Ridd
On 5 Mar 2010, at 15:53, Etienne Bagnoud wrote: Hi, I needed the extended operation refresh as Net::LDAP extension. As I didn't find one, I wrote one. This is mainly copied from SetPassword.pm, it's my first Perl module I wrote. The copyright notice is set that way as I didn't know what

Re: perl-ad-manager

2010-02-06 Thread Chris Ridd
On 6 Feb 2010, at 10:43, Dieter Kluenter wrote: natx...@asenjo.nl (J.I. Asenjo) writes: On Fri, 05 Feb 2010, 10:18:54AM +0100�, Buchan Milne said: On Tuesday, 19 January 2010 17:35:47 Young, Darren wrote: Am I the only one getting multiple times this same message? No, me too. Me

Re: Adding New OU

2009-12-07 Thread Chris Ridd
On 7 Dec 2009, at 09:38, Lupin Deterd wrote: Hi, What is the correct syntax of adding an OU using Net::LDAP, I tried the following: !/usr/bin/perl -w use 5.10.1; use strict; use Net::LDAP; use Data::Dumper; my $ldap = Net::LDAP-new(192.168.183.2) or die $@; my $mesg = $ldap-bind(

Re: Adding New OU

2009-12-07 Thread Chris Ridd
On 7 Dec 2009, at 11:06, Lupin Deterd wrote: On 12/7/09, Chris Ridd chrisr...@mac.com wrote: On 7 Dec 2009, at 09:38, Lupin Deterd wrote: Hi, What is the correct syntax of adding an OU using Net::LDAP, I tried the following: !/usr/bin/perl -w use 5.10.1; use strict; use Net

Re: First LDAP-Perl Script

2009-09-21 Thread Chris Ridd
On 20 Sep 2009, at 18:44, Parag Kalra wrote: I think I got what was going wrong...If I am not wrong 'bind' method uses authentication hence credentials only while making any changes (add/modify/delete) to ldap server. So if I will use wrong credentials to modify ldap database then it will

Re: First LDAP-Perl Script

2009-09-21 Thread Chris Ridd
On 21 Sep 2009, at 13:53, Graham Barr wrote: On Sep 21, 2009, at 5:41 AM, Chris Ridd wrote: On 20 Sep 2009, at 18:44, Parag Kalra wrote: I think I got what was going wrong...If I am not wrong 'bind' method uses authentication hence credentials only while making any changes (add/modify

Re: Is development dead?

2009-09-19 Thread Chris Ridd
On 19 Sep 2009, at 14:24, Graham Barr wrote: On Sep 15, 2009, at 2:36 PM, Graham Barr wrote: On Sep 4, 2009, at 2:40 PM, Quanah Gibson-Mount wrote: Just curious... I see no commits to git since 10/2008. I sent a private email a while back about a nasty issue with Net::LDAP::LDIF when

Re: ppolicy control and change password exop (again)

2009-05-27 Thread Chris Ridd
On 26 May 2009, at 16:17, Guillaume Rousse wrote: Net::LDAP=HASH(0x9e63030) sending: 68: SEQUENCE { 00021: INTEGER = 2 0005 32: [APPLICATION 23] { 0007 23: [CONTEXT 0] 0009 : 31 2E 33 2E 36 2E 31 2E 34 2E 31 2E 34 32 30 33 1.3.6.1.4.1.4203 0019 : 2E

Re: ppolicy control and change password exop (again)

2009-05-26 Thread Chris Ridd
On 26 May 2009, at 14:42, Guillaume Rousse wrote: Hello list. Some time ago, I had an issue with set_password() not handling controls: http://www.nntp.perl.org/group/perl.ldap/2008/09/msg2950.html It was fixed in perl-ldap 0.38. I also opened an ITS in openldap, because apparently

Re: ppolicy control and change password exop (again)

2009-05-26 Thread Chris Ridd
On 26 May 2009, at 15:56, Guillaume Rousse wrote: Chris Ridd a écrit : On 26 May 2009, at 14:42, Guillaume Rousse wrote: Hello list. Some time ago, I had an issue with set_password() not handling controls: http://www.nntp.perl.org/group/perl.ldap/2008/09/msg2950.html It was fixed

Re: LDAPS

2009-03-20 Thread Chris Ridd
On 20 Mar 2009, at 16:23, Helmut Schneider wrote: LDAPSHow do I turn on debugging for Net::LDAP? Also, I'm not familiar with the ldapserach syntax, but: Call $ldap-debug(n) - n is a mask of debug flags described in the docs. But as it is mainly for debugging LDAP PDUs, it isn't going to

Re: What can be the maximum size of a LDAP Name?

2009-03-17 Thread Chris Ridd
On 17 Mar 2009, at 12:30, Dieter Kluenter wrote: Chris Ridd chrisr...@mac.com writes: On 16 Mar 2009, at 14:05, raga wrote: I've to store LDAP Name in a database Column. What should be the minimum size of that column . And is there any rationale for that?. The Format of LDAP Name is like

Re: What can be the maximum size of a LDAP Name?

2009-03-16 Thread Chris Ridd
On 16 Mar 2009, at 14:05, raga wrote: I've to store LDAP Name in a database Column. What should be the minimum size of that column . And is there any rationale for that?. The Format of LDAP Name is like that of e-mail id. The mail attribute is defined in RFC 2798 as having a minimum upper

Re: pulling configurationNamingContext from Active Directory Root DSE

2009-01-31 Thread Chris Ridd
On 30 Jan 2009, at 22:57, Ismael Lezcano wrote: Hello, new poster, all noob disclaimers apply. I'm trying to write script that will be a concept for other scripts. I want to connect to Active Directory and have the script intelligently decipher the configuration naming context

Re: excluding attributes on search method?

2009-01-08 Thread Chris Ridd
On 8 Jan 2009, at 13:12, Karsten Kankowski wrote: Hello community! It is possible to define attributes using the attrs = directive at the search method which are should NOT be returned? like: $mesg = $ldap-search( ... , attrs = ['*', ((!objectclass) ( !

Re: LDAP get the schema type (say rfc)

2009-01-08 Thread Chris Ridd
On 8 Jan 2009, at 11:43, omi wrote: Hi All, 1. Is there is any method in Net::LDAP that can gives me an LDAP Schema type say RFC33.. or Windows AD. See Net::LDAP::Schema. But it just gives you the definitions, it doesn't judge whether the schema corresponds to a certain manufacturer's

Re: unexpected result of query

2008-12-15 Thread Chris Ridd
On 15 Dec 2008, at 16:19, Graham Barr wrote: Filters only compare actual attributes, not parts of the DN. Which is why you only Nod, though you could do an extensible match which just matched parts of the DN. An exercise for the reader... Cheers, Chris

Re: Manage IA5strings with Perl LDAP

2008-11-27 Thread Chris Ridd
On 27 Nov 2008, at 15:58, Clément OUDOT wrote: On Nov 26, 2008, at 4:28 AM, Clément OUDOT wrote: Thanks for your answer. I have to translate java code to perl ;) But another question, it seems the value we get from AD is binary, I use the raw attribute in Net::LDAP search but the value I get

Re: seeking help to install perl ldap on windows xp

2008-10-16 Thread Chris Ridd
On 16 Oct 2008, at 05:51, [EMAIL PROTECTED] wrote: hi, i am new to perl ldap world and trying to install it on my windows xp pc. could someone help me on how to install and from where to download. i tried download from ldap.perl.org, but that is only for unix systems and i cannot use on

Re: ExtendedResponse wrong definition?

2008-07-16 Thread Chris Ridd
Daniel Stutz wrote: Hi all, according to RFC 4511 an ExtendedResponse has the following format: ExtendedResponse ::= [APPLICATION 24] SEQUENCE { COMPONENTS OF LDAPResult, responseName [10] LDAPOID OPTIONAL, responseValue[11] OCTET STRING OPTIONAL

Re: ExtendedResponse wrong definition?

2008-07-16 Thread Chris Ridd
Daniel Stutz wrote: Chris Ridd wrote: The only difference is in the field name, and as it is not part of the encoding I see no particular reason to change anything. The field name is part of the _decoding_. That means the attribute response is now responseValue in the Message object

Re: Net::LDAP-new, lists and arrays

2008-07-08 Thread Chris Ridd
Manuel Vacelet wrote: Hello, My question is probably more related to my own understanding of perl than Net::LDAP module but it causes some headaches to me :) The following code just works fine: 1 use strict; 2 use warnings; 3 use Net::LDAP; 4 my @servers =

Re: Net::LDAP :: Admin limit on AD (Work around)

2008-07-01 Thread Chris Ridd
On 1 Jul 2008, at 07:14, Vartak, Yash V wrote: Dist, I am using Net::LDAP to generate reports out of Microsoft Active Directory, here my LDAP filter is expected to return roughly around 12,000 - 13,000 records. But due to Admin limits on Active Directory the number of entries returned are

Re: Problem with DN

2008-05-29 Thread Chris Ridd
On 29 May 2008, at 14:03, Zumwalt, Robert wrote: Well the DN is supposed to be all one line.. so outlook must have formatted this improperly. DISPLAYNAME=Name 1 ,MAIL [EMAIL PROTECTED],OU=OSS_8781150020001601_200805281457 19695574,O=blah.com,O=consumer,O=site And this entry is below MAIL

Re: Critical Bug in Net::LDAP v0.35

2008-04-17 Thread Chris Ridd
On 16 Apr 2008, at 21:39, Mike Peachey wrote: Peter Marschall wrote: Hi Mike, On Friday, 11. April 2008, Mike Peachey wrote: I have discovered a critical bug in Net::LDAP 0.35 and submitted the following ticket: http://rt.cpan.org/Ticket/Display.html?id=34878 You are right, this is a bug.

Re: moddn

2008-04-08 Thread Chris Ridd
On 7 Apr 2008, at 21:36, unxl3arn3r wrote: hey i am having trouble doing a moddn, all I want to do is move the object from one location to other. here is the script $ldap = new Net::LDAP('10.1.1.2', port=389) or die $!; $ldap-bind (dn = 'cn=,cn=xx,dc=xxx,dc=xxx' , password =

Re: perl-ldap 0.35?

2008-03-31 Thread Chris Ridd
On 30 Mar 2008, at 20:07, Graham Barr wrote: On Mar 20, 2008, at 4:08 PM, Chris Ridd wrote: Git would work OK for me. Does the web site generate itself automatically out of git as well as svn? Yes, there is a web frontend for git. See http://git.kernel.org/gitweb.cgi?p=git/git.git;a=summary

Re: perl-ldap 0.35?

2008-03-20 Thread Chris Ridd
On 20 Mar 2008, at 16:24, Graham Barr wrote: On Mar 20, 2008, at 9:22 AM, Clément OUDOT wrote: Sánta Gergely a écrit : Hi! I'd like to ask, are there any plans to release new version from svn repository? There are many (for me mandatory) changes, which would be good to have by simple

Re: Password Policy Control

2008-03-10 Thread Chris Ridd
On 9 Mar 2008, at 12:07, Clément OUDOT wrote: Hello, I'm using Net::LDAP for several years (scripts, LemonLDAP::NG project) and I try now to use Password Policy (with overlay ppolicy in OpenLDAP). As I see, no control module has been implemented to deals with Password Policy control

Re: Password Policy Control

2008-03-10 Thread Chris Ridd
On 10 Mar 2008, at 10:56, Clément OUDOT wrote: Chris Ridd a écrit : On 9 Mar 2008, at 12:07, Clément OUDOT wrote: Hello, I'm using Net::LDAP for several years (scripts, LemonLDAP::NG project) and I try now to use Password Policy (with overlay ppolicy in OpenLDAP). As I see

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

2008-02-07 Thread Chris Ridd
On 7 Feb 2008, at 13:25, Michael Alan Dorman wrote: 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

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

2008-02-06 Thread Chris Ridd
On 6 Feb 2008, at 22:05, Michael Alan Dorman wrote: 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

Re: How To Delete A Branch

2008-02-01 Thread Chris Ridd
On 1 Feb 2008, at 20:22, Brian Gaber wrote: This is probably a trivial question. How does one delete an entire branch? Microsoft define a control (1.2.840.113556.1.4.805) which deletes a subtree, which your server *may* support. Otherwise, do a one-level search, then a one-level search

Re: modify is not working ...

2008-01-24 Thread Chris Ridd
On 24 Jan 2008, at 12:58, Anniyka Wandersmann wrote: Hello together, I try to modify the value of an attribute. This attribute is has multiple values. the following code is what i do: --- snip -- $ldap = Net::LDAP-new ( $ldaphost ) or die $@; $mesg = $ldap-bind (

Re: Can't locate object method disconnect via package Net::LDAP

2008-01-09 Thread Chris Ridd
On 9 Jan 2008, at 22:45, Don C. Miller wrote: Praveen, use these methods to destroy the object. undef($ldap); $ldap = undef; Yep, alternatively letting the variable go out of scope (i.e. the { } you defined the variable in) should also work. Cheers, Chris

Re: Transactional Net::LDAP?

2007-12-04 Thread Chris Ridd
On 4 Dec 2007, at 08:09, Olivier Nicole wrote: Hello, I want to implement a print quota system using OpenLDAP. The print quota would be just one attibute that will keep the number of pages printed for each user. My problem is that I have several servers with pinter daemon, and on each server

Re: base64 translation removing trailing space from string attribute

2007-11-30 Thread Chris Ridd
On 30 Nov 2007, at 17:37, Michael Chiles wrote: Perl LDAP Folk, Tracking down an issue with a business process, I've run into a problem with an audit using Net::LDAP. There are some string attributes in one of our LDAP servers that were written to the directory as base 64 encoded

Re: printMembers.pl returns 30 members, where ldap browser returns 217!

2007-09-15 Thread Chris Ridd
On 14/9/07 7:09, Julius Squeezer [EMAIL PROTECTED] wrote: I think I figured out the problem. See, when I browse for a group using an ldap browser, it lists all the DNs of that group. Now some of the entry is broken, as in there's a listing for a DN but upon clicking that DN it takes me

Re: Net::LDAP question

2007-08-28 Thread Chris Ridd
On 27/8/07 22:49, Rick Edwards [EMAIL PROTECTED] wrote: Hi All; Sorry - having a brain-fart kinda day, so I'm appealing for some help Solaris 8, iPlanet DS 5.2 I want to do a search of all users who have the service-indr flag set to true and return only their dn and hashed

Re: Crypt::X509 / Blessing error

2007-08-22 Thread Chris Ridd
On 22/8/07 10:34, Jean-Luc Boss [EMAIL PROTECTED] wrote: Hi, when i try to run this simple Crypt::X509 script, i have this error: Attempt to bless into a reference at /opt/perl_32/lib/site_perl/5.8.8/Crypt/X509.pm line 105. I want to build a mailer to send alerts to our customer, if

Re: Array Of Hosts

2007-07-06 Thread Chris Ridd
On 6/7/07 4:34, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello all, Could anyone tell me how, I can have my Net LDAP script to use an array of hosts, to connect to? I tried the following, but it did not work. my @hosts = qw(host1, host2); my $ldconnect = Net::LDAP-new(@hosts,

Re: Error 83 trying to use BigInt with Net::LDAP replace

2007-06-29 Thread Chris Ridd
On 28/6/07 2:46, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have a field (18 characters) TimeStamp field that needs to be updated on an ActiveDirectory Ldap Server. I have tried to use Net::LDAP to do so, but when the INT gets converted to a float (e.g. after 15 digits, etc.) the Update

Re: Net::LDAPS not checking hostname in certificate: PATCH

2007-06-13 Thread Chris Ridd
On 6/6/07 3:01, Christopher Odenbach [EMAIL PROTECTED] wrote: still working on that. Net::SSLeay supports fetching the cn from the certificate, but I am still looking for subjectAltName field support. I'll take a look. This is nasty stuff. As far as I know the hostname has to be converted

Re: changetype modrdn

2007-06-11 Thread Chris Ridd
On 11/6/07 12:27, Rudy Gevaert [EMAIL PROTECTED] wrote: I put $entry-changetype('moddn'); $entry-add(newrdn = umMailUid=${new_mailUid}); $entry-add(deleteoldrdn = 0); $result = $entry-update($ldaps); in my script. But now I get: attribute 'umMailUid' cannot have

Re: Net::LDAPS not checking hostname in certificate: PATCH

2007-05-16 Thread Chris Ridd
On 16/5/07 12:26, Christopher Odenbach [EMAIL PROTECTED] wrote: Hi, Something should definitely implement that check. I guess it is up to Net::LDAP to do that, because the algorithm to find the hostname/ address might be different for different application protocols using

Re: Net::LDAPS not checking hostname in certificate

2007-05-14 Thread Chris Ridd
On 14/5/07 8:39, Christopher Odenbach [EMAIL PROTECTED] wrote: Hi, Net::LDAP::Security states correctly, that an SSL connection must be verified by two things: 1. a correct certificate chain 2. a matching hostname in the certificate The document states further on that this can be

Re: Net::LDAP::LDIF patch

2007-05-05 Thread Chris Ridd
On 5/5/07 8:02, Chris Ridd [EMAIL PROTECTED] wrote: I think though that it is probably reasonable to put your patch in as is, as I mean Gergely's patch; apologies Gergely. Version 0.17_02 of LDIF.pm in SVN contains the change. Thanks! Chris

Re: Perl-ldap web site needs updating

2007-05-02 Thread Chris Ridd
On 2/5/07 2:43, Harden, Clif [EMAIL PROTECTED] wrote: Would someone please update the perl ldap web page to show the latest release is version .34. Thanks, Clif Done. Thanks for the heads-up :-) Cheers, Chris

Re: Net::LDAP::LDIF patch

2007-04-24 Thread Chris Ridd
On 24/4/07 8:39, Gergely Santa [EMAIL PROTECTED] wrote: Hi! I'm using LDIF for client-server communication.. The server is accessing LDAP server, and returns the results to the requesting client.. (You maybe ask 'WHY?', but it's only a minor part of the application) This reply message is

Re: LDAP read?

2007-03-05 Thread Chris Ridd
On 5/3/07 9:59, Lars Skjærlund [EMAIL PROTECTED] wrote: Hi list, I've started creating an application that runs against a larger Novell eDir system. Unfortunately, I have huge performance problems :-(. Basically, here's what I want to do (in pseudocode): @entries =

Re: A question for everyone

2007-02-25 Thread Chris Ridd
On 25/2/07 6:03, Si Smith [EMAIL PROTECTED] wrote: 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 :-) It

Re: ldap_error_desc question

2007-02-21 Thread Chris Ridd
On 21/2/07 5:01, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi everyone, I have a question about the ldap_error_desc function from Net::LDAP::Util. I am using Net::LDAP in a CGI form, along with the fatalstobrowser function. Whenever I call the ldap_error_desc function, the LDAP error is

Re: Add SMTP address to proxyAddresses in AD

2007-02-16 Thread Chris Ridd
On 16/2/07 4:50, Giuoco, Aaron [EMAIL PROTECTED] wrote: Hi LDAP list, I seem to be having a problem adding SMTP addresses to the proxyAddresses attribute. We are using Windows 2003 domain controllers and have a Windows 2003 server running Exchange 2003 as our mail server. Below is

Re: German special characters cause problems with Net::LDAP

2007-02-08 Thread Chris Ridd
On 8/2/07 8:53, Christian Felsing [EMAIL PROTECTED] wrote: Hello, I experienced a strange problem with following function and Net::LDAP --- cut here --- sub CreateLDAPentry { my ($uid,$name,$vorname,$st) = @_; my $salt=/%; my $pwd=crypt($word, $salt); my $ldap = Net::LDAP-new

Re: German special characters cause problems with Net::LDAP

2007-02-08 Thread Chris Ridd
On 8/2/07 7:46, Svend Sorensen [EMAIL PROTECTED] wrote: On 2/8/07, Chris Ridd wrote: You should definitely set version = 3 when you create the Net::LDAP object, as that will allow you to use UTF-8 later on. The default is to use LDAPv2, and you're at the mercy of your server vendor

Re: display userPassword command line

2006-12-01 Thread Chris Ridd
On 1/12/06 9:55, Quanah Gibson-Mount [EMAIL PROTECTED] wrote: --On Thursday, November 30, 2006 4:20 PM -0800 [EMAIL PROTECTED] wrote: Hello All, When i export a user's userPassword attribute from the command line using the ldapsearch tool, i get the encrypted password userPassword::

Re: List of Indexed Attributes

2006-12-01 Thread Chris Ridd
On 1/12/06 8:04, AM [EMAIL PROTECTED] wrote: Hi, Anybody know how to write perl/net::ldap script to get a list of all indexed attributes? Step 1 - find out from your server documentation if the server exposes that information to clients. Every server will do it differently, if at all. There

  1   2   3   >