DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Designing SCOadmin object service agents

Example Group Definition Tables (GDT)

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"}
   };

Next topic: Example Subordinates Definition Tables (SDT)
Previous topic: Example Operation Definition Tables (ODT)

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003