Back Forum Reply New

Problem with update mode and lookup

I need to be able to force a DirContextOperations object to be in update mode.  I am unable to use a lookupContext call against ldapTemplate as explained in this post - showthread.php?t=76738 so I need to be able to do a lookup and get the DirContextOperations and set it to update mode prior to applying my changes.  Is there anyway to do this?

You can use setUpdateMode.

Thanks.  I had looked for this type of method, but I was looking on the DirContextOperations interface and didn't realize it was over on the DirContextAdapter.

Well, admittedly this is kind of a hack: the setUpdateMode method is typically not meant to be used outside of the framework, which is why it isn't exposed in DirContextOperations.
¥
Back Forum Reply New