Pull ldap 2

Commits have been reduced via squashing. LDAP login functionality added.