added code for using LDAP, but commented out.