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 doesn

RE: [EXTERNAL] Re: Net::LDAP not returning SEQUENCE data type

2021-12-17 Thread johnhirsch via perl-ldap
I’ll do that. Thanks! From: Chris Ridd Sent: Thursday, December 16, 2021 11:41 AM To: HIRSCH, JOHN Cc: perl-ldap@perl.org Subject: [EXTERNAL] Re: Net::LDAP not returning SEQUENCE data type On 15 Dec 2021, at 22:27, johnhirsch via perl-ldap mailto:perl-ldap@perl.org>> wrote: Hi

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 o

Re: Net::LDAP and contextCSN

2019-07-16 Thread Christian
Hello Strat, thank you for your reply. Am 15.07.19 um 23:46 schrieb Martin Fabiani-Reher: > Hello Christian, > > I don't know the exact syntax for ldapsearch because I haven't used it > for ages. > > filter => '*' indeed is no valid filter.  It is a bit like trying an SQL > command like SELECT

Re: Net::LDAP and contextCSN

2019-07-15 Thread Martin Fabiani-Reher
Hello Christian, I don't know the exact syntax for ldapsearch because I haven't used it for ages. filter => '*' indeed is no valid filter.  It is a bit like trying an SQL command like SELECT contextCSN FROM $table WHERE * If I remember correctly, you either need to omit the filter: $search

Re: Net::LDAP and contextCSN

2019-07-15 Thread Quanah Gibson-Mount
--On Monday, July 15, 2019 5:53 PM +0200 Christian wrote: Hi, could need some help. I want to do with Net::LDAP what ldapsearch is doing with: ldapsearch -x -LLL -s base contextCSN with Net::LDAP I am struggeling ... tried the following: $search = ldap->search( base => $BaseDn, scope => ''

RE: Net::LDAP::Entry - RFC

2018-01-09 Thread Burns, Victor M
5 PM To: perl-ldap@perl.org; Chris Ridd ; Burns, Victor M Subject: Re: Net::LDAP::Entry - RFC Hi, Am 2. Januar 2018 18:58:50 MEZ schrieb Chris Ridd : >IMO changing Net::LDAP::LDIF to be able to not wrap would be useful. Net::LDAP::LDIF supports that for a very long time. Excerpt from the

Re: Net::LDAP::Entry - RFC

2018-01-09 Thread Peter Marschall
Hi, Am 2. Januar 2018 18:58:50 MEZ schrieb Chris Ridd : >IMO changing Net::LDAP::LDIF to be able to not wrap would be useful. Net::LDAP::LDIF supports that for a very long time. Excerpt from the man page: wrap => 78 Number of columns where output line wrapping shall occur. Default is 78.

Re: Net::LDAP::Entry - RFC

2018-01-02 Thread Peter Marschall
Am 2. Januar 2018 18:58:50 MEZ schrieb 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 cla

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 Net::LDAP::Entry is 0.27 and is >

RE: Net::LDAP::Entry - RFC

2018-01-02 Thread Burns, Victor M
opt{wrap} ? ( wrap => $opt{wrap} ) : (); my $ldif = Net::LDAP::LDIF->new($fh, 'w', @wrap, change => $change); $ldif->write_entry($self); return $buffer; } Best Regards, Victor Burns -Original Message- From: Peter Marschall [mailto:pe...@adpm.de] Sent: Thursday, D

Re: Net::LDAP::Extension::Refresh doesn't understand responce from server

2017-12-28 Thread Peter Marschall
Hi, Am Donnerstag, 28. Dezember 2017, 13:58:10 CET schrieb Zeus Panchenko: > Peter Marschall wrote: > > Have you tried patching > > usr/local/lib/perl5/site_perl/Convert/ASN1/_decode.pm? Digging a bit deeper, I don't think Convert::ASN1 is the issue. The issue is indeed in Net::LDAP::Extension::

Re: Net::LDAP::Extension::Refresh doesn't understand responce from server

2017-12-28 Thread Zeus Panchenko
Peter Marschall wrote: > Have you tried patching usr/local/lib/perl5/site_perl/Convert/ASN1/_decode.pm? > Here's what I'd try as a first idea: not yet, will check it > > after setting dds-max-ttl to some big enough value, same code works well > Do I get it right, that only the error case (i.e.

Re: Net::LDAP::Entry - RFC

2017-12-28 Thread Peter Marschall
Hi Victor, Am Donnerstag, 27. Juli 2017, 13:42:13 CET schrieb Burns, Victor M via perl- ldap: > 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: Net::LDAP::Extension::Refresh doesn't understand responce from server

2017-12-28 Thread Peter Marschall
Hi Zeus, Am Dienstag, 26. Dezember 2017, 14:49:10 CET schrieb Zeus Panchenko: > while playing with refresh()/get_ttl() I found that > Net::LDAP::Extension::Refresh doesn't understand OpenLDAP server reply > in case when option dds-max-ttl is less than ttl I want to set with > refresh() > > if in

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 ); Yes, that’s defin

Re: (Net::LDAP) Automatically convert attributes into utf8 when writting

2015-08-31 Thread pe rl
Thank you for your information. Finally I added "uf8::encode" to all the attribs, so now it works. Converting our code (@_ and file i/o) into utf8 was an option, but I discarded it because we have a lot of files (our proyect is nearly a framework, not a few files), including modules that read t

Re: (Net::LDAP) Automatically convert attributes into utf8 when writting

2015-08-29 Thread Peter Marschall
Hi, On Tuesday, 25. August 2015 13:37:15 pe rl wrote: > They are not necessary when reading/searching in the ldap server, since > Net::LDAP already has a "raw" option in the constructor to automatically > encode/decode strings. It is working for us, and the only change required > has been to add t

Re: (Net::LDAP) Automatically convert attributes into utf8 when writting

2015-08-26 Thread pe rl
I will try to explain it clearer. Currently you can read utf8 atributes out of the box by using the "raW" option in the constructor: $ldap = Net::LDAP->new( $server, port => $port, raw => qr

Re: (Net::LDAP) Automatically convert attributes into utf8 when writting

2015-08-25 Thread pe rl
Thank you, I already knew utf8::encode() and utf8::decode(). They are not necessary when reading/searching in the ldap server, since Net::LDAP already has a "raw" option in the constructor to automatically encode/decode strings. It is working for us, and the only change required has been to add

Re: (Net::LDAP) Automatically convert attributes into utf8 when writting

2015-08-25 Thread Keutel, Jochen (mlists)
Hello, instead of patching Net::LDAP you should use utf8::encode() and utf8::decode() in your perl code. See http://perldoc.perl.org/5.10.1/utf8.html . Regards, Jochen. Am 25.08.2015 um 12:54 schrieb pe rl: > Hi, we are using an old version of Net::LDAP (0.39) in an old perl > installation (5

Re: Net::LDAP object inside a callback function

2015-03-30 Thread Chris Ridd
> On 30 Mar 2015, at 19:01, Téssio Fechine 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 making the > Ne

Re: Net::LDAP fails with latest ActiveState Perl, can be worked round by renoving INET6.pm

2014-04-18 Thread Peter Marschall
Hi, On Wednesday, 2. April 2014 18:38:43 k.br...@mail.bbk.ac.uk wrote: > Similar error to that described by Glen Tanner a few weeks ago. > > Recently installed a new PC with updated version of Perl:: > > D:\temp>perl -v > This is perl 5, version 16, subversion 3 (v5.16.3) built for > MSWin32-x64

Re: Net::LDAP Search Filter

2013-04-26 Thread Chris Ridd
On 25 Apr 2013, at 15:03, "Zachary, Carlton - Hoboken" 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

RE: Net::LDAP Search Filter

2013-04-25 Thread Zachary, Carlton - Hoboken
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 Search Filter Hi there, Carlton, The problem is that you are asking for employee types x

RE: Net::LDAP Search Filter

2013-04-25 Thread Zachary, Carlton - Hoboken
Thanks Graham. -Original Message- From: Graham Barr [mailto:gb...@pobox.com] Sent: Thursday, April 25, 2013 9:31 AM To: Zachary, Carlton - Hoboken Cc: perl-ldap@perl.org Subject: Re: Net::LDAP Search Filter On Apr 25, 2013, at 08:26 , "Zachary, Carlton - Hoboken" wrote: &

Re: Net::LDAP Search Filter

2013-04-25 Thread david . suarezdelis
Hi there, Carlton, The problem is that you are asking for employee types x and y, and assuming they cannot be of more than one type, this means the search will always be false. I am sure you are looking for entries of any type of objetclass and employee type x OR y: (& (objectclass=*) (| (empl

Re: Net::LDAP Search Filter

2013-04-25 Thread Graham Barr
On Apr 25, 2013, at 08:26 , "Zachary, Carlton - Hoboken" wrote: > Hello all, > > I am trying to run this search against my directory service with the > following filter and it returns nothing. > > (&(employeetype=x)(employeetype=y)(objectclass=*)) that is checking (employeetype=x) and (emp

Re: Net::LDAP::Class create entry with custom dn location

2012-10-12 Thread Peter Karman
On 10/12/12 3:23 PM, Vladimir Levijev wrote: Hi, When using NLC create() method, can I specify the dn? As I understand it gets created in base_dn which is specified in my custom package. But I need to specify a different dn at creation time. My users are at cn=foo,base_dn cn=bar,base_dn based

Re: Net::LDAP::Util not compatible with RFC4514

2012-09-21 Thread Peter Marschall
Hi, On Wednesday, 19. September 2012, Quanah Gibson-Mount wrote: > In playing with Net::LDAP::Util it became apparent that it is not compliant > with RFC4514, but instead complies with the older RFC2253. Specifically > where #'s in DNs are concerned. Currently it's expecting # followed by hex >

Re: Net::LDAP::Util not compatible with RFC4514

2012-09-20 Thread Peter Marschall
Hi Quanah, On Thursday, 20. September 2012, Quanah Gibson-Mount wrote: > --On Thursday, September 20, 2012 9:34 AM +0200 Peter Marschall > > > > Feedback is very welcome > > Thanks Peter! Should I look at this or perl-ldap 0.48? ;) At this _and_ perl-ldap 0.48 ;-) These changes are not part of

Re: Net::LDAP::Util not compatible with RFC4514

2012-09-20 Thread Quanah Gibson-Mount
--On Thursday, September 20, 2012 9:34 AM +0200 Peter Marschall wrote: Hi, On Wednesday, 19. September 2012, Quanah Gibson-Mount wrote: In playing with Net::LDAP::Util it became apparent that it is not compliant with RFC4514, but instead complies with the older RFC2253. Specifically where #'

Re: Net::LDAP::Util not compatible with RFC4514

2012-09-20 Thread Peter Marschall
Hi, On Wednesday, 19. September 2012, Quanah Gibson-Mount wrote: > In playing with Net::LDAP::Util it became apparent that it is not compliant > with RFC4514, but instead complies with the older RFC2253. Specifically > where #'s in DNs are concerned. Currently it's expecting # followed by hex >

Re: Net::LDAP update failure when using Authen::SASL GSSAPI authentication

2012-02-14 Thread Quanah Gibson-Mount
--On Monday, February 13, 2012 6:43 PM + John wrote: I know this is an old entry, but was this ever resolved? I'm seeing a similar issue doing an "add". It only occurs over SSL and in groups/entries larger than ~250 attributes. Add of an LDIF using an ldapmodify works fine over SSL, as d

Re: Net::LDAP update failure when using Authen::SASL GSSAPI authentication

2012-02-14 Thread John
John Perkins cs.wisc.edu> writes: > > On 11/05/2010 01:57 PM, John Perkins wrote: > > I've got a script here at our site to sync user data in our OpenLDAP > > server with a number of data sources. I've recently run across a > > problem when trying to add some UUID data to certain groups on ou

RE: Net::LDAP fails with later versions of IO::Socket::SSL [SEC=UNCLASSIFIED]

2012-01-23 Thread Quanah Gibson-Mount
--On Monday, November 07, 2011 9:49 AM +1100 "Hart, Matthew MR 2" wrote: UNCLASSIFIED Sweet, thanks Peter. I can't really pull from git at my workplace, so I'll wait for the next release on CPAN :) Thanks for all the work guys, it's a great module. Is this the same as

RE: Net::LDAP fails with later versions of IO::Socket::SSL [SEC=UNCLASSIFIED]

2011-11-06 Thread Hart, Matthew MR 2
4 November 2011 23:32 To: perl-ldap@perl.org Cc: Hart, Matthew MR 2 Subject: Re: Net::LDAP fails with later versions of IO::Socket::SSL [SEC=UNCLASSIFIED] Hi Matt, please have a look at the patches in * https://github.com/gbarr/perl-ldap/pull/3 * https://github.com/gbarr/perl-ldap/pull/4 on Graham&

Re: Net::LDAP fails with later versions of IO::Socket::SSL [SEC=UNCLASSIFIED]

2011-11-04 Thread Peter Marschall
Hi Matt, please have a look at the patches in * https://github.com/gbarr/perl-ldap/pull/3 * https://github.com/gbarr/perl-ldap/pull/4 on Graham's perl-ldap git repository. In addition to fixing the issue they should add a few other minor glitches as well as adding some new Controls. The former

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 sing

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

2011-08-11 Thread Mehmet
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 :) This definitely did the trick. -Mehmet On Thu, Aug 11, 2011 at 12:42 PM, Peter Karman wrote: > Mehmet wrote on 08/11/2011 10:54 AM: > > Hi everyone, >

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

2011-08-11 Thread Peter Karman
Mehmet wrote on 08/11/2011 10:54 AM: > Hi everyone, > > I am new to perl-ldap and like it very much, however I have a problem I > cannot solve by myself (or using google). > > I have some attributes with multiple values in the same entry, such as: > > description: abc > description: def > descri

RE: [Net::LDAP] Resetting AD passwords without SSL

2011-05-28 Thread Al Lilianstrom
al -- Al Lilianstrom CD/LSC/SOS/ES lilst...@fnal.gov > -Original Message- > From: Dan Cutler [mailto:dcut...@intelimedix.com] > Sent: Friday, May 27, 2011 10:57 AM > To: perl-ldap@perl.org; sparsons.bemidjist...@gmail.com > Subject: RE: [Net::LDAP] Resetting AD passw

RE: [Net::LDAP] Resetting AD passwords without SSL

2011-05-27 Thread Dan Cutler
: Peter Karman [mailto:pe...@peknet.com] Sent: Friday, May 27, 2011 10:12 AM To: perl-ldap@perl.org Subject: Re: [Net::LDAP] Resetting AD passwords without SSL Samuel Parsons wrote on 05/27/2011 09:07 AM: > I'm attempting to reset AD passwords without SSL as our AD server > admin does

Re: [Net::LDAP] Resetting AD passwords without SSL

2011-05-27 Thread Peter Karman
Samuel Parsons wrote on 05/27/2011 09:07 AM: > I'm attempting to reset AD passwords without SSL as our AD server > admin doesn't know how to enable SSL on the AD server. > > The link between the machine and the AD server is secure for other > reasons and so SSL is not necessary (at least from our

Re: Net::LDAP search of a DN

2011-05-18 Thread Chris Ridd
On 18 May 2011, at 18:45, Brian Gaber wrote: > This dn search of dn=cn=name,o=org works from a command line and returns all > the attributes of the dn: > > ldapsearch -h host -x -b "cn=name,o=org" > > However, this Net::LDAP does not return anything: > > $mesg = $ldap->search(base=>"cn=name,o

Re: Net::LDAP::Constant unexpectedly overwriting $_

2011-04-03 Thread Peter Marschall
Hi, On Tuesday, 29. March 2011, Marc Lehmann wrote: > al rule, in perl, when you use a global variable, you should save > and restore it (map, for This is already fixed in perl-ldap's repository at git://github.com/gbarr/perl-ldap.git Thanks Peter -- Peter Marschall pe...@adpm.de

Re: Net::LDAP update failure when using Authen::SASL GSSAPI authentication

2010-11-05 Thread John Perkins
On 11/05/2010 01:57 PM, John Perkins wrote: I've got a script here at our site to sync user data in our OpenLDAP server with a number of data sources. I've recently run across a problem when trying to add some UUID data to certain groups on our LDAP server. As a follow-up: We're using perl

Re: [Net::LDAP] Converting from UTF-8 to ASCII for gecos field.

2010-10-14 Thread Peter Karman
Prentice Bisbal wrote on 10/14/10 1:47 PM: > Greetings. > > Can anyone suggest a good way of converting a string from UTF-8 to IA5 > (ASCII) for the gecos attribute. For example, I have the hypotheical > user Ërïç Cärtmân, with a lot of accented characters in his name > converting his name to ASCI

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

2010-08-11 Thread rfransix
her method to decode the HASH? > > > > Net::LDAP::Search=HASH(0x1844ba4) > changetype: modify > replace: manager > Net::LDAP::Search=HASH(0x1844ba4) > changetype: modify > replace: manager > Net::LDAP::Search=HASH(0x1844ba4) > changetype: modify > replace: mana

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

2010-07-08 Thread rfransix
perl-ldap@perl.org Sent: Thursday, July 8, 2010 1:02:10 AM Subject: Re: NET::LDAP Search Works, pop_entry problematic #2 On 7 Jul 2010, at 22:47, rfran...@comcast.net wrote: > my $HOST = "1"; > my $ADMIN = "cn=me,DC=corp"; > my $PWD = "0"; > my $BAS

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

2010-07-07 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("$AD

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

2010-07-01 Thread Graham Barr
$ldap->search(...) will return a Net::LDAP::Search object, not a DN as you seem to be expecting. You can tell this from the way in which perl string-ifies the object to "Net::LDAP::Search=HASH(0x1844ba4)" $entry = $dn->pop_entry; will given you the first entry in the result set as a Net::LDAP::

Re: [Net::LDAP] Remove list of users from a group

2010-04-08 Thread Danny Burkland
On Thu, Apr 8, 2010 at 1:11 PM, Peter Karman wrote: > Danny Burkland wrote on 04/07/2010 06:49 PM: > > While this seems to work I am > > wondering if there is a better way to structure my script? Is it possible > to > > search a group's attributes for the user's entry and then some how store > >

Re: [Net::LDAP] Remove list of users from a group

2010-04-08 Thread Peter Karman
Danny Burkland wrote on 04/07/2010 06:49 PM: > While this seems to work I am > wondering if there is a better way to structure my script? Is it possible to > search a group's attributes for the user's entry and then some how store > that attribute's value as a scalar? I will happily post my current

Re: Net::LDAP

2010-03-29 Thread Chris Ridd
On 29 Mar 2010, at 14:06, Leilani Tubungbanua wrote: > Hi Mr. Barr, > > I have read your CPAN documentation for Net::LDAP. I do have few questions > whose answers I can not find in the documentation. Hopefully you are the > right person to ask these: > > 1. Using the Net::LDAP or rela

Re: Net::LDAP scheme() method

2010-03-09 Thread Graham Barr
On Mar 9, 2010, at 5:59 PM, Prentice Bisbal wrote: > Graham Barr wrote: >> On Mar 9, 2010, at 3:04 PM, Prentice Bisbal wrote: >>> # Connect to LDAP server >>> my $ldap = Net::LDAP->new(\...@ldap_servers, >>> onerror => 'die' >>> ) || die "C

Re: Net::LDAP scheme() method

2010-03-09 Thread Graham Barr
On Mar 9, 2010, at 3:04 PM, Prentice Bisbal wrote: > > # Connect to LDAP server > my $ldap = Net::LDAP->new(\...@ldap_servers, > onerror => 'die' > ) || die "Could not connect to LDAP servers.\n"; > > $connection_scheme = $ldap->schem

Re: [Net::LDAP] Re: Dumping Net::LDAP::Entry to a string

2010-02-16 Thread Quanah Gibson-Mount
--On Tuesday, February 16, 2010 8:02 PM -0600 Peter Karman wrote: Quanah Gibson-Mount wrote on 2/16/10 11:58 AM: --On Monday, February 15, 2010 2:21 PM -0600 Christopher Bongaarts wrote: Graham Barr wrote: On Feb 10, 2010, at 9:35 AM, Christopher Bongaarts wrote: Graham Barr wrote: Als

Re: [Net::LDAP] Re: Dumping Net::LDAP::Entry to a string

2010-02-16 Thread Peter Karman
Quanah Gibson-Mount wrote on 2/16/10 11:58 AM: > --On Monday, February 15, 2010 2:21 PM -0600 Christopher Bongaarts > wrote: > >> Graham Barr wrote: >>> On Feb 10, 2010, at 9:35 AM, Christopher Bongaarts wrote: Graham Barr wrote: > Also, anything that can dump to a filehandle can du

Re: [Net::LDAP] Re: How To Set AD Password

2010-01-01 Thread Peter Karman
Christopher A Bongaarts wrote on 12/31/09 1:44 PM: In the immortal words of Sheahan, John: My script is successfully creating AD and Exchange accounts but I'm having trouble setting the password. I am setting these attributes: 'userPassword' => 'password',

Re: [Net::LDAP] RE: Creating AD account and Exchange Account

2009-12-29 Thread Peter Karman
Sheahan, John wrote on 12/29/2009 03:13 PM: > One question I have is, when I run the script and it creates the user in AD, > I still have to manually go in and right click on the new user that was > created and enable itis there a way to do this automatically through the > script? > You p

Re: [Net::LDAP] Re: [Net::LDAP] LDAP and AD sync

2009-12-11 Thread Prashanth Sundaram
Thanks everyone for the feedback. I am new to scripting and unix world, and learning my way through. I want only one way sync from AD --> LDAP(389-ds). The other way has to only generate a list of users and the AD will approve/reject those. There is no password sync as it is handled by PAM. I trie

Re: [Net::LDAP] Re: [Net::LDAP] LDAP and AD sync

2009-12-10 Thread Peter Karman
Peter Karman wrote on 12/10/09 5:48 PM: Prashanth Sundaram wrote on 12/10/09 4:59 PM: Folks, I am a n00b to perl scripting and need help to start building my own. I am currently working on a project where the LDAP(389-ds) and Active Directory are always in sync. I have a very minimal set

Re: [Net::LDAP] LDAP and AD sync

2009-12-10 Thread Peter Karman
Prashanth Sundaram wrote on 12/10/09 4:59 PM: Folks, I am a n00b to perl scripting and need help to start building my own. I am currently working on a project where the LDAP(389-ds) and Active Directory are always in sync. I have a very minimal set of attributes and conditions to keep them i

Re: Net::LDAP::Intermediate::SyncInfo

2009-07-08 Thread Dieter Kluenter
Mathieu Parent writes: > Hi, > > > On Tue, Jul 7, 2009 at 6:05 PM, Dieter Kluenter wrote: >> Hi, [...] > The example included in the doc is very simple and doesn't cover all > cases. For a working example (refreshOnly) see "sub searchCallback()" > in module Kolab::LDAP::Backend::syncrepl in Kola

Re: Net::LDAP::Intermediate::SyncInfo

2009-07-08 Thread Mathieu Parent
Hi, On Tue, Jul 7, 2009 at 6:05 PM, Dieter Kluenter wrote: > Hi, > I want to set up perl based replication system. For this I just copied > perldoc Net::LDAP::Intermediate::SyncInfo into my file, modified host > name and search base. This script throws following error: > > die...@rubin:> perl syn

Re: Net::LDAP->new connection timed out

2009-07-07 Thread Dieter Kluenter
Hi, "noemie.petig...@bluewin.ch" writes: > Hi All, > > I'm a beginner in Unix and LDAP and I have to create a LDAP directory > to store information. I have a ldap server on a machine which works (I > can make queries, adding entries on the LDAP, ...) Now, I try to > connect another machine to th

Re: Net::LDAP::FilterMatch issue

2009-05-13 Thread Graham Barr
On May 13, 2009, at 11:56 AM, Peter Marschall wrote: Hi Graham, Adam is right. There were issues in FilterMatch.pm Please find attached a patch (created with git format-patch) Thanks for the patches. I have applied them and they are now in the next branch http://github.com/gbarr/perl-ldap/c

Re: [Net::LDAP] Using UTF-8 in DN

2009-05-13 Thread Peter Karman
Dmitry Katsubo wrote on 05/13/2009 07:51 AM: > I also suffer from a limitation, that "email" attribute may only contain > ASCII chars. For example, I cannot set: > > mail: Rudolf Bünger > > If storing UTF8 in this attribute is not supported, maybe one can give > an advice, how to convert it to

Re: Net::LDAP with ldapi?

2008-12-14 Thread Quanah Gibson-Mount
--On Sunday, December 14, 2008 3:21 PM +0100 Dieter Kluenter wrote: Quanah Gibson-Mount writes: define the path to socket as ldap URL, if this doesn't work, check the socket permissions, it has to be 777. Yeah, I already got this working on the other thread I sent with my subscribed addre

Re: Net::LDAP with ldapi?

2008-12-14 Thread Dieter Kluenter
Quanah Gibson-Mount writes: > I'm trying to make an ldapi:/// connection using Net::LDAP, and it > doesn't seem to work right. > > First, I verified that my ldapi connection works just fine using the > command line tools: > > [zim...@freelancer tmp]$ ldapsearch -x -H ldapi:/// > # extended LDIF >

Re: Net::LDAP with ldapi?

2008-12-12 Thread Graham Barr
On Dec 12, 2008, at 1:35 PM, Quanah Gibson-Mount wrote: --On Friday, December 12, 2008 1:27 PM -0600 Graham Barr > wrote: On Dec 12, 2008, at 1:15 PM, Quanah Gibson-Mount wrote: I'm trying to make an ldapi:/// connection using Net::LDAP, and it doesn't seem to work right. Net::LDAP is go

Re: Net::LDAP with ldapi?

2008-12-12 Thread Quanah Gibson-Mount
--On Friday, December 12, 2008 1:27 PM -0600 Graham Barr wrote: On Dec 12, 2008, at 1:15 PM, Quanah Gibson-Mount wrote: I'm trying to make an ldapi:/// connection using Net::LDAP, and it doesn't seem to work right. Net::LDAP is going to default to connect to /var/run/ldapi if that is not

Re: Net::LDAP with ldapi?

2008-12-12 Thread Graham Barr
On Dec 12, 2008, at 1:15 PM, Quanah Gibson-Mount wrote: I'm trying to make an ldapi:/// connection using Net::LDAP, and it doesn't seem to work right. Net::LDAP is going to default to connect to /var/run/ldapi if that is not where your socket is the you can either set $ENV{LDAPI_SOCK} or p

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

2008-07-09 Thread Manuel Vacelet
On Tue, Jul 8, 2008 at 6:45 PM, Christopher A Bongaarts <[EMAIL PROTECTED]> wrote: > ... > The backslash in front of @servers makes a reference to the list. Hello Chris*, Thank you for you answers, it's now clear to me. My Perl is now a bit more fluent thanks to both of you. Cheers, Manuel

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 = ['ldap://ldap5.example.com','ldap://ld

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

2008-07-08 Thread Christopher A Bongaarts
In the immortal words of Manuel Vacelet: > 4 my @servers = > ['ldap://ldap5.example.com','ldap://ldap-fallback-eu.example.com','ldap://ldap.example.com','ldap://ldap2.example.com']; > 5 my $ldap = Net::LDAP->new(@servers) or die "Unable to connect to > ldap server: [EMAIL PROTECTED]"; > > But, if

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

2008-07-01 Thread Miller, Don C.
CTED]> Cc: perl-ldap@perl.org Sent: Tue Jul 01 17:55:10 2008 Subject: RE: Net::LDAP :: Admin limit on AD (Work around) Thanks Justin that works :D Just a question that pop up in my mind, can we have admin limits determined by user, that's have admin limit based on user. e.g : If you bin

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

2008-07-01 Thread Vartak, Yash V
: perl-ldap@perl.org Subject: Re: Net::LDAP :: Admin limit on AD (Work around) AD does support paged results. This code is basically cut from an example I found, and I use this structure: my $page = Net::LDAP::Control::Paged->new( size => 100 ); my $cookie; my $count = 0; while (

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

2008-07-01 Thread Justin Alcorn
It's not security. It's there to make sure that unintended queries don't bog down the server. On Tue, Jul 1, 2008 at 3:53 PM, Kurt Zeilenga <[EMAIL PROTECTED]> wrote: > > On Jun 30, 2008, at 11:14 PM, Vartak, Yash V wrote: > >> But due to Admin limits on Active Directory the number of entries >>

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

2008-07-01 Thread Kurt Zeilenga
On Jun 30, 2008, at 11:14 PM, Vartak, Yash V wrote: But due to Admin limits on Active Directory the number of entries returned are restricted to 1000, due to security reasons it's not possible to increase admin limit on AD. What security reason would that be? Especially given the server appa

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

2008-07-01 Thread Justin Alcorn
AD does support paged results. This code is basically cut from an example I found, and I use this structure: my $page = Net::LDAP::Control::Paged->new( size => 100 ); my $cookie; my $count = 0; while (1) { $mesg = $ldap->search( base => "DC=example,DC=com",

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

2008-07-01 Thread Chris Ridd
On 1 Jul 2008, at 07:52, Vartak, Yash V wrote: Hey Chris I have tried that but it returns exactly no that a page size is set to, If you set the page size to a value greater than admin limit it would return the amount of entries to admin limit. logically I need the flow need to go this way

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

2008-06-30 Thread Vartak, Yash V
OU .. but not a good way to code , :( Regards, Yash -Original Message- From: Chris Ridd [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2008 2:26 PM To: Vartak, Yash V Cc: perl-ldap@perl.org Subject: Re: Net::LDAP :: Admin limit on AD (Work around) On 1 Jul 2008, at 07:14, Vartak

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

2008-06-30 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 res

Re: Net::LDAP::LDIF Options wrap

2008-03-21 Thread Peter Marschall
Hi Hugo, On Sunday, 16. March 2008, Hugo Connery wrote: > I am using Net::LDAP::LDIF to dump that entries received by calls > to Net::LDAP::search and wish to disable wrapping (so that I can > easily modify output using awk). > > I'm running Centos 5.1 with Perl 5.8.8. The perldoc Net::LDAP page

Re: Net::LDAP on SELinux Problem

2008-01-19 Thread Peter Marschall
Hi mattnovi, On Saturday, 19. January 2008, Graham Barr wrote: > On Jan 17, 2008, at 10:14 PM, [EMAIL PROTECTED] wrote: > > It seems that Net::LDAP is not correctly using the loopback interface > > when being used to connect to an LDAP server on the same machine. > > This cases SElinux to think it

Re: Net::LDAP on SELinux Problem

2008-01-18 Thread Graham Barr
On Jan 17, 2008, at 10:14 PM, [EMAIL PROTECTED] wrote: It seems that Net::LDAP is not correctly using the loopback interface when being used to connect to an LDAP server on the same machine. This cases SElinux to think it is attempting to make an off-box connection. SELinux has restrictions on we

RE: Net::LDAP::LDIF usage

2008-01-08 Thread Webb, Andy
ot;,encode=>'base64',change=>'1'); -Original Message- From: Martin Fabiani [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 08, 2008 2:28 AM To: [EMAIL PROTECTED]; Perl-LDAP Mailing List Subject: Re: Net::LDAP::LDIF usage Hi, the problem seems to be that you want to wr

Re: Net::LDAP::LDIF usage

2008-01-08 Thread Martin Fabiani
Hi, the problem seems to be that you want to write a change ldif format, not a full one? It looks as the constructor parameter change => 1 does this, but I haven't yet tested it: my $ldif = Net::LDAP::LDIF->new( file => ..., change => 1 ); My experience with ldifde comes from Win2000, and I

Re: Net::LDAP question

2007-09-07 Thread Paul
On Aug 27, 5:49 pm, [EMAIL PROTECTED] (Rick Edwards) 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 hash

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

Re: Net::Ldap

2007-07-12 Thread Andrej Ricnik-Bay
On 7/13/07, Muhammad Azam Akram <[EMAIL PROTECTED]> wrote: Hi I installed net::ldap from cpan. Then I run the >perl Makefile.PL It went fine... Did all so say that all requirements were met? Personally I find it a good idea to have CPAN resolve things for me (most of the time they're spot on)

Re: Net::LDAP::Extra help

2007-06-23 Thread Peter Marschall
Hi, On Monday, 18. June 2007 18:12, [EMAIL PROTECTED] wrote: > I'm trying to add a method to Net::LDAP (through Net::LDAP::Extra) so I > can ask for the host IP at a later time. I'm using Perl 5.8.4 and > Net::LDAP 0.32 (from Net/LDAP.pm) on a GNU/Linux 3.1 Debian box. If you upgrade to perl-ldap

Net::LDAP::Reference and Re: Net::LDAP::Extra help

2007-06-19 Thread david . suarezdelis
Hi there, Graham Barr dixit: > > @ISA = qw(Exporter); > > > > @EXPORT_OK = qw( &host_ip ); > > Change that to @EXPORT instead of @EXPORT_OK > > Graham. Done and it's working... I thought I had tried that one, though... Thanks! It will go to Net::LDAP::Extra::introspection where I'll have some

Re: Net::LDAP::Extra help

2007-06-18 Thread Graham Barr
On Jun 18, 2007, at 11:12 AM, [EMAIL PROTECTED] wrote: Greetings, I'm trying to add a method to Net::LDAP (through Net::LDAP::Extra) so I can ask for the host IP at a later time. I'm using Perl 5.8.4 and Net::LDAP 0.32 (from Net/LDAP.pm) on a GNU/Linux 3.1 Debian box. This is my test code:

Re: Net::LDAP::LDIF patch

2007-05-06 Thread Gergely Sánta
Chris Ridd wrote: > On 4/5/07 6:34, "Webb, Andy" <[EMAIL PROTECTED]> wrote: > >> So, couldn't you just always request in the search that the DN or CN be >> returned as one of the attributes? If the entry is found, you're going >> to get the DN of the entry as the record identifier, then getting t

RE: Net::LDAP::LDIF patch

2007-05-06 Thread Quanah Gibson-Mount
--On Sunday, May 06, 2007 7:07 PM -0500 "Webb, Andy" <[EMAIL PROTECTED]> wrote: Fair enough. Does the entry really exist if it doesn't have "required" attributes? ;) I think the point is that one might find the DN, but not have access to the entry because of ACLs. --Quanah -- Quanah Gib

RE: Net::LDAP::LDIF patch

2007-05-06 Thread Webb, Andy
Fair enough. Does the entry really exist if it doesn't have "required" attributes? ;) -Original Message- From: Kurt Zeilenga [mailto:[EMAIL PROTECTED] Sent: Saturday, May 05, 2007 5:18 AM To: Webb, Andy Cc: Chris Ridd; Gergely Santa; perl-ldap Subject: Re: Net::LDAP::LDIF

Re: Net::LDAP::LDIF patch

2007-05-05 Thread Kurt Zeilenga
On May 4, 2007, at 6:34 PM, Webb, Andy wrote: So, couldn't you just always request in the search that the DN or CN be returned as one of the attributes? Regardless of how many attributes one requests, the entry result still may contain no attributes. -- Kurt

  1   2   3   4   >