added ldap support and loosened url regex to allow square brackets for new mapr plugins