There is some excellent documentation on the docs about configuring LDAP through the UI and configuring through conf files.
Specifically for Active Directory, theres a sample config in the documentation on authentication.conf which will give you some good settings to get started.