nmbd does not start without smbd (fwd)

Luke Kenneth Casson Leighton lkcl at switchboard.net
Tue Dec 8 22:43:07 GMT 1998


On Wed, 9 Dec 1998, Andrew Tridgell wrote:

> > ok, let me try again.  when a workstation contacts a pdc with a udp packet
> > like this, and the pdc is a trusted domain controller not the pdc for
> > that workstation, the trusted dc sends out a response, and from memory
> > (last time looked at these, 6-8 months ago) it contains a SID.
> 
> in that case it must be a response that we don't support.
> 
> right now we have a a race condition and a dependence on smbd being
> started for nmbd to start. Are you proposing that we keep these
> problems because we might need the SID at some future date? I think
> that's taking planning too far :)

naah, there's a solution:  modify generate_dom_sid() split it into
get_dom_sid(client / server) and generate_dom_sid().

in smbd:

iif (!get_dom_sid(server))
{
	generate_dom_sid()
	if (!get_dom_sid(server)
		exit();
}

in nmbd:

if (!get_dom_sid(server)
	exit();

in everything else:

if (!get_dom_sid(client)
	exit();

get_dom_sid(client/server)
{
	if (server)
	{
		read_sid_from_file();
	}
	if(client)
	{
		lsa_query_info_policy(level 3);
	}
}




More information about the samba-technical mailing list