summaryrefslogtreecommitdiff
path: root/source3/passdb
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 /source3/passdb
parenta1eaa7d5e0f428359c0f661aeb2c313fa428ee0b (diff)
downloadsamba-d57dc1b8b23edb1c327f1acfb770f6bcb33e6e74.tar.gz
samba-d57dc1b8b23edb1c327f1acfb770f6bcb33e6e74.tar.bz2
samba-d57dc1b8b23edb1c327f1acfb770f6bcb33e6e74.zip
forgot to remove getpwnam
(This used to be commit 1915ab7b95b2baade0f4293d5a7a96003888d1c9)
Diffstat (limited to 'source3/passdb')
-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 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);