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

RE: checking for bound user

> -----Original Message-----
> From: owner-openldap-devel@OpenLDAP.org
> [mailto:owner-openldap-devel@OpenLDAP.org]On Behalf Of David Parker

> In an overlay I am working on, when I get a search request I 
> need to know if the user is bound or not. From the list 
> archives and from bind.c it looks like op->o_req_dn gets set 
> only if the bind succeeds. Is it sufficient/safe to only 
> check for NULL on this member to determine if the user is 
> bound? op->o_req_ndn gets set, too - does it matter which one 
> of these pointers I check?

op->o_req_dn is always the target of a request, that's why it's called
"req_dn." The current user is in op->o_dn.

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support 

<<attachment: winmail.dat>>