Previous Topic: abandon-req Command—Stop a Request

Next Topic: Add an Alias

add-entry-req Command—Add an Entry

The add-entry-req command adds an entry. The new entry must obey the name-binding rules, and the entry attributes must obey the entry's object-class rules.

The format of the command is as follows:

add-entry-req
	entry = DN
	contents = {
		(objectClass objectClass-name)
		(attribute attribute-value [,attribute-value...] )
		[...]
		}
	[common-args]
	;
DN

Defines the entry to be added, expressed in x.500 format.

objectClass objectClass-name

Defines the object class of the new entry.

attribute attribute-value [,attribute value...]

Defines an attribute and its value (or values). Multiple values are separated by commas. A new line within an attribute value is denoted by a period (.).

common-args

Defines the common arguments. For more information, see common-args.

Example: Add a Single Entry

add-entry-req
	entry = <countryName "AU"> <organizationName "Democorp"> <organizationalUnitName "Sales">
	contents = {
		( objectClass organizationalUnit )
		( postalAddress "100 222-268 Maroondah Highway"."Mooroolbark"."Victoria" )
		( postalCode "3138" )
		( telephoneNumber "(03) 9727-8900" , "(03) 9727-8901" )
		( facsimileTelephoneNumber "(03) 9727-3491" )
	};

Example: Add an Entry with a Multivalue Naming Attribute

In this example, a multivalued attribute commonName has the value "John Smith", which is the distinguished name and names the entry. The commonName attribute is in the contents of the add request so that you can add the value J SMITH.

add-entry-req
	entry = <countryName "AU">  <organizationName "Democorp"> <commonName "John Smith">
	contents = {
		( objectClass organizationalPerson )
		( surname "Smith" )
		( commonName "J SMITH" )
	};

See the test scripts for more examples.