basic fixes for ext/ldap