Previous Topic: DUA Commands

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]
	;

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.


Copyright © 2009 CA. All rights reserved. Email CA about this topic