$ldap = Net::LDAP->new( 'ldap.umich.edu' ); # bind to a directory with dn and password $ldap->bind( 'cn=root, o=University of Michigan, c=us', password => 'secret' ) or die "Unable to bind $!\n";