summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1998-11-26 00:48:31 +0000
committerLuke Leighton <lkcl@samba.org>1998-11-26 00:48:31 +0000
commitb20fc0046426bc6c6dfdeeef0cedcd975282576d (patch)
tree2d8ce9b6b7fd71ba6a5324c544ff9c04371cfdda /source3/passdb
parent5ebcdbae9b0eb05570613bd939af9fc827920a29 (diff)
downloadsamba-b20fc0046426bc6c6dfdeeef0cedcd975282576d.tar.gz
samba-b20fc0046426bc6c6dfdeeef0cedcd975282576d.tar.bz2
samba-b20fc0046426bc6c6dfdeeef0cedcd975282576d.zip
we have a problem: resolution of "Primary Group RID" which we assumed
would only be a domain group rid. it can also be a local group rid, which causes us problems in attempting to turn a unix gid into the correct rid (domain group or local group). sooo.... the fix is _in_ there, we just can't use it because it causes link / knock-on problems in nmbd. (This used to be commit e4ee6538709c33000774eb1676608f2dd67d5a30)
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/smbpass.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/source3/passdb/smbpass.c b/source3/passdb/smbpass.c
index e15a9b1dd7..262ffa3e2e 100644
--- a/source3/passdb/smbpass.c
+++ b/source3/passdb/smbpass.c
@@ -264,7 +264,9 @@ static struct sam_passwd *getsmbfile21pwent(void *vp)
struct smb_passwd *pw_buf = getsmbfilepwent(vp);
static struct sam_passwd user;
struct passwd *pwfile;
-
+#if ARGH
+ uint32 status = 0x0;
+#endif
static pstring full_name;
static pstring home_dir;
static pstring home_drive;
@@ -298,8 +300,12 @@ static struct sam_passwd *getsmbfile21pwent(void *vp)
user.smb_userid = pw_buf->smb_userid;
user.smb_grpid = pwfile->pw_gid;
+#if ARGH
+ status = lookup_user_rids(pw_buf->smb_name, &user.user_rid, &user.group_rid);
+#else
user.user_rid = pwdb_uid_to_user_rid (user.smb_userid);
user.group_rid = pwdb_gid_to_group_rid(user.smb_grpid );
+#endif
pstrcpy(full_name , pwfile->pw_gecos );
pstrcpy(logon_script , lp_logon_script ());
@@ -328,6 +334,13 @@ static struct sam_passwd *getsmbfile21pwent(void *vp)
pstrcpy(workstations , "");
}
+#if ARGH
+ if (status != 0x0)
+ {
+ return NULL;
+ }
+#endif
+
user.smb_name = pw_buf->smb_name;
user.full_name = full_name;
user.home_dir = home_dir;