diff options
author | Andreas Schneider <asn@samba.org> | 2011-06-08 18:55:37 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-07-04 18:28:02 +1000 |
commit | 7e46a84bb769c2e781e2650b4227b05ee3cb9635 (patch) | |
tree | 43e3d5397c37d018d116dec3a96146a2788eb903 /source3/smbd/password.c | |
parent | 45f70db01070cfb0cdfb6ae0e8ee64da2bf42fc0 (diff) | |
download | samba-7e46a84bb769c2e781e2650b4227b05ee3cb9635.tar.gz samba-7e46a84bb769c2e781e2650b4227b05ee3cb9635.tar.bz2 samba-7e46a84bb769c2e781e2650b4227b05ee3cb9635.zip |
s3-auth: Pass the remote_address down to user_info.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/smbd/password.c')
-rw-r--r-- | source3/smbd/password.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/source3/smbd/password.c b/source3/smbd/password.c index 69b37596c5..6a3b6ddf2f 100644 --- a/source3/smbd/password.c +++ b/source3/smbd/password.c @@ -495,7 +495,9 @@ static char *validate_group(struct smbd_server_connection *sconn, if (user_ok(user, snum) && password_ok(actx, enc, get_session_workgroup(sconn), - user,password)) { + user, + sconn->remote_address, + password)) { endnetgrent(); return(user); } @@ -561,7 +563,9 @@ static char *validate_group(struct smbd_server_connection *sconn, if (user_ok(member,snum) && password_ok(actx, enc, get_session_workgroup(sconn), - member,password)) { + member, + sconn->remote_address, + password)) { char *name = talloc_strdup(talloc_tos(), member); SAFE_FREE(member_list); @@ -642,7 +646,9 @@ bool authorise_login(struct smbd_server_connection *sconn, if (password_ok(actx, enc, get_session_workgroup(sconn), - user2,password)) { + user2, + sconn->remote_address, + password)) { ok = True; strlcpy(user,user2,sizeof(fstring)); DEBUG(3,("authorise_login: ACCEPTED: session " @@ -693,7 +699,9 @@ bool authorise_login(struct smbd_server_connection *sconn, if (user_ok(user2,snum) && password_ok(actx, enc, get_session_workgroup(sconn), - user2,password)) { + user2, + sconn->remote_address, + password)) { ok = True; strlcpy(user,user2,sizeof(fstring)); DEBUG(3,("authorise_login: ACCEPTED: " |