[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: overlay question

Roland Hedberg wrote:

Roland Hedberg wrote:

And the result is that spocp_cntrl_op() is called on unbind but not on bind or search (which is the ones I have checked) operations.

Hmm, seems I have to be a bit more specific.

Now, what I first tried was to just do:

ldapsearch -x -b "" -s base "(objectclass=*)"

According to the debug output this included a bind (implicit ?), a search/read and a unbind.

So no call for my overlay function was made for either the bind or the search.

If on the other hand I used a ldap client program (gq in this case) and browses down the tree, I do see calls to my overlay for some searches but not for others.

The common denominator seems to be that search with baseobject "" is not passed through the overlay, while when the baseobject is not "" the overlays gets to handle the request.

Again, why is that ?

Overlays are configured on specific backends. The overlay will only be invoked in the same circumstances that the backend itself would normally be invoked; i.e., the operation must reference an entry that is inside the backend's naming context. The base object "" does not reside in any backend.

You may be interested in the patch in ITS#3080 if you want your overlay to have global effect.
-- Howard Chu
Chief Architect, Symas Corp. Director, Highland Sun
http://www.symas.com http://highlandsun.com/hyc
Symas: Premier OpenSource Development and Support