diff options
author | Gerald Carter <jerry@samba.org> | 2004-08-27 13:39:09 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2004-08-27 13:39:09 +0000 |
commit | 4fcc388c19deddce0d9d2b3d23a8b86e08e0dd33 (patch) | |
tree | f57f15d51566e50dc3acf6256662ab2a9ab49e19 /source/nsswitch | |
parent | cda7642d7e8afaafc69fb8a6fdeee04c475779a1 (diff) | |
download | samba-4fcc388c19deddce0d9d2b3d23a8b86e08e0dd33.tar.gz samba-4fcc388c19deddce0d9d2b3d23a8b86e08e0dd33.tar.xz samba-4fcc388c19deddce0d9d2b3d23a8b86e08e0dd33.zip |
r2086: fix bug with winbindd_getpwnam() caused by Microsoft DC's not filling in the username in the user_info3
Diffstat (limited to 'source/nsswitch')
-rw-r--r-- | source/nsswitch/winbindd_pam.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/nsswitch/winbindd_pam.c b/source/nsswitch/winbindd_pam.c index 03947de8750..08913a35a48 100644 --- a/source/nsswitch/winbindd_pam.c +++ b/source/nsswitch/winbindd_pam.c @@ -283,7 +283,7 @@ enum winbindd_result winbindd_pam_auth(struct winbindd_cli_state *state) } if (NT_STATUS_IS_OK(result)) { - netsamlogon_cache_store( cli->mem_ctx, &info3 ); + netsamlogon_cache_store( cli->mem_ctx, name_user, &info3 ); wcache_invalidate_samlogon(find_domain_from_name(name_domain), &info3); /* Check if the user is in the right group */ @@ -538,7 +538,7 @@ enum winbindd_result winbindd_pam_auth_crap(struct winbindd_cli_state *state) } if (NT_STATUS_IS_OK(result)) { - netsamlogon_cache_store( cli->mem_ctx, &info3 ); + netsamlogon_cache_store( cli->mem_ctx, name_user, &info3 ); wcache_invalidate_samlogon(find_domain_from_name(name_domain), &info3); if (!NT_STATUS_IS_OK(result = check_info3_in_group(mem_ctx, &info3, state->request.data.auth_crap.required_membership_sid))) { |