From fcdb99f7ce049494063c88a495dabd8849cf251c Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sun, 29 Apr 2007 21:40:48 +0000 Subject: 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) --- source4/auth/auth_winbind.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'source4/auth/auth_winbind.c') 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); -- cgit