Code for joining a domain in Samba 2.2.0-alpha1

Gerald Carter gcarter at valinux.com
Sat Apr 7 13:20:39 GMT 2001


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.








Cheers, jerry
______________________________________________________________________
   /\  Gerald (Jerry) Carter                     Professional Services
 \/    http://www.valinux.com/  VA Linux Systems   gcarter at valinux.com
       http://www.samba.org/       SAMBA Team          jerry at samba.org
       http://www.plainjoe.org/                     jerry at plainjoe.org

       "...a hundred billion castaways looking for a home."
                                - Sting "Message in a Bottle" ( 1979 )





More information about the samba-technical mailing list