#SB-131: Replace the properties-based configuration for the login modules with proper XML one

Re-implemented this for the LDAP and AD modules.