summaryrefslogtreecommitdiffstats
path: root/source3/passdb/pdb_tdb.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2001-09-29 13:14:19 +0000
committerAndrew Bartlett <abartlet@samba.org>2001-09-29 13:14:19 +0000
commita28dd18fe7d88f7d229f2746ac05f9f9e7978cfe (patch)
tree2b78cd12d6a7cc2dbdce45b8a976e0faf17130d3 /source3/passdb/pdb_tdb.c
parent81697d5ebe33ad95dedfc376118fcdf0367cf052 (diff)
downloadsamba-a28dd18fe7d88f7d229f2746ac05f9f9e7978cfe.tar.gz
samba-a28dd18fe7d88f7d229f2746ac05f9f9e7978cfe.tar.xz
samba-a28dd18fe7d88f7d229f2746ac05f9f9e7978cfe.zip
This is the passdb section of the previously mentioned commit.
Of particular note is the change to pdb_free_sam() to take its sam argument by reference, allowing it to be NULLified by the SAFE_FREE() macro, and the changed to local_password_change() both to make it work and to remove the duplicate code that caused so much breakage over the last few days. - Small change in behaviour: when LOCAL_ADD_USER is set, the user doesn't actually exist locally but does exist in the passdb we don't attempt to do a GetPwnam(). (How the entry got there is another matter, and most passdbs won't allow this anyway). Andrew Bartlett (This used to be commit 6b45e342fd1ed82d7f5bd613048fe862a6a6f2a1)
Diffstat (limited to 'source3/passdb/pdb_tdb.c')
-rw-r--r--source3/passdb/pdb_tdb.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/passdb/pdb_tdb.c b/source3/passdb/pdb_tdb.c
index 990d0077b2..9b932b7821 100644
--- a/source3/passdb/pdb_tdb.c
+++ b/source3/passdb/pdb_tdb.c
@@ -689,7 +689,7 @@ BOOL pdb_delete_sam_account(char *sname)
rid = pdb_get_user_rid(sam_pass);
- pdb_free_sam (sam_pass);
+ pdb_free_sam (&sam_pass);
/* it's outaa here! 8^) */
if (tdb_delete(pwd_tdb, key) != TDB_SUCCESS) {
@@ -732,7 +732,6 @@ static BOOL tdb_update_sam(SAM_ACCOUNT* newpwd, BOOL override, int flag)
pstring tdbfile;
fstring name;
BOOL ret = True;
- int newtdb = FALSE;
get_private_directory(tdbfile);
pstrcat (tdbfile, PASSDB_FILE_NAME);