basic support for LDAP/Microsoft Active Directory authentication

Hi,

Here's my changes to add (very basic) support for LDAP/Microsoft's Active Directory authentication.

Hope this help.