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/winbindd/winbindd_pam.c | |
parent | 45f70db01070cfb0cdfb6ae0e8ee64da2bf42fc0 (diff) | |
download | samba-7e46a84bb769c2e781e2650b4227b05ee3cb9635.tar.gz samba-7e46a84bb769c2e781e2650b4227b05ee3cb9635.tar.xz 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/winbindd/winbindd_pam.c')
-rw-r--r-- | source3/winbindd/winbindd_pam.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/source3/winbindd/winbindd_pam.c b/source3/winbindd/winbindd_pam.c index 21b237a1f1..7417bf42cb 100644 --- a/source3/winbindd/winbindd_pam.c +++ b/source3/winbindd/winbindd_pam.c @@ -37,6 +37,7 @@ #include "../librpc/gen_ndr/krb5pac.h" #include "passdb/machine_sid.h" #include "auth.h" +#include "../lib/tsocket/tsocket.h" #undef DBGC_CLASS #define DBGC_CLASS DBGC_WINBIND @@ -1115,10 +1116,20 @@ static NTSTATUS winbindd_dual_auth_passdb(TALLOC_CTX *mem_ctx, struct netr_SamInfo3 **pinfo3) { struct auth_usersupplied_info *user_info = NULL; + struct tsocket_address *local; NTSTATUS status; - + int rc; + + rc = tsocket_address_inet_from_strings(mem_ctx, + "ip", + "127.0.0.1", + 0, + &local); + if (rc < 0) { + return NT_STATUS_NO_MEMORY; + } status = make_user_info(&user_info, user, user, domain, domain, - lp_netbios_name(), lm_resp, nt_resp, NULL, NULL, + lp_netbios_name(), local, lm_resp, nt_resp, NULL, NULL, NULL, AUTH_PASSWORD_RESPONSE); if (!NT_STATUS_IS_OK(status)) { DEBUG(10, ("make_user_info failed: %s\n", nt_errstr(status))); |