Search code examples
javaldapjndi

JNDI: Which operation is expensive? LDAP rebind() or (unbind() and bind())


Assuming that I already have an entry in LDAP and I want to change some attributes of that entry, will using rebind() JNDI call be better than to use unbind() to delete that entry and bind() to create it from scratch?

Does this depend on the Directory server?


Solution

  • You shouldn't be considering either. Use DirContext.modifyAttributes().