I have a unique situation where we have developed a custom overlay that intercepts & processes bind requests. As part of the processing I need to bind to a different LDAP tree as a different user (with write access) and delete an object. How can I accomplish this ? Would anyone be able to point me to some sample code that would accomplish this ?

Thanks in advance