added option to auth via ldap