funky LsaQueryInfo change

Luke Kenneth Casson Leighton lkcl at samba.org
Tue Aug 15 04:13:07 GMT 2000


On Mon, 14 Aug 2000, Cole, Timothy D. wrote:

> > -----Original Message-----
> > From:	Luke Kenneth Casson Leighton [SMTP:lkcl at samba.org]
> > Sent:	Monday, August 14, 2000 15:42
> > To:	Cole, Timothy D.
> > Cc:	Elrond; 'Jeremy Allison'; samba-technical at samba.org
> > Subject:	RE: funky LsaQueryInfo change
> > 
> > level 5 is different rules, of course.
> > 
> 	Okay.  While I'm in there fixing stuff, what are the rules for level
> 5?

level 5 is the SAM database for which you are responsible.

in the case of PDC/BDC, it's therefore the Domain SAM DB, and its name is
DOMAIN_NAME.

in the case of Standalone/Member, it's therefore the Local SAM DB, and its
name is WORKSTATION_NAME.

read the code, tim!!!!!

	switch (info_class)
	{
		case 0x02:
		{
			unsigned int i;
			/* fake info: We audit everything. ;) */
			info->id2.auditing_enabled = 1;
			info->id2.count1 = 7;
			info->id2.count2 = 7;
			info->id2.auditsettings = g_new(uint32, 7);
			for (i = 0; i < 7; i++)
				info->id2.auditsettings[i] = 3;
			break;
		}
		case 0x03:
		{
			extern fstring global_myworkgroup;
			make_dom_query(&info->id3, global_myworkgroup,
				       &global_member_sid);
			break;
		}
		case 0x05:
		{
			make_dom_query(&info->id3, global_sam_name,
				       &global_sam_sid);
			break;
		}
		default:
		{
			DEBUG(3, ("unknown info level in Lsa Query: %d\n",
				  info_class));
			status = NT_STATUS_INVALID_INFO_CLASS;
		}
	}





More information about the samba-technical mailing list