util.c:get_trusted_serverlist()

Luke Kenneth Casson Leighton lkcl at samba.org
Wed Dec 8 23:02:31 GMT 1999


On Wed, 8 Dec 1999, Gerald Carter wrote:

> Luke Kenneth Casson Leighton wrote:
> > 
> > jerry, the code checks lp_workgroup() == domain to return
> > lp_passwordserver() list.
> > 
> > therefore, what is your workgroup?
> 
> Luke,
> 
> I've had so much fun trying to figure out what you've 
> been doing lately. ;)  Hmm....where to start?

he he :)
 
> from lib/util_pwdb.c:pwdb_initialise()
> 
> 	}
>                 char *srvs;
>                 if (lp_server_role() == ROLE_DOMAIN_PDC)
>                 {
>                  srvs = global_myname;
>                 }
>                 else
>                 {
>                  srvs = lp_passwordserver();
>                 }
>                 if (!get_domain_sids(global_myname, &global_member_sid,
>                                       &global_sam_sid, srvs))
> 		^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 
> Here's the function definition
> 
> /************************************************************************
>  obtain the sid from the PDC.  do some verification along the way...
> ************************************************************************/
> BOOL get_domain_sids(const char *myname,
>                                 DOM_SID *sid3, DOM_SID *sid5, char
> *domain)
> {
>         POLICY_HND pol;
> 
> 
> 
> ------------------
> Not in the function, myname is **never** used in the function.

you're right, it isn't!  plus, srvs is set to something really stupid.

*sigh*.  ok, get_domain_sids(global_sam_name, global_member_sid,
global_sam_sid) is the more correct thing to do.  i think.

hmmm..

ok, it's a mess.  i fix it.



More information about the samba-technical mailing list