Added Net::LDAP to the distribution for easier installs.
This commit is contained in:
parent
f51b335d74
commit
223c014813
47 changed files with 15060 additions and 2 deletions
34
lib/Net/LDAP/Extension.pm
Normal file
34
lib/Net/LDAP/Extension.pm
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
# Copyright (c) 1998-2000 Graham Barr <gbarr@pobox.com>. All rights reserved.
|
||||
# This program is free software; you can redistribute it and/or
|
||||
# modify it under the same terms as Perl itself.
|
||||
|
||||
package Net::LDAP::Extension;
|
||||
|
||||
use vars qw(@ISA $VERSION);
|
||||
|
||||
@ISA = qw(Net::LDAP::Message);
|
||||
$VERSION = "1.01";
|
||||
|
||||
#fetch the response name
|
||||
sub response_name {
|
||||
my $self = shift;
|
||||
|
||||
$self->sync unless exists $self->{Code};
|
||||
|
||||
exists $self->{responseName}
|
||||
? $self->{responseName}
|
||||
: undef;
|
||||
}
|
||||
|
||||
# fetch the response.
|
||||
sub response {
|
||||
my $self = shift;
|
||||
|
||||
$self->sync unless exists $self->{Code};
|
||||
|
||||
exists $self->{response}
|
||||
? $self->{response}
|
||||
: undef;
|
||||
}
|
||||
|
||||
1;
|
||||
Loading…
Add table
Add a link
Reference in a new issue