The sample program teldir.c permits a user to add, read, or delete entries in a CDS or GDS namespace in any local or remote DCE cell, assuming that permissions are granted by the ACLs. The entry consists of a person's surname and phone number. Each entry is of class Organizational-Person.
The program uses predefined static XDS public objects that are never altered and partially defined static XDS public objects so that values for the surname and phone number can be entered dynamically by a user. It also uses dynamic XDS public objects that are created and filled only as needed by using the stringToXdsName function. These techniques are a departure from those used in the first two sample programs where all objects are predefined.
More:
Predefined Static Public Objects
Partially Defined Static Public Objects
Dynamically Defined Public Objects