set context.privilege_map correctly on logon