Code for joining a domain in Samba 2.2.0-alpha1
alsbergt at cs.huji.ac.il
Tue Apr 10 09:20:26 GMT 2001
I put some debugging statements in some of the functions in
rpc_server/srv_netlog.c, including api_net_sam_logon(), looked at my
logs while trying to join a domain, or just trying to log on using
smbclient, and api_net_sam_logon() didn't seem to get called.
reply_sesssetup_and_X() in smbd/reply.c however, did get called. So I
was wondering what its role exactly is in that process.
What do you mean by 'replies to SMB calls, not MSRPC'? What are those
MSRPC calls exactly? Why is MSRPC what I care about when joining a
machine to the domain? Isn't joining a machine to the domain part of the
I'm sorry for the stupid questions, I probably just need to get a few
things clear to me.
Any help/explanations appreciated,
On Sat, Apr 07, 2001 at 06:20:39AM -0700, Gerald Carter wrote:
> On Sat, 7 Apr 2001, Tom Alsberg wrote:
> > Oh, and another few questions.
> > (1) What exactly is the role of the reply_functions in smbd/reply.c?
> replies to SMB calls, not MSRPC. Those are in rpc_server/*.c
> > (2) What value does what function have to return for a machine to
> > successfully join a domain?
> See rpc_server/srv_netlog.c
> api_net_sam_logon() in particular.
> If you interested in more details, check out "DCE/RPC over SMB"
> by Luke Leighton, New Riders Publishing.
> > Thanks again,
> > -- Tom
> > On Thu, Apr 05, 2001 at 06:52:36PM +0200, Tom Alsberg wrote:
> > > Hi.
> > >
> > > Thank you for the information.
> > > Where are those account control flags, though? And what value makes
> > > them indicate it's a workstation trust account? What I want to do is to
> > > insert some code that checks whether it's a machine logon, and do some
> > > things if it is.
> in the [....] field in smbpasswd.
Hebrew University of Jerusalem,
institute of Computer Science and Engineering -
System Group / Vision Lab
More information about the samba-technical