Net::LDAP

Lightweight Directory Access Protocol
Download

Net::LDAP Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Graham Barr
  • Publisher web site:
  • http://search.cpan.org/~gbarr/

Net::LDAP Tags


Net::LDAP Description

Lightweight Directory Access Protocol Net::LDAP is the Lightweight Directory Access Protocol (LDAP) Perl module.SYNOPSIS use Net::LDAP; $ldap = Net::LDAP->new( 'ldap.bigfoot.com' ) or die "$@"; $mesg = $ldap->bind ; # an anonymous bind $mesg = $ldap->search( # perform a search base => "c=US", filter => "(&(sn=Barr) (o=Texas Instruments))" ); $mesg->code && die $mesg->error; foreach $entry ($mesg->entries) { $entry->dump; } $mesg = $ldap->unbind; # take down session $ldap = Net::LDAP->new( 'ldap.umich.edu' ); # bind to a directory with dn and password $mesg = $ldap->bind( 'cn=root, o=University of Michigan, c=us', password => 'secret' ); $result = $ldap->add( 'cn=Barbara Jensen, o=University of Michigan, c=US', attr => , 'sn' => 'Jensen', 'mail' => 'b.jensen@umich.edu', 'objectclass' => , ] ); $result->code && warn "failed to add entry: ", $result->error ; $mesg = $ldap->unbind; # take down sessionNet::LDAP is a collection of modules that implements a LDAP services API for Perl programs. The module may be used to search directories or perform maintenance functions such as adding, deleting or modifying entries.This document assumes that the reader has some knowledge of the LDAP protocol. Requirements: · Perl


Net::LDAP Related Software