This is a farily large patch (3300 lines) and reworks most of the AuthRewrite
authorAndrew Bartlett <abartlet@samba.org>
Wed, 31 Oct 2001 10:46:25 +0000 (10:46 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 31 Oct 2001 10:46:25 +0000 (10:46 +0000)
commit60f0627afb167faad57385d44f0b587186a7ac2b
treef7a03b2e1b90d1234c48fffaeaf92986060a0e77
parent83575bd3868ef3993107460d2c8e05f382eae351
This is a farily large patch (3300 lines) and reworks most of the AuthRewrite
code.

In particular this assists tpot in some of his work, becouse it provides the
connection between the authenticaion and the vuid generation.

Major Changes:
- Fully malloc'ed structures.
  - Massive rework of the code so that all structures are made and destroyed
    using malloc and free, rather than hanging around on the stack.
- SAM_ACCOUNT unix uids and gids are now pointers to the same, to allow them
   to be declared 'invalid' without the chance that people might get ROOT by
   default.

- kill off some of the "DOMAIN\user" lookups.  These can be readded at a more
  appropriate place (probably domain_client_validate.c) in the future. They
  don't belong in session setups.

- Massive introduction of DATA_BLOB structures, particularly for passwords.

- Use NTLMSSP flags to tell the backend what its getting, rather than magic
  lenghths.

- Fix winbind back up again, but tpot is redoing this soon anyway.

- Abstract much of the work in srv_netlog_nt back into auth helper functions.

This is a LARGE change, and any assistance is testing it is appriciated.

Domain logons are still broken (as far as I can tell) but other functionality
seems
intact.

Needs testing with a wide variety of MS clients.

Andrew Bartlett
(This used to be commit f70fb819b2f57bd57232b51808345e2319d52f6c)
32 files changed:
source3/Makefile.in
source3/auth/auth.c
source3/auth/auth_domain.c
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/include/auth.h
source3/include/smb.h
source3/libsmb/domain_client_validate.c
source3/libsmb/smbencrypt.c
source3/nsswitch/winbindd_pam.c
source3/passdb/passdb.c
source3/passdb/pdb_smbpasswd.c
source3/printing/nt_printing.c
source3/rpc_client/cli_login.c
source3/rpc_parse/parse_net.c
source3/rpc_server/srv_netlog_nt.c
source3/rpc_server/srv_pipe.c
source3/rpc_server/srv_srvsvc_nt.c
source3/smbd/auth.c
source3/smbd/auth_domain.c
source3/smbd/auth_rhosts.c
source3/smbd/auth_server.c
source3/smbd/auth_smbpasswd.c
source3/smbd/auth_unix.c
source3/smbd/auth_util.c
source3/smbd/password.c
source3/smbd/reply.c
source3/smbd/service.c
source3/smbd/sesssetup.c