Yes to both. See Net::LDAP::FAQ/Net::LDAP::Examples.
In reply to Re: Querying Active Directory using Perl by marto in thread Querying Active Directory using Perl by sumeetgrover