File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Security and the fly likes How to Modify multivalued attribute in LDAP using java API? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » Security
Reply Bookmark "How to Modify multivalued attribute in LDAP using java API? " Watch "How to Modify multivalued attribute in LDAP using java API? " New topic
Author

How to Modify multivalued attribute in LDAP using java API?

Simpson Kumar
Ranch Hand

Joined: Mar 19, 2008
Posts: 260
when I modified the multivalues attribute (ex: objectclass), it get override the existing values with new values, which is a bad approach. I want to either remove or add each value by value depending upon the UI request. I don't want to override all values at a time.

say for ex in LDAP, if objectclass already contans "top","person","organizationalPerson", Now from UI request, I want to change the objectclass by removing "organizationalPerson" and adding "inetOrgPerson". I can do by collecting new multivalues from UI and override (update) objectclass but I dont want to do in that scenario, rather doing like that I need to remove ""organizationalPerson" value and add new "inetOrgPerson". How can we do from sun API? .

Here is the code that I'm following




Is there any other approach to do ? could some one help on this


Thanks,
Kumar
Simpson Kumar
Ranch Hand

Joined: Mar 19, 2008
Posts: 260
I have done this job.. the following API I used to remove and add multivalues attribute one by one value.

 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to Modify multivalued attribute in LDAP using java API?
 
Similar Threads
LDAP: Recommended way to add new objectclass to existing entries?
First node in LDAP and JNDI problem
Unable to create directory in OID
javax.naming.directory.SchemaViolationException on LDAP
LDAP: Add Users