summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2003-04-29 23:52:53 +0000
committerSimo Sorce <idra@samba.org>2003-04-29 23:52:53 +0000
commitd57dc1b8b23edb1c327f1acfb770f6bcb33e6e74 (patch)
tree267c4a147723d8802920d9487e5254151bc15f1a
parenta1eaa7d5e0f428359c0f661aeb2c313fa428ee0b (diff)
downloadsamba-d57dc1b8b23edb1c327f1acfb770f6bcb33e6e74.tar.gz
samba-d57dc1b8b23edb1c327f1acfb770f6bcb33e6e74.tar.xz
samba-d57dc1b8b23edb1c327f1acfb770f6bcb33e6e74.zip
forgot to remove getpwnam
(This used to be commit 1915ab7b95b2baade0f4293d5a7a96003888d1c9)
-rw-r--r--source3/passdb/pdb_tdb.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/source3/passdb/pdb_tdb.c b/source3/passdb/pdb_tdb.c
index 904f2935cee..2715c3e3ca1 100644
--- a/source3/passdb/pdb_tdb.c
+++ b/source3/passdb/pdb_tdb.c
@@ -145,26 +145,6 @@ static BOOL init_sam_from_buffer (struct tdbsam_privates *tdb_state,
goto done;
}
- /* validate the account and fill in UNIX uid and gid. Standard
- * getpwnam() is used instead of Get_Pwnam() as we do not need
- * to try case permutations
- *
- * FIXME: are we sure we do not need ?
- */
- if (!username || !(pw = getpwnam_alloc(username))) {
- if (!(tdb_state->permit_non_unix_accounts)) {
- DEBUG(0,("tdbsam: getpwnam_alloc(%s) return NULL. User does not exist!\n", username));
- ret = False;
- goto done;
- }
- }
-
- if (pw) {
- pdb_set_unix_homedir(sampass, pw->pw_dir, PDB_SET);
-
- passwd_free(&pw);
- }
-
pdb_set_logon_time(sampass, logon_time, PDB_SET);
pdb_set_logoff_time(sampass, logoff_time, PDB_SET);
pdb_set_kickoff_time(sampass, kickoff_time, PDB_SET);