Previous Topic: mod-dn-req Command—Rename an Entry

Next Topic: Make an Alias Point To a Different Entry

mod-entry-req Command—Modify an Entry

The mod-entry-req command adds and removes attributes and values. If you use this command on an alias, it changes the alias, not the entry that the alias points to.

Note: You cannot use mod-entry-req to create an alias—use add-entry-req instead.

The command has the following format:

mod-entry-req
	entry =	DN
	Modifications	
	[common-args]

Example: Modify Service to Add Attributes

Add a fax number to organizational unit Corporate under organization Democorp:

mod-entry-req
	entry =	<countryName "AU">
		<organizationName "Democorp">
		<organizationalUnitName "Corporate" >
	add-attr {facsimileTelephoneNumber "03-9727-9722" }
	;

Example: Modify Service to Add and Remove Attributes

Add another phone number value for John Smith, and remove one of his common names—the non-distinguished value, J SMITH:

mod-entry-req
	entry =	<countryName "AU">
			<organizationName "Democorp">
			<commonName "John Smith">
	rem-values { commonName "J SMITH" },
	add-values { telephoneNumber "03 9727 9111" };

See the test scripts for more examples.


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