Fixed up LDAP auth a bit -- more work needs to be done