funky LsaQueryInfo change
Luke Kenneth Casson Leighton
lkcl at samba.org
Mon Aug 14 17:09:47 GMT 2000
On Mon, 14 Aug 2000, Cole, Timothy D. wrote:
> Hrm ... okay, so null SID & null workgroup should be returned iff ( security
> = share or security = user ) ?
no. i'm not entirely certain as to exactly what the problem is with
people's understanding of this issue, so i'm not going to cut/paste this
code, and let it speak for itself.
... can anyone spot the bug, by the way?
static void set_server_role(void)
{
server_role = ROLE_STANDALONE;
switch (lp_security())
{
case SEC_SHARE:
{
if (lp_domain_logons())
{
DEBUG(0,
("Server's Role (logon server) conflicts with share-level security\n"));
}
break;
}
case SEC_SERVER:
case SEC_DOMAIN:
{
if (lp_domain_logons())
{
server_role = ROLE_DOMAIN_BDC;
break;
}
server_role = ROLE_DOMAIN_MEMBER;
break;
}
case SEC_USER:
{
if (lp_domain_logons())
{
server_role = ROLE_DOMAIN_PDC;
break;
}
break;
}
default:
{
DEBUG(0,
("Server's Role undefined due to unknown security mode\n"));
}
}
}
> > -----Original Message-----
> > From: Luke Kenneth Casson Leighton [SMTP:lkcl at samba.org]
> > Sent: Sunday, August 13, 2000 23:00
> > To: Cole, Timothy D.
> > Cc: 'Elrond'; samba-technical at samba.org
> > Subject: RE: funky LsaQueryInfo change
> >
> > stand-alone config:
> >
> > security = user
> > encrypted passwords = yes
> > domain logons = no
> > domain master = no
> > workgroup = anything you like, it doesn't matter.
> >
> >
> > On Wed, 2 Aug 2000, Cole, Timothy D. wrote:
> >
> > > lp_domain_logons() in 2.0.7 is definitely not the correct test for this,
> > > then. Offhand, the only analogous configuration I can think of for
> > 2.0.7
> > > would be some sort of deal with security = user|server and the workgroup
> > set
> > > to a null string.
> > >
> > > Is that roughly correct?
> > >
> >
>
<a href=" mailto:lkcl at samba.org" > Luke Kenneth Casson Leighton </a>
<a href=" http://cb1.com/~lkcl" > Samba and Network Development </a>
<a href=" http://samba.org" > Samba Web site </a>
ISBN1578701503 DCE/RPC over SMB: Samba and Windows NT Domain Internals
More information about the samba-technical
mailing list