Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: verifification of LDAP credentials

by zejames (Hermit)
on Dec 03, 2004 at 12:35 UTC ( #412098=note: print w/replies, xml ) Need Help??


in reply to verifification of LDAP credentials

Have a look at Net::LDAP, and bind

Inspired from the manual page :

$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' ); die "Invalid credential" if $mesg->is_error;

--
zejames

Replies are listed 'Best First'.
Re^2: verifification of LDAP credentials
by kamesh3183 (Beadle) on Dec 03, 2004 at 13:05 UTC
    thanks for quick response..
    As i don't have any knowledge of Ldap and NET::Ldap documentation some what confusing to me..iwant to have some clarifications on the code you provided..
    $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' ); die "Invalid credential" if $mesg->is_error;
    can u provide some details on bind method arguments.. suppose my username is 'kamesh'
    my password is 'secret'
    my ldap server name is 'ldap.server.com
    thanks
    kamesh

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://412098]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2020-10-23 12:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (238 votes). Check out past polls.

    Notices?