The Hard Parts#
Often the hard part of connecting to
Microsoft Active Directory using LDAP is
Determining the [FDN of the user|Determining the FDN] to login with.
If you know the samAccountName of the user you can find it using:
dsquery user -samid ad_lookup
"CN=ad_lookup,CN=Users,DC=orgcontainer,DC=example,DC=com"
There might be more information for this subject on one of the following: