CML Reference Guide

Chapter 4.20:  Manager Functions

[TOP] [UP] [PREV] [NEXT]

Caucus version 4.0 adds the notion of "managers", specific users who have managerial capabilities not granted to the regular Caucus user.  When Caucus is installed, one such userid is designated the "primary manager"; this person has all capabilities at all times, and cannot be removed.

The primary manager may then add other managers with more restricted capabilities.  Each capability corresponds to a single bit in a bit mask: the capabilities, and their values and names are shown below:

 MGR_SET    0x001  modify list of managers
 MGR_CRCONF 0x002  create new conferences
 MGR_RMCONF 0x004  remove conferences
 MGR_BEORG  0x008  become an organizer of any conference

There are two CML functions that work with the list of managers and their capabilities:

$mgr_list()        {protected}
Evaluates to the complete list of managers, in the form "manager1 mask1 manager2 mask2...".  Each mask is the numeric sum of that manager's capabilities.

$mgr_list(userid)        {protected}
Evaluates to "userid mask", where mask is the sum of that specific manager's capabilities.

$set_mgr_list(mgr1 mask1 mgr2 mask2…)        {protected}
Replace entire manager list with the given arguments.  (Requires that the current user have MGR_SET capability!)

 

$admin_mail()
Evaluates to the e-mail address of the Caucus administrator (as defined in swebd.conf).