Working security realm and logging