File: Extension.pm

package info (click to toggle)
libnet-ldap-perl 1%3A0.6500%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 1,660 kB
  • ctags: 731
  • sloc: perl: 15,059; sh: 76; makefile: 5
file content (32 lines) | stat: -rw-r--r-- 668 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Copyright (c) 1998-2004 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;

our @ISA = qw(Net::LDAP::Message);
our $VERSION = '1.04';

#fetch the response name
sub response_name {
  my $self = shift;

  $self->sync  unless exists $self->{resultCode};

  exists $self->{responseName}
    ? $self->{responseName}
    : undef;
}

# fetch the response value
sub response {
  my $self = shift;

  $self->sync  unless exists $self->{resultCode};

  exists $self->{responseValue}
    ? $self->{responseValue}
    : undef;
}

1;