wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes javax.naming.directory.SchemaViolationException on LDAP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "javax.naming.directory.SchemaViolationException on LDAP" Watch "javax.naming.directory.SchemaViolationException on LDAP" New topic
Author

javax.naming.directory.SchemaViolationException on LDAP

Simpson Kumar
Ranch Hand

Joined: Mar 19, 2008
Posts: 261
I'm trying to update an attribute which contains different values, ex: objectclass, and it contains like top, person, inetOrgPerson, etc..
When I tried to updated, I got the following error

and the code I'm using is

I can update a single attribute successfully, the following is the code

I don't know why I'm failing to get update the objectclass attribute.


Thanks,
Kumar
Simpson Kumar
Ranch Hand

Joined: Mar 19, 2008
Posts: 261
I got the solution..

Actually I missed one attribute which should be a mandatory. I compared the attributes in the LDAP request that fails to the schema.
I came to know there is most likely a must attribute missing, maybe from an inherited object class.



In the above code, earlier I missed to add " objClasses.add("guPerson");", the guPerson attribute value is mandatory.
Now I can modify the results.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javax.naming.directory.SchemaViolationException on LDAP
 
Similar Threads
LDAP Search
HOW TO ADD LDAP ENTRIES USING JNDI?
How to Modify multivalued attribute in LDAP using java API?
Modifying an Attribute
ApacheDS 1.0.2 LDAP java.net.ConnectException: Connection timed out: connect