BZ 1148512 Fix NotSerializableException for cluster+ldap setup