Create
Use Create to add new entries to the NIS directory. You must have write permission for the parent of the entry you want to create. See Login for details.
Quick Reference
Creating a New Entry
- Click on the
icon or select Create from the Entry menu.
The Create window is displayed.
There are three steps to creating a NIS directory entry. You must complete the current step before you can progress to the next one.
- Name the entry
- Select an objectclass for the new entry
- Assign attributes to the objectclass and name them.
- When you have completed the entry click Done.
Naming
Before creating the new entry you need to name it.
- Select the name of the map to which the new entry should be added from
the Map Name option button.
The default options are Users, Aliases, Hosts and Groups.
Note - It is possible to change the default NIS map names in the
Deja.properties file. See the Sun Directory Services 3.1 User's
Guide for information.
- Specify the parent of the entry:
- Type the Distinguished Name of the Entry's parent in the Parent
text field.
- Alternatively, click once on the parent in the browser window to
select it and click the Get from Browser button.
The Distinguished Name of the selected entry is imported to the Parent
text field.
- Select the naming attribute with the option button.
The list of naming attributes is defined in the Deja.properties file
on the directory server. See the Sun Directory Services 3.1 User's
Guide for information.
- Type the Relative Distinguished Name of the entry in the Entry
Name text field.
- Click the Next Step button to select
objectclasses.
Selecting an Objectclass
You can add more than one objectclass to the entry.
- To add an objectclass to the entry:
- Select an objectclass from the Available Objectclasses list
and click on the right arrow button to add the objectclass to the
entry.
- Or, double click on an objectclass in the Available
Objectclasses list to add the objectclass to the entry.
- To remove an objectclass from the entry:
- Select an objectclass from the Selected Objectclasses list and
click on the left arrow button to remove the objectclass from the
entry.
- Or, double click on an objectclass in the Selected
Objectclasses list to remove the objectclass from the entry.
- When the selected objectclasses list is complete, click the Next
Step button to select attributes.
Note - If the selected objectclasses do not contain the naming
attribute, a warning message is displayed. You must either specify a
different naming attribute or add an appropriate object class to the
entry.
Selecting Attributes
Each objectclass in the entry has a number of attributes associated with it. Some of these attributes are mandatory (marked with an "M") and must be given a value, others are optional (marked with an "O") and can be left without a value. In this window you can assign values to the attributes. Initially only the mandatory attributes are displayed.
Some attributes accept multiple values, others can only have one value. This is defined in the schema by the SINGLE-VALUE keyword. If you try to add more than one value to a single-valued attribute, an error message is displayed.
- To assign a value to an attribute:
- From the Choose Attribute window, or from the entry
definition, select the attribute for which you want to add a value.
- Type the attribute's value in the text field.
- Click the Add button to add the value of the attribute to the
entry definition.
The value appears in the entry definition next to the attribute.
- To add an additional value to an attribute, repeat steps 1 to 3.
The additional value is added to the entry definition.
When an attribute has more than one value, an arrow is displayed next
to the attribute name in the entry definition. Click on the arrow to
collapse or expand the attribute definition.
- To delete a value from an attribute:
- Select the value or the attribute in the entry definition.
- Click the Delete button.
- If you delete the only value for an optional attribute, the
attribute is removed from the entry definition.
- If you delete the only value for a mandatory attribute, only the
value is cleared from the entry definition. The attribute stays in the
entry definition. If you click Done, you are prompted to supply
values for any mandatory attributes without values.
- To modify an attribute's value:
- In the entry definition, select the value of the attribute you want
to modify.
The attribute's value appears in the text field.
- Modify the value and click the Modify button.
The modified value appears in the entry definition.
- To clear the text field:
Creating a Root Entry
When you are connected to the directory server, the topmost entry in the directory browser window is the Directory Specific Entry (DSE). It is displayed as:
- ldap://hostname:port
- where hostname is the hostname of the directory server, and port is the port number that Deja has used to connect to the directory server.
If there is no root entry listed below this, you can create a root entry using Deja.
- Double click on the Directory Specific Entry in the browser window.
A view panel is displayed showing the DSE attributes. Listed at the bottom of this window are the naming contexts defined for the directory server:

You can create a root entry for each naming context defined for the server. For information, see the Sun Directory Services 3.1 Administration Guide.
- Click on the
icon or select Create from the Entry menu.
The Create window is displayed.
- In the Parent text field, type the Distinguished Name of the naming context for which you want to create a root entry.
For example, to add a root entry for the naming context o=xyz,c=us, type o=xyz,c=us in the Parent text field.
- Click on the Next Step button to select object classes and then add values to attributes using the same procedure as for any new entry.