Fixed multiple bugs with ldap_auth plugin.  Fixed bug with simple_password_auth for cases where there are no readonly_functions.