Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 45 commits
  • 89 files changed
  • 0 comments
  • 1 contributor
Sep 21, 2012
Peter Marschall marschap Util.pm: extend ldap_explode_dn() for RFC 4514
Extend ldap_explode_dn() to also parse DNs that conform to RFC 4514.

This way ldap_explode_dn() is rather lax in checking what it allows or not,
but tries to make sense of as much DNs as possible.

Changes:
  - only spaces ignored around attribute value instead of \s
  - NUL (U+0000) not allowed unquoted in attribute value
  - sharp/square/octothorpe (U+0023) allowed unquoted unless at first position
  - equal sign (U+003D) allowed unquoted in attribute value
  - space (U+0020) allowed to be quoted by \\ in a quoted pair

Test cases adapted accordingly.
2943868
Sep 28, 2012
Peter Marschall marschap LDAP.pm: don't try to set errors on undefined objects
When disconnecting, make sure the set_error() method is called only
on defined objects

Author: Howard Wilkinson <howard@orb-it.net>

Originally sent in via private mail to Graham Barr:

 Date: 20.06.2012 13:06
 From: Howard Wilkinson <howard@orb-it.net>
 To: gbarr <gbarr@pobox.com>
 Reply to: howard@cohtech.com

 Graham,

 [...]

 However, the DESTROY is still being called and killing the error
 messages - so this could do with being added to the package.

 --- LDAP.pm~    2012-06-20 12:02:36.000000000 +0100
 +++ LDAP.pm     2012-06-20 12:03:01.000000000 +0100
 @@ -902,6 +902,7 @@

   if (my $msgs = delete $self->{net_ldap_mesg}) {
     foreach my $mesg (values %$msgs) {
 +     next unless (defined $mesg);
       $mesg->set_error($err, $etxt);
     }
   }

 [...]

 Howard.
0e5156b
Peter Marschall marschap LDAPI.pm: document environment variable LDAPI_SOCK and default 3b170b8
Peter Marschall marschap LDAP.pm: canonicalize host name with ldapi://
Having the host name canonicalized allows one to call start_tls()
with option verify => 'require', which does hostname checking.

Confirmed to work for Quanah.
6fdb90e
Oct 03, 2012
Peter Marschall marschap Net/LDAP/Extra/AD.pm: new, convenience functions for AD 08ae450
Peter Marschall marschap Extra.pm: refer to Net::LDAP::Extra::AD in man page 8da9113
Peter Marschall marschap AD.pm: add methods is_AD & is_ADAM
Add methods to determine whether an LDAP server is an AD,
so that the AD specific methods can be used.
b23ae5f
Oct 06, 2012
Peter Marschall marschap FAQ.pod: update, mention Net::LDAP::Extra::AD ed1907f
Peter Marschall marschap LDAP.pod: consistency: use 'attrs' everywhere 2426f38
Peter Marschall marschap FAQ.pm: add examples for Active Directory
Add examples for MS Active Directory
- how to create account and groups
- how to search for accounts & groups using the
  LDAP_MATCHING_RULE_BIT_AND matching rule
829ac83
Peter Marschall marschap Release 0.49 dd3f7ec
Oct 07, 2012
Peter Marschall marschap SSL server tests: re-generate key.pem & cert.pem
Besides re-generating the server key & certificate,
also add a script + OpenSSL config file that can
re-generate the key & certificate.
1ad1b85
Oct 14, 2012
Peter Marschall marschap t/common.pl: fix argument order in calls to skip() 0c411a6
Peter Marschall marschap Makefile.PL: overhaul
- depend on perl 5.8.1 (because of Unicode changes)
- get rid of braces
- harmonize indentation
- merge resources stanzas into one
- add bugtracker resource
- remove useless include of ExtUtils::AutoInstall
- require Test::More instead of trying to include it
- recommend optional dependencies
- use arguments for WriteAll
91e0b02
Peter Marschall marschap t/06constant.t: fix numbering glitch cf16d5d
Oct 28, 2012
Peter Marschall marschap add constant LDAP_PROXY_AUTHZ_FAILURE
The increased version number of Net::LDAP::Util also fixes
the re-opened CPAN bug #79763.
a1fa214
Peter Marschall marschap t/common.pl: get rid of local compare function
Use File::Compare's compare instead.
Adapt t/05dsml.t, which used it too, accordingly.
e703ccb
Peter Marschall marschap global overhaul: replace 'use vars' by 'our'. c66c56c
Peter Marschall marschap global overhaul: declare @ISA and $VERSION as package-local 1fb4555
Peter Marschall marschap LDAP.pod: fix display of =item inet6 2a91116
Nov 11, 2012
Peter Marschall marschap t/common.pl: allow client() to take options for Net::LDAP
Start with support for debug, inet4 & inet6.
b9c7644
Peter Marschall marschap t/40connect.t: new, test for IPv4 / IPv6 connections 3377a1a
Peter Marschall marschap tests: rename t/5X*.t -> t/4(X+1)*.t 991c5bb
Peter Marschall marschap tests: rename data/5X*.ldif -> data/4X*.ldif
Adapt names of data files for tests to the renamed test files.
Update tests accordingly.
08df9c2
Peter Marschall marschap FAQ.pod: small fixes
* typo: Ho -> How
* =item -> =head2
9227b3a
Peter Marschall marschap FilterMatch.pm: correct implementation of some rules
* booleanMatch
* integerBitAndMatch
* integerBitOrMatch
4eefb23
Peter Marschall marschap FilterMatch.pm: avoid warning if no matching rule is found
Plus some small changes to harmonize coding style.
b6b5fcb
Peter Marschall marschap FilterMatch.pm: update matching rules known in OpenLDAP 37c702c
Peter Marschall marschap FilterMatch.pm: support matching rules for extensibleMatch 107b462
Peter Marschall marschap FilterMatch.pm: improve distinguishedNameMatch c8d3ae8
Peter Marschall marschap tests: convert to Test::More 5b98f6e
Peter Marschall marschap tests: overhaul t/03schema.t, update data/schema.in 207e362
Peter Marschall marschap t/47ipc.t: add TLS tests 2fcbe3b
Peter Marschall marschap tests: harmonize data/42-in.ldif to data/41-in.ldif
Adapt data/42-cmp.ldif accordingly to not fail any tests
965ae28
Peter Marschall marschap FilterMatch.pm: improve match for phone/fax numbers 6c7263a
Peter Marschall marschap FilterMatch.pm: fix objectIdentifierMatch
It needs to be able to match not only OIDs but also e.g. names of
objectclasses - the latter independent of case.
4a288cc
Peter Marschall marschap FilterMatch.pm: fix mapping of greaterOrEqual
greaterOrEqual matches are ordering matches, and no equality matches.
Fix the mapping table accordingly.
637ee68
Peter Marschall marschap t/60cancel.t: new, tests for Net::LDAP::Extension::Cancel 2b5ed2c
Peter Marschall marschap t/70sortctrl.t: convert to "regular" test with server
Adapt slapd config file accordingly to laod the required overlay.
dc3c562
Peter Marschall marschap t/07filtermatch.t: new, tests for Net::LDAP::FilterMatch 5017a02
Peter Marschall marschap t/70sortctrl.t: add multi-attribute testcase b65f50a
Peter Marschall marschap FilterMatch.pm: fix _cis_approxMatch
_cis_approxMatch works on caseIgoreStrings, and should thus ignore case.

Add test cases to t/07filtermatch.t
3448bab
Nov 17, 2012
Peter Marschall marschap tests: minimize errors/warnings on Test::More <= 0.8.0
Call note and explain as functions [i.e. with braces],
hide them behind if ($ENV{TEST_VERBOSE}).
4b0173f
Peter Marschall marschap Merge pull request #13 from marschap/next
changes in preparation of next release
f5b9f20
Peter Marschall marschap Release 0.50_01 9286665