recursive mutexes in appl_head winbindd_cm.c?

jra at dp.samba.org jra at dp.samba.org
Tue Jan 14 06:39:00 GMT 2003


On Tue, Jan 14, 2003 at 05:25:20PM +1100, Tim Potter wrote:
> On Sat, Jan 11, 2003 at 01:11:14AM +0000, jra at dp.samba.org wrote:
> 
> > On Fri, Jan 10, 2003 at 05:31:48PM +1100, Martin Pool wrote:
> > > Here's my idea for fixing this in appliance-head, without reworking
> > > the mutex reference count.
> > 
> > Thanks for that - I've just checked in something close to this. Take
> > a look and let me know... 
> 
> I think I've figured out what the problem is.  There can be only one
> outstanding challenge per IP address so the mutex needs to be around the
> ServerReqChallenge and ServerAuthenticate2 calls.
> 
> A short test program confirms this.  If I open two cli handles to the
> same domain controller and perform two ServerReqChallenge calls then
> two ServerAuthenticate2 calls, both authentications fail with access
> denied.  Performing the authentications immediately after the challenge
> requests works correctly.

Err - do you mean the mutex must look like :

get_mutex:
	ServerReqChallenge
	ServerAuthenticate2
release_mutex:

Just checking :-).

Jeremy.



More information about the samba-technical mailing list