Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Anonymous_User Absent Member.
Absent Member.
214 views

Modify attribute syntax


Hi,
I want to change an attribute syntax. This attribute is used by a class
and there are already objects in the directory using this class. How can
I change my attribute syntax without deleting data?

Thanks


--
moularbi
------------------------------------------------------------------------
moularbi's Profile: https://forums.netiq.com/member.php?userid=1196
View this thread: https://forums.netiq.com/showthread.php?t=46761

Labels (1)
0 Likes
1 Reply
Anonymous_User Absent Member.
Absent Member.

Re: Modify attribute syntax

[resend]

Whether or not the system will let you do this depends on your change, but
you can easily do this via LDAP by deleting the old attribute definition
and adding a new one in a single transaction. If, of course, your new
definition causes old data to no longer be possible though it already
exists in the DIB, the change will probably not be permitted. In that
case export all data, delete the attribute via whatever tool (LDAP or
iManager), then recreate it properly, and then import the old data after
fixing it up, or after removing the invalid values.



dn: cn=schema
changetype: modify
delete: attributeTypes
attributeTypes: your-old-attr-definition-goes-here
-
add: attributeTypes
attributeTypes: your-new-attr-definition-goes-here




Good luck.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.