Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Small fixes - fixed copyright date - lost common sense - some cleanup in useless comments - added ldapd.pl script - changed option name from 'ldap_data' to 'data_file' - changed server basedir to {home}/.ldapsimple - log file goes into {basedir}/server.log by default, with no additional directory level - changed default configuration file to {basedir}/server.conf - added option 'allow_anon' to control whether the server accepts anonymous binds or not Improved tests - added ldif file with multiple entries for testing - changed server log path in all tests to /tmp/ldapserver.log - renamed test files - fixed t/03-param.t -> t/13-param.t -- more tests -- better test logic (functions server_ok() and server_nok()) -- added test names - fixing t/04-bind.t -> t/14-bind.t -- replace 'use constant' with variables -- improved test messages - test for unsupported authentication mechanism - refactored common test code to t/lib/Helper.pm SimpleServer.pm - adding Net::Server to @isa, rather than assigning it - using variables rather than constants - only creates a store if one is not provided ProtocolHandler - improved invokation style for the constructor - now everything goes inside the hash reference - explicitly exporting the symbols from Net::LDAP::Constant - improved error mesages - added option 'allow_anon' to control whether to accept anonymous binds Tidy Work still in progress ... Signed-off-by: Alexei Znamensky <russoz@cpan.org>
- Loading branch information
Showing
17 changed files
with
514 additions
and
352 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/env perl | ||
|
||
use strict; | ||
use warnings; | ||
|
||
# PODNAME: ldapd.pl | ||
# ABSTRACT: Script to invoke the LDAP server. | ||
|
||
# VERSION | ||
|
||
use Net::LDAP::SimpleServer; | ||
|
||
my $server = | ||
@ARGV | ||
? Net::LDAP::SimpleServer->new( {@ARGV} ) | ||
: Net::LDAP::SimpleServer->new; | ||
|
||
$server->run(); | ||
|
||
__END__ | ||
=head1 SYNOPSIS | ||
host:~ # ldapd.pl | ||
=head1 DESCRIPTION | ||
This script simply instantiates and executes a L<Net::LDAP::SimpleServer> | ||
server. | ||
=cut | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
version: 1 | ||
|
||
dn: CN=John Doe,OU=Marketing,DC=Company,DC=com | ||
objectClass: top | ||
objectClass: person | ||
objectClass: organizationalPerson | ||
objectClass: user | ||
cn: John Doe | ||
description: Consultant - Company.com | ||
displayName: Joe Doe | ||
distinguishedName: CN=John Doe,OU=Marketing,DC=Company,DC=com | ||
givenName: John | ||
manager: CN=Jack Puppetmeister,OU=Marketing,DC=Company,DC=com | ||
name: John Doe | ||
sn: Doe | ||
|
||
dn: CN=Sarah Lee,OU=Marketing,DC=Company,DC=com | ||
objectClass: top | ||
objectClass: person | ||
objectClass: organizationalPerson | ||
objectClass: user | ||
cn: Sarah Lee | ||
description: Consultant - Company.com | ||
displayName: Sarah Lee | ||
distinguishedName: CN=Sarah Lee,OU=Marketing,DC=Company,DC=com | ||
givenName: Sarah | ||
manager: CN=Jack Puppetmeister,OU=Marketing,DC=Company,DC=com | ||
name: Sarah Lee | ||
sn: Lee | ||
|
||
dn: CN=Robert Sponge,OU=Marketing,DC=Company,DC=com | ||
objectClass: top | ||
objectClass: person | ||
objectClass: organizationalPerson | ||
objectClass: user | ||
cn: Robert Sponge | ||
description: Consultant - Company.com | ||
displayName: Bob Sponge | ||
distinguishedName: CN=Robert Sponge,OU=Marketing,DC=Company,DC=com | ||
givenName: Robert | ||
manager: CN=John Doe,OU=Marketing,DC=Company,DC=com | ||
name: Robert Sponge | ||
sn: Sponge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.