Working connection to LDAP server
Small readability refactor, and read from JSON config for LDAP