r13576: This is the beginnings of moving the SAM_ACCOUNT data structure
authorGerald Carter <jerry@samba.org>
Mon, 20 Feb 2006 20:09:36 +0000 (20:09 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:10:15 +0000 (11:10 -0500)
commit19b7593972480540283c5bf02c02e5ecd8d2c3f0
treee9f73bc16957b97a25feef09d7be31057d7edb12
parentaf57e4a4cc5efc9c7aba35790cf10377c76b5e4a
r13576: This is the beginnings of moving the SAM_ACCOUNT data structure
to make full use of the new talloc() interface.  Discussed with Volker
and Jeremy.

* remove the internal mem_ctx and simply use the talloc()
  structure as the context.
* replace the internal free_fn() with a talloc_destructor() function
* remove the unnecessary private nested structure
* rename SAM_ACCOUNT to 'struct samu' to indicate the current an
  upcoming changes.  Groups will most likely be replaced with a
  'struct samg' in the future.

Note that there are now passbd API changes.  And for the most
part, the wrapper functions remain the same.

While this code has been tested on tdb and ldap based Samba PDC's
as well as Samba member servers, there are probably still
some bugs.  The code also needs more testing under valgrind to
ensure it's not leaking memory.

But it's a start......
31 files changed:
source/auth/auth.c
source/auth/auth_rhosts.c
source/auth/auth_sam.c
source/auth/auth_unix.c
source/auth/auth_util.c
source/include/auth.h
source/include/passdb.h
source/pam_smbpass/pam_smb_acct.c
source/pam_smbpass/pam_smb_auth.c
source/pam_smbpass/pam_smb_passwd.c
source/pam_smbpass/support.c
source/pam_smbpass/support.h
source/passdb/login_cache.c
source/passdb/passdb.c
source/passdb/pdb_compat.c
source/passdb/pdb_get_set.c
source/passdb/pdb_interface.c
source/passdb/pdb_ldap.c
source/passdb/pdb_nds.c
source/passdb/pdb_smbpasswd.c
source/passdb/pdb_tdb.c
source/rpc_parse/parse_samr.c
source/rpc_server/srv_netlog_nt.c
source/rpc_server/srv_samr_nt.c
source/rpc_server/srv_samr_util.c
source/smbd/chgpasswd.c
source/smbd/lanman.c
source/utils/net_rpc_samsync.c
source/utils/net_sam.c
source/utils/pdbedit.c
source/utils/smbpasswd.c