diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-05-04 16:01:47 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-05-04 16:01:47 +0000 |
commit | f6844e0b7eb4412bc44c5533b09f856dc9272e75 (patch) | |
tree | 442d0d97d908695260ac0521259e2d5968260749 /source3/smbd/reply.c | |
parent | f74ea2b78b2aaa4621936c87487f2e9c2072144f (diff) | |
download | samba-f6844e0b7eb4412bc44c5533b09f856dc9272e75.tar.gz samba-f6844e0b7eb4412bc44c5533b09f856dc9272e75.tar.bz2 samba-f6844e0b7eb4412bc44c5533b09f856dc9272e75.zip |
a minimal change to get appliance mode to work with winbindd
we needed to accept usernames of the form DOMAIN/user, which means we
needed to pass the domain to a getpwnam() like routine in certain
critical spots.
What I'd rather do is get rid of "char *user" everywhere and use the
new userdom_struct, but that will have to wait a few days.
(This used to be commit 8b7a10febead8be182e7d5b1d68259e31530b69c)
Diffstat (limited to 'source3/smbd/reply.c')
-rw-r--r-- | source3/smbd/reply.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index ead59ebfc2..90d4200f5e 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -944,7 +944,7 @@ int reply_sesssetup_and_X(connection_struct *conn, char *inbuf,char *outbuf,int } } - if (!Get_Pwnam(user,True)) { + if (!smb_getpwnam(user,domain,True)) { DEBUG(3,("No such user %s - using guest account\n",user)); pstrcpy(user,lp_guestaccount(-1)); guest = True; @@ -979,7 +979,7 @@ int reply_sesssetup_and_X(connection_struct *conn, char *inbuf,char *outbuf,int user we should become. */ { - const struct passwd *pw = Get_Pwnam(user,False); + const struct passwd *pw = smb_getpwnam(user,domain,False); if (!pw) { DEBUG(1,("Username %s is invalid on this system\n",user)); return bad_password_error(inbuf,outbuf); @@ -993,7 +993,7 @@ int reply_sesssetup_and_X(connection_struct *conn, char *inbuf,char *outbuf,int /* register the name and uid as being validated, so further connections to a uid can get through without a password, on the same VC */ - sess_vuid = register_vuid(uid,gid,user,sesssetup_user,guest); + sess_vuid = register_vuid(uid,gid,user,sesssetup_user,domain,guest); SSVAL(outbuf,smb_uid,sess_vuid); SSVAL(inbuf,smb_uid,sess_vuid); |