| 1 | #!/usr/bin/env perl | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | # PODNAME: ldapd.pl | ||
| 7 | # ABSTRACT: Script to invoke the LDAP server. | ||
| 8 | |||
| 9 | our $VERSION = '0.0.19'; # VERSION | ||
| 10 | |||
| 11 | use Net::LDAP::SimpleServer; | ||
| 12 | |||
| 13 | my $server = | ||
| 14 | @ARGV | ||
| 15 | ? Net::LDAP::SimpleServer->new( {@ARGV} ) | ||
| 16 | : Net::LDAP::SimpleServer->new; | ||
| 17 | |||
| 18 | $server->run(); | ||
| 19 | |||
| 20 | __END__ |