can't add attribute to ldap schema?

I tried to add brand new attribute via console and got "object class violation" error back. I haven't tried to add this attribute into a object class, Any suggestion?Thanks a lot in advance.Tao
[215 byte] By [netwave8888] at [2007-11-26 9:28:53]
# 1
No suggestion without further details... such as which version of Directory Server, what platform, content of the error log file...Ludovic.
ludovicp at 2007-7-7 0:11:07 > top of Java-index,Web & Directory Servers,Directory Servers...
# 2

This happened to me, but may not be your case...

Mgrating to 5.2 the I just copied the 99user.ldif file over and I ended up with two 'schemacsn' attributes (or something like that) at the very end of the file. The attribute itself is single valued to begin with, and also, I believe it keeps track of the changes, therefore the csn assigned when I tried to add anew attribute did not match. Bottom line:

1. Stop your directory server.

2. edit the 99user.ldif file and delete the schemacsn attribute (or attributes) --they may be at the end of the file.

3. Restart the directory.

4. Add attributes to your heart content...

Enrique at 2007-7-7 0:11:07 > top of Java-index,Web & Directory Servers,Directory Servers...