|
|
Because some operations (such as get and replaceWithDefault) do not require values for attributes, this table defines groups of attributes so the operation can use a single name to specify more than one attribute. Specifying a value with for a group alias causes an error. See also ``Group definition table (GDT)''.
In this example, two group aliases (id and env) are defined. The id alias will be replaced with the attributes name, userId, and groupId whenever it is encountered on a command line. If the command line were to associate a value with the group alias, an error would result.
GDT example (Tcl)
set users(groups) { {id {{associatedAttributes {realLifeName userId groupId}}}} {env {{associatedAttributes {homeDirectory loginShell}}}} }
GDT example (C/C++)
OSAGroup_t group[] = { {"id", "name uid gid"}, {"env", "home shell"} };