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)
commit12f5515f556cf39fea98134fe3e2ac4540501048
treed2af490912a83e46f2ac253ff9aca43b298414cc
parent207ee8aac42cf4b35f07e496b15fdeabe50950bc
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
19 files changed:
source/Makefile.in
source/auth/auth.c
source/auth/auth_builtin.c
source/auth/auth_compat.c [new file with mode: 0644]
source/auth/auth_domain.c
source/auth/auth_info.c [deleted file]
source/auth/auth_rhosts.c
source/auth/auth_sam.c
source/auth/auth_server.c
source/auth/auth_unix.c
source/auth/auth_util.c
source/auth/auth_winbind.c
source/include/auth.h
source/rpc_server/srv_netlog_nt.c
source/rpc_server/srv_pipe.c
source/smbd/negprot.c
source/smbd/process.c
source/smbd/server.c
source/smbd/sesssetup.c