"Fossies" - the Fresh Open Source Software Archive

Member "perl-ldap-0.66/lib/Net/LDAPI.pm" (8 Apr 2015, 1625 Bytes) of package /linux/privat/perl-ldap-0.66.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Perl source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "LDAPI.pm" see the Fossies "Dox" file reference documentation.

    1 # Copyright (c) 2003-2004 Derrik Pates <dpates@dsdk12.net> and Graham Barr
    2 # <gbarr@pobox.com>. All rights reserved.  This program is free
    3 # software; you can redistribute it and/or modify it under the same
    4 # terms as Perl itself.
    5 
    6 package Net::LDAPI;
    7 
    8 use strict;
    9 use Net::LDAP;
   10 
   11 our @ISA = qw(Net::LDAP);
   12 our $VERSION = '0.04';
   13 
   14 sub new {
   15   shift->SUPER::new(@_, scheme => 'ldapi');
   16 }
   17 
   18 1;
   19 
   20 __END__
   21 
   22 =head1 NAME
   23 
   24 Net::LDAPI - use LDAP over a UNIX domain socket
   25 
   26 =head1 SYNOPSIS
   27 
   28  use Net::LDAPI;
   29 
   30  $ldapi = Net::LDAPI->new('/var/run/ldapi');
   31 
   32  # alternate way
   33  use Net::LDAP;
   34 
   35  $ldapi = Net::LDAP->new('ldapi://');
   36 
   37 =head1 DESCRIPTION
   38 
   39 Communicate using the LDAP protocol to a directory server using a UNIX
   40 domain socket. This mechanism is non-standard, UNIX-specific and not
   41 widely supported.
   42 
   43 All the normal C<Net::LDAP> methods can be used with a C<Net::LDAPI>
   44 object; see L<Net::LDAP> for details.
   45 
   46 =head1 CONSTRUCTOR
   47 
   48 =over 4
   49 
   50 =item new ( [SOCKPATH] )
   51 
   52 Create a new connection. SOCKPATH can optionally be specified, to
   53 specify the location of the UNIX domain socket to connect to.
   54 
   55 If SOCKPATH is not given, the environment variable C<LDAPI_SOCK> is evaluated,
   56 and if that does not exist, the value C</var/run/ldapi> is used.
   57 
   58 See L<Net::LDAP/new> for further details.
   59 
   60 =back
   61 
   62 =head1 SEE ALSO
   63 
   64 L<Net::LDAP>,
   65 L<IO::Socket::UNIX>
   66 
   67 =head1 BUGS
   68 
   69 None yet.
   70 
   71 =head1 AUTHOR
   72 
   73 Derrik Pates E<lt>dpates@dsdk12.netE<gt>
   74 
   75 =head1 COPYRIGHT
   76 
   77 Copyright (c) 2003-2004, Derrik Pates and Graham Barr. All
   78 rights reserved. This library is free software; you can redistribute
   79 it and/or modify it under the same terms as Perl itself.
   80 
   81 =cut