(ITS#7836) Incorrect behavior with problematic LDAP server