summaryrefslogtreecommitdiff
path: root/source4/auth
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2007-04-29 21:40:48 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:51:47 -0500
commitfcdb99f7ce049494063c88a495dabd8849cf251c (patch)
tree8d4373aa935144a1bfa8b9f64c049d144b2cfcf3 /source4/auth
parentea34bca0bd2566879d48f2197f2b7336dee8fd5b (diff)
downloadsamba-fcdb99f7ce049494063c88a495dabd8849cf251c.tar.gz
samba-fcdb99f7ce049494063c88a495dabd8849cf251c.tar.bz2
samba-fcdb99f7ce049494063c88a495dabd8849cf251c.zip
r22582: Cleanups towards making winbind work again. We still have a long way to go, as this has bitrotted over the past months.
This change in particular catches winbind up with the next composite_create() function. We also needed to remove an unused flags field, and fill in the lm response. Andrew Bartlett (This used to be commit bd26e4ffaf1c060fdc3aae28fd4393e83c5a83ea)
Diffstat (limited to 'source4/auth')
-rw-r--r--source4/auth/auth_winbind.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source4/auth/auth_winbind.c b/source4/auth/auth_winbind.c
index 0f31caa047..dff81cd64d 100644
--- a/source4/auth/auth_winbind.c
+++ b/source4/auth/auth_winbind.c
@@ -210,8 +210,8 @@ static NTSTATUS winbind_check_password(struct auth_method_context *ctx,
network_info->nt.length = user_info->password.response.nt.length;
network_info->nt.data = user_info->password.response.nt.data;
- network_info->nt.length = user_info->password.response.lanman.length;
- network_info->nt.data = user_info->password.response.lanman.data;
+ network_info->lm.length = user_info->password.response.lanman.length;
+ network_info->lm.data = user_info->password.response.lanman.data;
identity_info = &network_info->identity_info;
s->req.in.logon_level = 2;
@@ -226,6 +226,9 @@ static NTSTATUS winbind_check_password(struct auth_method_context *ctx,
identity_info->workstation.string = user_info->workstation_name;
s->req.in.validation_level = 3;
+
+ NDR_PRINT_IN_DEBUG(winbind_SamLogon, &s->req);
+
status = IRPC_CALL(ctx->auth_ctx->msg_ctx, winbind_servers[0],
winbind, WINBIND_SAMLOGON,
&s->req, s);