bind_as() fixes

Seems to work fine but I'll do one more test when you fix LDAP perms.