A method for changing an OSI (Open Systems Interconnection) directory information including a plurality of entries of a tree structure, the method being performed by an apparatus and comprising the steps of:
- (a) decoding a command;
- (b) if the decoded command is any one of a plurality of OSI directory commands, performing the substeps of
- (b1) transmitting the decoded command to a DSA (directory service agent),
- (b2) generating, in the DSA, an error message in response to the decoded command if the decoded command is a command which can only be executed for a leaf entry but designates a non-leaf entry having associated therewith at least one lower entry, or if the decoded command is a command for adding an entry but designates an entry that already exists, and
- (b3) if an error message is not generated in the DSA in response to the decoded command, executing, in the DSA, the decoded command;
- (c) if the decoded command is not any one of a plurality of OSI directory commands but is a change command for changing a portion of the directory information including a non-leaf entry at least one lower entry associated with the non-leaf entry, or if an error message is generated in the DSA in response to the decoded command and the decoded command is a command which can only be executed for a leaf entry but designates a non-leaf entry having associated therewith at least one lower entry, performing the substeps of
- (c1) sequentially issuing to the DSA, in response to the decoded command, OSI directory commands for the non-leaf entry and the at least one lower entry, the issued OSI directory commands being determined based on the decoded command, and
- (c2) executing, in the DSA, the issued OSI directory commands to change the tree structure of the directory information.