[SP-710] Backport of [BISERVER-10455] Anonymous authentication does not ...

...work in 5.0