From 6622ba566ed3cc3ac362c4e257d7c8ed3c437a8a Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Tue, 21 Feb 2006 19:22:49 +0000 Subject: r13601: * Remove unused code from pdb_ldap.c * Add a 'struct passwd *' to the struct samu for later reference (I know this may be controversial but its easily reverted which is is why I'm checking this is as a seaparate patch before I get too deep). * Remove unix_homedir from struct samu {} and update the pdb wrapper functions associated with it. (This used to be commit 92c251fdf0f1f566cfeca3c75ba2284b644aef5d) --- source3/passdb/passdb.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'source3/passdb/passdb.c') diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c index 6c84cccf79..6c84303947 100644 --- a/source3/passdb/passdb.c +++ b/source3/passdb/passdb.c @@ -152,11 +152,16 @@ NTSTATUS samu_set_unix(struct samu *user, const struct passwd *pwd) return NT_STATUS_NO_SUCH_USER; } + /* Basic properties based upon the Unix account information */ + pdb_set_username(user, pwd->pw_name, PDB_SET); pdb_set_fullname(user, pwd->pw_gecos, PDB_SET); - pdb_set_unix_homedir(user, pwd->pw_dir, PDB_SET); pdb_set_domain (user, get_global_sam_name(), PDB_DEFAULT); + /* save the password structure for later use */ + + user->unix_pw = tcopy_passwd( user, pwd ); + /* Special case for the guest account which must have a RID of 501. By default the guest account is a member of of the domain users group as well as the domain guests group. Verified against -- cgit