From d57dc1b8b23edb1c327f1acfb770f6bcb33e6e74 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Tue, 29 Apr 2003 23:52:53 +0000 Subject: forgot to remove getpwnam (This used to be commit 1915ab7b95b2baade0f4293d5a7a96003888d1c9) --- source3/passdb/pdb_tdb.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'source3') diff --git a/source3/passdb/pdb_tdb.c b/source3/passdb/pdb_tdb.c index 904f2935ce..2715c3e3ca 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); -- cgit