Previous Topic: mod-entry-req Command—Modify an Entry

Next Topic: rem-entry-req Command—Delete an Entry

Make an Alias Point To a Different Entry

You can use the mod-entry-req command to make an alias point to a different entry.

Note: You cannot change a non-alias entry into an alias.

If the DSA has alias integrity enabled when you add an alias, the DSA must be able to navigate to the object that the alias points to.

To modify an alias, use the mod-entry-req command to remove the value of the attribute aliasedObjectName, and add a new value.

Example: Change an Alias of a Person to be an Alias of a Role

mod-entry-req
	entry = <countryName "AU">
		<organizationName "Democorp">
		<commonName "Brendan Randall">
	rem-values {
		(aliasedObjectName
		<countryName "AU">
		<organizationName "Democorp">
		<organizationalUnitName "Services">
		<organizationalUnitName "Networks">
		<commonName "Brendan Randall"> )},
	add-values {
		(aliasedObjectName
		<countryName "AU">
		<organizationName "Democorp">
		<organizationalUnitName "Services">
		<organizationalUnitName "Networks">
		<commonName "System Manager">	}
	;

Instead of removing and adding values, you can remove and add the attributes. This is probably the more common way to making such a change.