I've decided to move the auth code around a bit more...
authorAndrew Bartlett <abartlet@samba.org>
Sat, 5 Jan 2002 04:55:41 +0000 (04:55 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 5 Jan 2002 04:55:41 +0000 (04:55 +0000)
commit2e28f8ff0e3bb50ac5b2742c7678c39cb65bcd95
tree257e7ba36de49aca7039b32a8611fc8b6dea9555
parent5a9c2f74ab0285859a6942bbc06d9e726cc69d19
I've decided to move the auth code around a bit more...

The auth_authsupplied_info typedef is now just a plain struct - auth_context,
but it has been modified to contain the function pointers to the rest
of the auth subsystem's components.

(Who needs non-static functions anyway?)

In working all this mess out, I fixed a number of memory leaks and moved the
entire auth subsystem over to talloc().

Note that the TALLOC_CTX attached to the auth_context can be rather long-lived,
it is provided for things that are intended to live as long.  (The
global_negprot_auth_context lasts the whole life of the smbd).

I've also adjusted a few things in auth_domain.c, mainly passing the domain as
a paramater to a few functions instead of looking up lp_workgroup().  I'm
hopign to make this entire thing a bit more trusted domains (as PDC) freindly
in the near future.

Other than that, I moved a bit of the code around, hence the rather messy diff.

Andrew Bartlett
(This used to be commit 12f5515f556cf39fea98134fe3e2ac4540501048)
19 files changed:
source3/Makefile.in
source3/auth/auth.c
source3/auth/auth_builtin.c
source3/auth/auth_compat.c [new file with mode: 0644]
source3/auth/auth_domain.c
source3/auth/auth_info.c [deleted file]
source3/auth/auth_rhosts.c
source3/auth/auth_sam.c
source3/auth/auth_server.c
source3/auth/auth_unix.c
source3/auth/auth_util.c
source3/auth/auth_winbind.c
source3/include/auth.h
source3/rpc_server/srv_netlog_nt.c
source3/rpc_server/srv_pipe.c
source3/smbd/negprot.c
source3/smbd/process.c
source3/smbd/server.c
source3/smbd/sesssetup.c