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