summaryrefslogtreecommitdiff
path: root/source3/auth/auth_winbind.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-10-07 16:34:23 +0000
committerGerald Carter <jerry@samba.org>2003-10-07 16:34:23 +0000
commite7f41de758a39e6ad242ecbd8162cbf5117ad5a7 (patch)
tree27e17ab5deec7a1beba056da8241805077a48158 /source3/auth/auth_winbind.c
parent764c03b9b8f552c187aad327fc857535ee322036 (diff)
downloadsamba-e7f41de758a39e6ad242ecbd8162cbf5117ad5a7.tar.gz
samba-e7f41de758a39e6ad242ecbd8162cbf5117ad5a7.tar.bz2
samba-e7f41de758a39e6ad242ecbd8162cbf5117ad5a7.zip
make sure to call get_user_groups() with the full winbindd name for a user if he;she has one; bug 406
(This used to be commit 1737b36e9193e30285c598ad75d90f610bab47fe)
Diffstat (limited to 'source3/auth/auth_winbind.c')
-rw-r--r--source3/auth/auth_winbind.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/source3/auth/auth_winbind.c b/source3/auth/auth_winbind.c
index cae7aadd0c..d09987ba37 100644
--- a/source3/auth/auth_winbind.c
+++ b/source3/auth/auth_winbind.c
@@ -126,15 +126,15 @@ static NTSTATUS check_winbind_security(const struct auth_context *auth_context,
if (result == NSS_STATUS_SUCCESS && response.extra_data) {
if (NT_STATUS_IS_OK(nt_status)) {
- if (NT_STATUS_IS_OK(nt_status = get_info3_from_ndr(mem_ctx, &response, &info3))) {
- nt_status =
- make_server_info_info3(mem_ctx,
- user_info->internal_username.str,
- user_info->smb_name.str,
- user_info->domain.str,
- server_info,
- &info3);
+
+ if (NT_STATUS_IS_OK(nt_status = get_info3_from_ndr(mem_ctx, &response, &info3)))
+ {
+ nt_status = make_server_info_info3(mem_ctx,
+ user_info->internal_username.str,
+ user_info->smb_name.str, user_info->domain.str,
+ server_info, &info3);
}
+
}
} else if (NT_STATUS_IS_OK(nt_status)) {
nt_status = NT_STATUS_NO_LOGON_SERVERS;