marieno2 Absent Member.
Absent Member.
419 views

Modify mandatory attribute type & Unknown object class


Dear all,

I wanted to change an attribute type from -Ignore Case- to -Exact
Case-.
So I created the following Schema Extension file and I installed it
with Novell Directory Services.


Code:
--------------------
SchemaExtensions DEFINITIONS ::=
BEGIN

"myLastName" ATTRIBUTE ::=
{
Operation MODIFY,
SyntaxID SYN_CE_STRING
}

END

--------------------


However, this caused some issues on my directory objects...
Attribute was removed on all objects having a value for this
attribute.
And as it was a mandatory attribute, all those objects became
-Unknown-.
So, I need to recreate all those Unknown objects.

Is there a way to do it without having such an issue ?
Because I did it on my test environment but I don't want to do the same
on my productive environment, as you can understand.

Thank you in advance for your help!


--
marieno2
------------------------------------------------------------------------
marieno2's Profile: http://forums.novell.com/member.php?userid=108599
View this thread: http://forums.novell.com/showthread.php?t=455148

Labels (1)
0 Likes
3 Replies
Knowledge Partner
Knowledge Partner

Re: Modify mandatory attribute type & Unknown object class

On Thu, 26 Apr 2012 09:36:02 +0000, marieno2 wrote:

> I wanted to change an attribute type from -Ignore Case- to -Exact Case-.
> So I created the following Schema Extension file and I installed it with
> Novell Directory Services.


I've done similar things with LDIF, but I've never tried to do it with
the schema extension tool. Same results, I'd think, but I could be wrong.

>
>
> Code:
> --------------------
> SchemaExtensions DEFINITIONS ::=
> BEGIN
>
> "myLastName" ATTRIBUTE ::=
> {
> Operation MODIFY,
> SyntaxID SYN_CE_STRING
> }
>
> END
>
> --------------------


After applying this, what is actually in the schema now? Is it correct?


> However, this caused some issues on my directory objects... Attribute
> was removed on all objects having a value for this attribute.


Ouch. If you look at the object in iMonitor, is the attribute data
actually gone?


> And as it was a mandatory attribute, all those objects became -Unknown-.
> So, I need to recreate all those Unknown objects.


Ouch. If you look at the object in iMonitor, it should still have
everything (except maybe this attribute). Once the object has all of the
mandatory attributes, iMonitor can morph it back in to its original
object class. So you might not have to recreate them all.


> Is there a way to do it without having such an issue ? Because I did it
> on my test environment but I don't want to do the same on my productive
> environment, as you can understand.


Personally, I'd make the schema change with an LDIF file. I wouldn't
expect it to do what this has done for you, but of course you'll want to
test it first.


--
--------------------------------------------------------------------------
David Gersic dgersic_@_niu.edu
Knowledge Partner http://forums.novell.com

Please post questions in the forums. No support provided via email.

0 Likes
marieno2 Absent Member.
Absent Member.

Re: Modify mandatory attribute type & Unknown object class


I also tested with the following LDIF script:


Code:
--------------------
dn: cn=schema
changetype: modify
delete: attributetypes
attributeTypes: ( 1.3.6.1.4.1.11111.1.2.14 NAME 'myLastName' DESC 'Last Name' SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{64512} SINGLE-VALUE X-NDS_NAME 'myLastName' )
--
add: attributetypes
attributeTypes: ( 1.3.6.1.4.1.11111.1.2.14 NAME 'myLastName' DESC 'Last Name' SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{64512} SINGLE-VALUE X-NDS_NAME 'myLastName' )

--------------------


But the result was the same.
Attribute data were gone and all my objects were Unknow.
So I have to recreate all those objects...


--
marieno2
------------------------------------------------------------------------
marieno2's Profile: http://forums.novell.com/member.php?userid=108599
View this thread: http://forums.novell.com/showthread.php?t=455148

0 Likes
Knowledge Partner
Knowledge Partner

Re: Modify mandatory attribute type & Unknown object class

On Thu, 26 Apr 2012 14:46:02 +0000, marieno2 wrote:

> I also tested with the following LDIF script:

[-snip[]
> But the result was the same.
> Attribute data were gone and all my objects were Unknow. So I have to
> recreate all those objects...


Ouch. Well, so much for that idea. Did you check them in iMonitor to see
if they can be morphed back in to correct objects?


--
--------------------------------------------------------------------------
David Gersic dgersic_@_niu.edu
Knowledge Partner http://forums.novell.com

Please post questions in the forums. No support provided via email.

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.