• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to Modify multivalued attribute in LDAP using java API?

 
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Simpson Kumar
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have done this job.. the following API I used to remove and add multivalues attribute one by one value.

 
reply
    Bookmark Topic Watch Topic
  • New Topic