Strange behaviour (?) on Windows authentication