use defaults to determine webdav realm name

@DeepDiver1975 @karlitschek @jancborchardt quick review of 2 lines pls