Authentication correctly works for replicaset and is pluggable