Released perl-ldap 0.68

2021-01-03 Thread Peter Marschall
accordingly. Please find a short log of all the changes below. Have fun Peter 0.68 -- Sun Jan 3 17:58:18 CET 2021 Enhancements * Control/NoOp.pm: new * Control/Subentries.pm: new * Constant.pm: add tags to allow exporting groups of constants * Constant.pm: add Active Directory Control & Exten

Released perl-ldap 0.67 [Christmas edition]

2020-12-26 Thread Peter Marschall
erry Christmas Peter 0.67 -- Sat Dec 26 14:50:55 CEST 2020 Enhancements * Makefile.PL: update author & bugtracker * LDIF.pm: support controls when reading * Control/TreeDelete.pm: new * Entry.pm: new option 'nooptions' for get_value() * various typo fixes Bug Fixes * LDAP.pm: do not p

Re: Hello | LDAP module installed but not working

2020-01-12 Thread Peter Marschall
to. Was able to reproduce it on a working installation of perl-ldap: $ perl -MNet::LDAP -e 'my $ld = Net::LDAP->new("ldaps://unknown") or die($@);' Name or service not known at -e line 1, line 755. Maybe a typo in the URL? Best PEter -- Peter Marschall [email protected]

Released perl-ldap 0.66

2019-04-16 Thread Peter Marschall
. Please find a short log of all the changes below. Thanks to all those who sent bug reports & patches. Have fun Peter 0.66 -- Tue Apr 16 11:23:55 CEST 2019 Enhancements * Entry.pm: accept more options in ldif() * inc/: refresh install tools * contrib/ldifsort: new option -h * documentation extens

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

2018-07-01 Thread Peter Marschall
t to the method? > > > >> The LDAP modifydn operation is already defined to move all the entry's > >> children. > > > > I believe, it'd be great to have something like that in Net::LDAP too … > > Well that’s up to Peter, but I would say that no

Re: Net::LDAP::Entry - RFC

2018-01-09 Thread Peter Marschall
is 78. Setting it to 40 or lower inhibits wrapping. Best Peter -- Peter Marschall

Re: Net::LDAP::Entry - RFC

2018-01-02 Thread Peter Marschall
This method supports everything you need with an appropriately opened LDIF object * The changes in https://github.com/marschap/perl-ldap/tree/next I expect this to become the next perl-ldap release. Please test the changes in Net::LDAP::Entry. Improvement ideas welcome. Especially if they hinder the user from making stupid mistakes like calling LDIF(version=>1) Peter -- Peter Marschall

updates to my github repository

2017-12-28 Thread Peter Marschall
e check them give them a shake and report bugs, improvements, ... and of course also, what you want to see in future versions of perl-ldap. Best PEter -- Peter Marschall [email protected]

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

Re: Net::LDAP::Entry - RFC

2017-12-28 Thread Peter Marschall
do yourself a favour and update to a recent version. While not directly fulfilling your request, the newer versions have an extended Net::LDAP::Entry->update() method, that allows using an LDIF file as a target to write to. Best regards PEter -- Peter Marschall [email protected]

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

2017-12-28 Thread Peter Marschall
l > 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. setting the ttl to a higher value than allowed) fails, while the correct case (setting the ttl to a value within the bounds allowed) works? In any case, can you p

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

2015-08-29 Thread Peter Marschall
code('UTF-8' ,$_) for @ARGV; should be sufficient. You may also have a look at the 'utf8::all' package that does a lot of the above for you automatically. Please read the perlunicode manual page for more detailed information. Best PEter -- Peter Marschall [email protected]

Re: Doubts about schema2ad.pl

2015-08-09 Thread Peter Marschall
Hi, On Wednesday, 5. August 2015 10:50:49 Gessy wrote: > Hello Peter > I was trying to use the schema2ad.pl but not understand a thing. The perl > script expects the ldap scheme is in an LDIF format? I tried it with a > scheme that use the openldap and he reports me the following me

Re: How to bind to AD?

2015-06-15 Thread Peter Karman
$msg->code, "Message: " . $msg->error_name, " :" . $msg->error_text, "MessageID: " . $msg->mesg_id, "DN: " . $msg->dn, ) . "\n"; return 0; } -- Peter Karman . http://peknet.com/ . [email protected]

Released perl-ldap 0.65

2015-04-06 Thread Peter Marschall
/releases has been updated accordingly. Please find a short log of all the changes below. Thanks to * Troy Loveday for his bug report / patch. -- Peter Marschall [email protected] 0.65 -- Mon Apr 6 19:43:37 CEST 2015 Enhancements: * t/74matchedvalues.t: more tests * {ASN,Extension}.pm: update

Re: Bug in Perl LDAP FAQ

2014-10-03 Thread Peter Marschall
ndex-*" : 'member' ] Thanks for reporting the issue. The fix will be in the next release of perl-ldap. Best Peter -- Peter Marschall [email protected]

perl-ldap v0.64 released

2014-06-19 Thread Peter Marschall
. Please find a short log of all the changes below. Thanks to * Thomas Guevin * Jim Toth * Jitka Plesnikova for their bug reports / patches. Enjoy the new release! Peter -- Peter Marschall [email protected] 0.64 -- Thu Jun 19 17:48:08 CEST 2014 Bug Fixes: * LDAP.pm: set SSL_cipher_list correctly * RT

Re: bug in LDAP 0.63

2014-06-17 Thread Peter Marschall
$arg->{capath} ? $arg->{capath} : '', > SSL_key_file=> $clientcert ? $clientkey : undef, > > > Please address in 0.64 if possible. Patched in private repo. Will be included in 0.64. Thanks -- Peter Marschall [email protected]

Re: entry->changetype("modify") returns "No attributes to update at ..."

2014-06-14 Thread Peter Marschall
gt; [...] > > When I include the "$cur_entry->changetype(modify);" line, the script > returns: > > No attributes to update at ./ldap-update.pl line 23, line 751. Net::LDAP::Entry's changetype() method clears all previous changes when called with an argument. Solution is simple: set the changetype first. Best Peter -- Peter Marschall [email protected]

perl-ldap 0.63

2014-06-01 Thread Peter Marschall
anges below. The most noteworthy ones are IMHO: * use default cyphers of the underlying SSL library instead of setting SSL_ciphers to ALL by default * write controls to LDIF files (more complete RFC support) Thanks to * Petr Písař * Hanno Hecker for their contributions Best Peter -- Peter Mars

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

2014-04-18 Thread Peter Marschall
t::INET6 when the former one is installed. If IO::Socket::IP does not suffer the problems that recent versions of IO::Socket::INET6 seem to have in Windows, then everything should work as before including IPv6 support. Best PEter -- Peter Marschall [email protected]

perl-ldap 0.62 is out

2014-04-06 Thread Peter Marschall
Hi, perl-ldap 0.62 is out! Get it from CPAN or GitHub: http://search.cpan.org/dist/perl-ldap/ https://metacpan.org/release/perl-ldap https://github.com/perl-ldap/perl-ldap The changes are relatively minor, mostly to keep CPAN testers happy ;-) Enjoy Peter 0.62 -- Sun

New perl-ldap release 0.61

2014-03-29 Thread Peter Marschall
til.pm: fix corner cases in time conversion functions Best Peter -- Peter Marschall [email protected]

Get perl-ldap 0.60 while it's hot

2014-03-08 Thread Peter Marschall
repository https://github.com/perl-ldap/perl-ldap has been updated too. Have fun Peter 0.60 -- Sat Mar 8 14:00:02 CET 2014 Enhancements: * IO::Socket::IP support - if installed in version 0.20 or higher, prefer it over IO::Socket::INET* - use IO::Socket::INET* as fallback if it isn&#

Re: IO::Socket::IP for perl-ldap?

2014-03-05 Thread Peter Marschall
Hi, On Wednesday, 5. March 2014 11:32:52 Paul LeoNerd Evans wrote: > On Wed, 05 Mar 2014 11:31:29 +0100 Peter Marschall wrote: > > Paul, > > from the mail above, I get it that Timeout is working in > > IO::Socket::IP. Can you confirm? > > Additionally, may I as

Re: IO::Socket::IP for perl-ldap?

2014-03-05 Thread Peter Marschall
Hi, On Wednesday, 5. March 2014 10:17:12 Michiel Beijen wrote: > On Tue, Mar 4, 2014 at 7:56 PM, Peter Marschall wrote: > > But there's a downside too: > > With IO::Socket::IP, the option Timeout to Net::LDAP->new() will be > > ignored. > I asked Paul (cc) ab

IO::Socket::IP for perl-ldap?

2014-03-04 Thread Peter Marschall
IO::Socket::INET6 What's your opinion? Best PEter -- Peter Marschall [email protected]

perl-ldap 0.59 is out

2014-03-04 Thread Peter Marschall
accordingly. Have fun Peter 0.59 -- Tue Mar 4 16:21:15 CET 2014 Bug Fixes: * Handle SASL security layers correctly on rebind Thanks Ben Morrow * Control/Paged.pm: fix typo in POD sample code Enhancements: * t/60cancel.t: add explanation about potential cause of failure * LDAP.pm: accessor method sasl

Released perl-ldap 0.58

2013-12-23 Thread Peter Marschall
has been updated accordingly. Enjoy Peter 0.58 -- Mon Dec 23 17:35:53 CET 2013 Bug Fixes: * RT#91210: Paged.pm: fix example code * RT#90459: LDAP.pm: make LDAPS work after LDAP+start_tls * RT#91177: AD.pm: fix change_ADpassword() * RT#88792: Constant.pm: add LDAP_CONTROL_SORTRESPONSE Enhancements

New release 0.57 of perl-ldap!

2013-07-21 Thread Peter Marschall
pulling from GitHub, the repository https://github.com/perl-ldap/perl-ldap has been updated accordingly. Have fun Peter 0.57 -- Sun Jul 21 18:35:12 CEST 2013 COMPATIBILITY WARNING: The bug fix "LDAP.pm: new parameter bind(sasl_host => SASLHOST)" is an incompatible change that m

perl-ldap 0.56 released

2013-06-08 Thread Peter Marschall
https://github.com/perl-ldap/perl-ldap has been updated accordingly. Have fun with it Peter 0.56 -- Sat Jun 8 13:14:47 CEST 2013 Bug Fixes: * RT#85941: LDAP.pm: new method data_ready() * RT#84886: Control/Relax.pm: fix typo in documentation Enhancements: * FAQ.pod: add more directory servers * t

Re: Reading LDIF files containing controls

2013-05-11 Thread Peter Marschall
ively impact your patch? Which one should then prevail? Did you at least report the bug to IBM? Because their non-standards compliant tool is the cause of the whole discussion. Best Peter -- Peter Marschall [email protected]

Re: Reading LDIF files containing controls

2013-05-11 Thread Peter Marschall
ir tool (even if they > >might not react). Maybe they are not even aware of the issue. > > If I put the bug report in, will you incorporate the patch? :) No. [I do not want perl-ldap to look like the easier target ;-]] My hope is IBM will fix their bug and adhere to well-established standards. If they do, you can throw away the preprocessor step. Best PEter -- Peter Marschall [email protected]

Re: Reading LDIF files containing controls

2013-05-11 Thread Peter Marschall
p -vi ^control: > RFC-CONFORMING-FILE [the first command is required to unwrap the wrapped lines] Alternatively you may add a changetype: add line after each unwrapped dn: line. > >Instead, please get the dump utility fixed so that it adheres to the RFC. > > I don't

Re: Reading LDIF files containing controls

2013-05-11 Thread Peter Marschall
Instead, please get the dump utility fixed so that it adheres to the RFC. Best Peter PS: Please don't top-post -- Peter Marschall [email protected]

perl-ldap 0.55 released

2013-04-23 Thread Peter Marschall
has been updated accordingly. Enjoy Peter Bug Fixes: RT#84410: PersistentSearch.pm: use $message->pop_entry() in example RT#84774: Constant.pm: unbreak Novell eDirectory constants Enhancements: Control/ManageDsaIT.pm: update documentation & simplify a bit Control/Relax.pm: new Constant.

Re: Released perl-ldap 0.54

2013-03-29 Thread Peter Marschall
ities. Net::LDAP exposes the socket it uses via the socket() method. Can't this be used to implement the things on the application side? Best PEter -- Peter Marschall [email protected]

Released perl-ldap 0.54

2013-03-29 Thread Peter Marschall
r use with Novell eDirectory The detailed changes are listed at the end of this email. Of course, the GitHub repository https://github.com/perl-ldap/perl-ldap has been updated accordingly. Enjoy Peter 0.54 -- Fri Mar 29 12:07:40 CET 2013 Bug Fixes: * RT#73202: LDIF.pm: Base64-encode values ending

Re: "Download" link incorrect

2013-02-02 Thread Peter Marschall
Hi Quanah, On Monday, 28. January 2013, Quanah Gibson-Mount wrote: > Just to note, the "Download" link on the top right hand side of the page > has been pointing to the wrong release for a while. It still points to > 0.49. Fixed Thanks for the heads-up Peter -- Peter Marschall [email protected]

perl-ldap 0.53 released

2013-01-26 Thread Peter Marschall
://github.com/perl-ldap/perl-ldap has been updated accordingly. Have fun Peter 0.53 -- Sat Jan 26 18:23:35 CET 2013 Bug Fixes: * various clarifications & fixes in documentation * t/7{1pre,2post}read.t: don't use deprecated methods Enhancements: * Filter.pm: new method negate() * Uti

Re: perl-ldap-0.52 breaks Amavis

2013-01-26 Thread Peter Marschall
use IPv6". This is reflected in the documentation. I see two options for amavis to fix it: * raise the required perl-ldap version to 0.46 and remvoe "inet6 => 1" from the constructor fo theNet::LDAP object * make the addition of inet6 => 1 dependent on perl-ldap's version Best PEter -- Peter Marschall [email protected]

Re: Why is there no converting function available in Net::LDAPto deal with GUID values from AD?

2013-01-19 Thread Peter Marschall
ficates, CRLs, JPEG photos, ... . This also applies to GUID values from AD. For most of those attribute typess there are Perl modules available that do a really good job. Did you check with CPAN? http://search.cpan.org/search?query=GUID If none of them suits your needs, you can always take the code you found on the web. Best Peter -- Peter Marschall [email protected]

Re: search entry() index

2013-01-19 Thread Peter Marschall
is the correct > interpretation? A short script gives the answer: it is zero-based. A fix of the Net::LDAP::Search man page will be in the next release. Best Peter -- Peter Marschall [email protected]

New Year & a new version of perl-ldap

2013-01-01 Thread Peter Marschall
GitHub repository has been updated too. Enjoy Peter -- Peter Marschall [email protected] 0.52 -- Tue Jan 1 13:54:22 CET 2013 Bug Fixes: * fix PreRead & PostRead controls * AD.pm: fix typo in documentation Enhancements: * add tests for PreRead & PostRead controls * FAQ.pm: exa

Re: Fwd: BUG: Net-LDAP 0.51 is not working with Active Perl 5.16 with Socket 2.007

2012-12-26 Thread Peter Marschall
t reproduce the issue with Strawberry Perl 5.16.2.1 (with Socket 2.006) when connecting to a non-AD LDAP server. So: * Can you try reproding the issue using another LDAP server (preferably another type. i.e. no AD)? * Can you try reproducing the issue using the above version of Strawberry Perl (http://strawberryperl.com/)? * Can you double check your implementation? I assume you did it for yourself, and did not use pre-compiled images from somewhere on the net? Please report back. Thanks PEter -- Peter Marschall [email protected]

Re: I/O Error using Net LDAP

2012-12-25 Thread Peter Marschall
e with the > help of NYTProf but without success. Any help or pointers in this regard > is highly appreciated. You may use perl-ldap's "debug" flag. Best PEter

Released perl-ldap 0.51

2012-12-01 Thread Peter Marschall
filters. Of course, the GitHub repository https://github.com/perl-ldap/perl-ldap has been updated accordingly. Enjoy Peter -- Peter Marschall [email protected] 0.51 -- Sat Dec 1 14:37:35 CET 2012 Bug Fixes: * RT#81380: in Filter.pm unescape hexpairs and ( ) \ * only * tests: compare files in "

Released perl-ldap 0.50

2012-11-24 Thread Peter Marschall
ourse, the GitHub repository https://github.com/perl-ldap/perl-ldap has been updated accordingly. Enjoy Peter -- Peter Marschall [email protected] 0.50 -- Sat Nov 24 13:03:45 CET 2012 Bug Fixes: * t/07filtermatch.t: use core module Text::Soundex instead of String::Approx * Message.pm: fix regression

Developer release perl-ldap 0.50_01

2012-11-17 Thread Peter Marschall
report any bugs you find, so that 0.50 can be perfect ;-) Enjoy Peter 0.50_01 -- Sat Nov 17 18:05:15 CET 2012 Bug Fixes: * RT#80482 fix display of =item inet6 in LDAP.pod * RT#66753: new key & cert for SSL server tests * RT#79763 Net::LDAP::Util's $VERSION increased * t/06constant.t:

Re: messageID is undefined when using unbind()

2012-11-17 Thread Peter Marschall
75166b9db97a8c97e20281490e491a In my (short & preliminary) tests the patch fixed the issue. Please report whether it does the trick for you too. Best Peter -- Peter Marschall [email protected]

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

2012-10-12 Thread Peter Karman
based on a specific user detail. Assuming you are using NLC::User::AD, then no. However, it looks to me like you could override setup_for_write() in your User subclass and specify whatever $cn you wanted, which would then be prepended to the $base_dn in action_for_create(). -- Peter Karman

Re: Wrapper module for Active Directory

2012-10-12 Thread Peter Karman
:LDAP prefix in the name? Isn't there already a Net::LDAP::Extra::AD on CPAN? Have you looked at Net::LDAP::Class? There's AD-specific User and Group classes there too. -- Peter Karman . http://peknet.com/ . [email protected]

Released perl-ldap 0.49

2012-10-06 Thread Peter Marschall
/perl-ldap has been updated accordingly. Enjoy Peter -- Peter Marschall [email protected] 0.49 -- Sat Oct 5 10:00:30 CEST 2012 Bug Fixes: * RT#79763 extend ldap_explode_dn() for RFC 4514 * RT#77291 canonicalize host name with ldapi:// * LDAP.pm: don't try to set errors on undefined ob

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

2012-09-21 Thread Peter Marschall
tive Con's: - might accept DN's that are not conforming to any of the RFCs (but canonical_dn will make them confiorming to both) Which of the alternatives do you prefer? Best PEter -- Peter Marschall [email protected]

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

Released perl-ldap 0.48

2012-09-20 Thread Peter Marschall
has been updated accordingly. Enjoy Peter 0.48 -- Thu Sep 20 10:55:20 CEST 2012 Bug Fixes: * Util.pm: fix bug in escape_dn_value() * t/55ssl.t: fix typos in output text * LDIF.pm: with encode => 'canonical', do mbcescape DNs * the usual typo fixes in docs Enhancements: * ASN.pm:

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

2012-09-20 Thread Peter Marschall
updated yet) Another issue was found in escape_dn_value() which got fixed in https://github.com/marschap/perl- ldap/commit/11ea6b176a0e728d10cc3219cbb84fd8018df5a6 Feedback is very welcome Best regards Peter -- Peter Marschall [email protected]

Released perl-ldap 0.47

2012-09-16 Thread Peter Marschall
Hi all, perl-ldap 0.47 has been released to CPAN. http://search.cpan.org/dist/perl- ldap/ The changes included are listed at the end of this email. Of course, the GitHub repository https://github.com/perl-ldap/perl-ldap has been updated accordingly. Enjoy Peter 0.47 -- Sun Sep 16 12:00:30 CEST

Re: Question

2012-09-06 Thread Peter Marschall
tandardized, but widely used, SSL-encrypted connection to port 636 My recommendation: 1) Net::LDAP + start_tls 2) Net::LDAPS [of 1) is not supproted by the server] 3) Net::LDAP without TLS only for anonymous access Best Peter -- Peter Marschall [email protected]

Released perl-ldap 0.46

2012-09-05 Thread Peter Marschall
, the GitHub repository https://github.com/perl-ldap/perl-ldap has been updated accordingly. Sorry for the fuss Peter 0.46 -- Wed Sep 5 18:09:00 CEST 2012 Bug Fixes * LDAP.pm: unbreak - make done a real sub * Message.pm: fix typo, i.e. add forgotten ';' Enhancements: * FAQ.pod: up

Release of perl-ldap 0.45

2012-09-05 Thread Peter Marschall
Hi all, perl-ldap 0.45 has been released to CPAN http://search.cpan.org/dist/perl- ldap/ The changes included are listed at the end of this email. Of course, the GitHub repository https://github.com/perl-ldap/perl-ldap has been updated accordingly. Enjoy Peter 0.45 -- Wed Sep 5 11:20:46 CEST

Re: How Change Boolean Attribute LDAP

2012-06-03 Thread Peter Marschall
it may be set, and then use this value. As a side note: If I remember the RFC correctly, Boolen attributes are a bit special, as the false value is given implicitly, i.e. by the absence of the attribute. [might not apply to ADAM & Co - I've seen other LDAP servers that allowed booeanAttribute=FALSE too] Best PEter -- Peter Marschall [email protected]

Re: Problem in Net::LDAP::FilterMatch?

2012-04-22 Thread Peter Marschall
On Sunday, 22. April 2012, Alexei Znamensky wrote: > Hi Peter, > > On 22 April 2012 15:10, Peter Marschall wrote: > > [...] > > In that case, why does Net::LDAP::Filter constructor accepts such filters > as argument? Shouldn't it moan that this is illegal? It b

Re: Problem in Net::LDAP::FilterMatch?

2012-04-22 Thread Peter Marschall
al filters. > [...] > Am I missing something here? The filters using DN would fail on a standard LDAP server too. Net::LDAP::FilterMatch behaves correctly. Best PEter -- Peter Marschall [email protected]

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

2011-11-04 Thread Peter Marschall
ormer one is already included in the next branch of the perl-ldap repo. For ther latter I'm still hoping that Graham will do the same, and after that realease a new version. It would be cool you reported feedback on the mailing list Peter On Wednesday, 2. November 2011, Hart, Matthew

fixes & new features for perl-ldap/next

2011-10-02 Thread Peter Marschall
oc updates then and with this update and the new controls & extensions, shouldn't this make a nice new 0.44? Best Peter -- Peter Marschall [email protected]

Re: critical fixes for perl-ldap 0.43

2011-09-08 Thread Peter Marschall
Hi, On Thursday, 8. September 2011, Graham Barr wrote: > On Sep 7, 2011, at 09:26 , Peter Marschall wrote: > > * 0.43 has a serious regression: commit 041d540 broke start_tls > > completely > > > > and led to warnings being generated at every encrypted connectio

Re: critical fixes for perl-ldap 0.43

2011-09-07 Thread Peter Marschall
x that or is that another problem? A) Please keep your mail on the list! B) Please do not top-post! C) To answer your question: These fixes are completely unrelated to the problem you have. Hint: compare the dates of your issues and when the regresion was introduced. Peter

critical fixes for perl-ldap 0.43

2011-09-07 Thread Peter Marschall
n * extended documentation for Pre-Read & Post-Read controls As bonus: * Assertion Control implemented * new control LDAP_CONTROL_PERMISSIVEMODIFY Thanks Peter -- Peter Marschall [email protected]

Re: Why is this not working?

2011-09-05 Thread Peter Marschall
s: * the attributetype 'name' has matching rules for EQUALITY & SUBSTR only * 'cn' is derived from 'name' No luck in this case, sorry! Best Peter PS: It is possible that some LDAP server implementations implement extensions on the matching rules that are not

Re: Release 0.43 (was: Release 0.42)

2011-09-04 Thread Peter Marschall
uot;available" & "explicitly" ;-) Best regards Peter -- Peter Marschall [email protected]

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

2011-08-11 Thread Peter Karman
ntries) { for my $attr ($entry->attributes) { if ($attr eq 'description') { printf("%s -> %s\n", $attr, join(", ", $entry->get_value($attr)) ); } } } -- Peter Karman . http://peknet.com/ . [email protected]

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

2011-07-27 Thread Peter Marschall
o be > escaped > > I think exporting _escape as escape_ldap_filter is the best approach and > users should use that as they build their filters What about using the documented functions in Net::LDAP::Util ? * escape_filter_value() * unescape_filter_value() And for DNs the equivalents *

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

2011-05-27 Thread Peter Karman
=50924 > > Sam > This is how I set the password in AD: http://search.cpan.org/~karman/Net-LDAP-Class-0.26/lib/Net/LDAP/Class/User/AD.pm#password([plain_password]) read the source for the password() method. IIRC, SSL or TLS was not required, but binding in the initial LDAP connection with a u

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 [email protected]

patch correcting a few typos in Net::LDAP::Entry.pod

2011-01-09 Thread Peter Marschall
Hi, the attached patch fixes a few typos in Net::LDAP::Entry.pod Please consider it for inclusion into the next version of perl-ldap. Best Peter -- Peter Marschall [email protected] From fb4418175d436e598e72e4a2fc7d185a40c8e378 Mon Sep 17 00:00:00 2001 From: Peter Marschall Date: Fri, 2 Jul 2010

Re: LDIF file instead of updating directory

2011-01-09 Thread Peter Marschall
eter too. It would be great if this patch would make it into the next release of perl-ldap. Best regards Peter -- Peter Marschall [email protected] From bce3842056339ebdbbaaebd46857b13eadc68759 Mon Sep 17 00:00:00 2001 From: Peter Marschall Date: Sun, 9 Jan 2011 19:47:55 +0100 Subject: [PATCH] exte

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

2010-10-14 Thread Peter Karman
ot;? > use Search::Tools::Transliterate; my $ascifier = Search::Tools::Transliterate->new( ebit => 0 ); my $gecos = $ascifier->convert($gecos); -- Peter Karman . http://peknet.com/ . [email protected]

Re: Remove list of users from a group

2010-04-08 Thread Peter Karman
on and method calls. The typical Perl idiom looks like: my $value = $thing->dosomething(@args) or die "dosomthing failed: " . $thing->error; That assumes that dosomething returns false on error and has an error() method but you get the idea. -- Peter Karman . http://peknet.com/ . [email protected]

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

2010-04-08 Thread Peter Karman
lar? I will happily post my current code if > requested. Thanks again! If you want specific feedback, posting your code is a good step. You might want to look at Net::LDAP::Class for other ways to achieve your task. Even if you don't use the module, you can see example code for searching and

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

2010-02-16 Thread Peter Karman
will not mind using an old version of Net::LDAP >>> IMO. > > I disagree with this statement. ;) RHEL4, for example, ships with perl > 5.8.5, and remains one of the most widely deployed Linux distributions > in the corporate environment. I didn't hear the OP referring to 5.8

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

2010-01-01 Thread Peter Karman
he list archives, in Net::LDAP::Class::User::AD on CPAN. Look at the source for the password() method and the private methods for encoding/decoding the string. -- Peter Karman . http://peknet.com/ . [email protected]

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

2009-12-29 Thread Peter Karman
for details on userAccountControl. # basically: # 512 - normal active account requiring password # 514 - normal disabled account requiring password # 544 - system active account - no password required # 546 - system disabled account - no password required (default) -- Peter Karman . http://pek

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
. Net::LDAP::Class should make most if not all of those requirements pretty easy to implement. It was written to ease keeping a rdbms, LDAP and AD all in sync. -- Peter Karman . http://peknet.com/ . [email protected]

Re: Creating an entry to add or modify values

2009-05-14 Thread Peter Marschall
ally set to 'add' ;-). > my $entry = Net::LDAP::Entry->new('DN'); # 'add' is default changetype > $entry->add('givenName' => $1); # only for addingg > $entry->changetype('modify'); > $entry->replace('mail' =&

Re: Fwd: Net::LDAP::FilterMatch issue

2009-05-13 Thread Peter Marschall
nt-in-_-cis-exact-_.patch the issue at hand * 0004-FilterMatch.pm-correct-of-args-in-function-declar.patch fix # of args in function declarations/definitions Please add them to your repo. Thanks in advance Peter -- Peter Marschall [email protected] From 64194a7d46cc5dd665678346c42e80a2918eae3

Re: Using UTF-8 in DN

2009-05-13 Thread Peter Marschall
why. The > only reason why The reason for the failure is easy to see, once you decode the base64-encoded DN in your example: Кацубо Владимир,cn=persons,cn=centurion This is simply no legal DN (Hint: it lacks the attribute name in the RDN). Regards Peter -- Peter Marschall [email protected]

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

2009-05-13 Thread Peter Karman
UTF8; my $ascifier = Search::Tools::Transliterate->new( ebit => 0 ); my $ascii= $ascifier->convert( to_utf8( $my_email ) ); -- Peter Karman . [email protected] . http://peknet.com/

Re: managing AD users through Net::LDAP

2008-10-07 Thread Peter Karman
we have 100s of OrgUnits). I actually have a Net::LDAP::Class-derived class for OrgUnit and each User class uses a OrgUnit class as its primary group. I think the $work approach succeeds because of our particular security requirements. I hope that Net::LDAP::Class::*::AD can also work for folks imple

Re: after upgrade: glibc detected *** /usr/bin/perl: double free or corruption

2008-10-03 Thread Peter Daum
quot;) So: what's the big difference between just assigning a value and calling s/// ? Is there anything else that shouldn't be done on a tied hash? Regards, Peter

Re: after upgrade: glibc detected *** /usr/bin/perl: double free or corruption

2008-10-03 Thread Peter Karman
Peter Daum wrote on 10/03/2008 07:35 AM: > Peter Daum wrote: >> I recently upgraded a system (as far as perl is concerned from 5.8.8 >> to 5.10.0). Afterwards I ran into a mysterious problem. I could >> eventually >> find a workaround, but still don't rea

Re: after upgrade: glibc detected *** /usr/bin/perl: double free or corruption

2008-10-03 Thread Peter Daum
Peter Daum wrote: I recently upgraded a system (as far as perl is concerned from 5.8.8 to 5.10.0). Afterwards I ran into a mysterious problem. I could eventually > find a workaround, but still don't really understand, what is going on. After the upgrade, a perl program wouldn'

Re: PasswordPolicy control and SetPassword extension

2008-09-19 Thread Peter Marschall
Hi, On Friday, 19. September 2008, Graham Barr wrote: > I will apply thins change, then cut a new release this weekend. Please find attached another fix which IMHO should go into the next release as well. Dunno if it isimportant: patch is against origin/next. Regards Peter -- Pe

Re: Perl Script Needed To Create The Home Drectories.

2008-08-19 Thread Peter Karman
y_list_of_rollnos) { my $path = dir( $base, $rollno ); $path->mkpath(1); chown $path, $rollno or die "can't chown $path $rollno: $!"; # ^^ probably needs to run as root to work } and next time, ask on the right list for this kind of thing. This is not an LDAP question. -- Peter Karman . [EMAIL PROTECTED] . http://peknet.com/

Re: Help with Active Directory interaction

2008-08-13 Thread Peter Karman
re you get the accurate epoch value for a date in the future. E.g.: my $win_time = ( $datetime_in_future->epoch * 1000 ) + 11644524000; -- Peter Karman . http://peknet.com/ . [EMAIL PROTECTED]

Re: Help with Active Directory interaction

2008-08-13 Thread Peter Karman
On 08/13/2008 10:20 AM, Barrett, John wrote: > You might want to check your variable names for consistency - $first vs. > $firstname > > > #!/usr/bin/perl > use strict; # get in the habit. > use Net::LDAP; > use Unicode::Map8; > -- Peter Karman .

Re: Help with Active Directory interaction

2008-08-12 Thread Peter Karman
nally. my $user = MyUser->new( username => $uid, ldap => $ldap, password => $secret ); $user->create; -- Peter Karman . [EMAIL PROTECTED] . http://peknet.com/

Re: Help with Active Directory interaction

2008-08-12 Thread Peter Karman
gt; "&(sAMAccountName=*)" ); foreach my $user (@users) { foreach my $attr (@{ $user->attributes }) { printf( "%s : %s\n", $attr, $user->$attr || '' ); } } -- Peter Karman . [EMAIL PROTECTED] . http://peknet.com/

announce: Net::LDAP::Class

2008-08-01 Thread Peter Karman
my $job where I need to manage both Active Directory and OpenLDAP servers, and synchronize both with a standard RDBMS. Comments, criticisms (nicely worded), bug reports, all welcome. cheers, pek -- Peter Karman . [EMAIL PROTECTED] . http://peknet.com/

  1   2   3   4   >