ldap fixes for linux