+
=head1 Introduction
This is a sample Perl module for the OpenLDAP server slapd.
package SampleLDAP;
+use POSIX;
+
sub new
{
my $class = shift;
my $this = {};
bless $this, $class;
-
+ print STDERR "Here in new\n";
+ print STDERR "Posix Var " . BUFSIZ . " and " . FILENAME_MAX . "\n";
return $this;
}
{
my $this = shift;
my( $filterStr, $sizeLim, $timeLim, $attrOnly, @attrs ) = @_;
-
+ print STDERR "====$filterStr====\n";
$filterStr =~ s/\(|\)//g;
$filterStr =~ s/=/: /;
my ( $dn ) = @_;
+ print STDERR "XXXXXX $dn XXXXXXX\n";
delete $this->{$dn};
}
my $this = shift;
my ( @args ) = @_;
-
- return 1;
+ local $, = " - ";
+ print STDERR @args;
+ print STDERR "\n";
+ return 0;
}
1;