in reply to Querying Active Directory using Perl
Yes to both. See Net::LDAP::FAQ/Net::LDAP::Examples.