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)
commit2203bed32c84c63737f402accf73452efb76b483
tree76259a35b1137cfa89547b80b2b93eb0eedf5bcf
parent69b2669b559c009d17f621cbc7c6937eafc56af6
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......
(This used to be commit 19b7593972480540283c5bf02c02e5ecd8d2c3f0)
31 files changed:
source3/auth/auth.c
source3/auth/auth_rhosts.c
source3/auth/auth_sam.c
source3/auth/auth_unix.c
source3/auth/auth_util.c
source3/include/auth.h
source3/include/passdb.h
source3/pam_smbpass/pam_smb_acct.c
source3/pam_smbpass/pam_smb_auth.c
source3/pam_smbpass/pam_smb_passwd.c
source3/pam_smbpass/support.c
source3/pam_smbpass/support.h
source3/passdb/login_cache.c
source3/passdb/passdb.c
source3/passdb/pdb_compat.c
source3/passdb/pdb_get_set.c
source3/passdb/pdb_interface.c
source3/passdb/pdb_ldap.c
source3/passdb/pdb_nds.c
source3/passdb/pdb_smbpasswd.c
source3/passdb/pdb_tdb.c
source3/rpc_parse/parse_samr.c
source3/rpc_server/srv_netlog_nt.c
source3/rpc_server/srv_samr_nt.c
source3/rpc_server/srv_samr_util.c
source3/smbd/chgpasswd.c
source3/smbd/lanman.c
source3/utils/net_rpc_samsync.c
source3/utils/net_sam.c
source3/utils/pdbedit.c
source3/utils/smbpasswd.c