diff options
author | Andrew Bartlett <abartlet@samba.org> | 2009-12-14 20:32:47 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2009-12-22 17:29:15 +1100 |
commit | 0809696dbf3f551c0fbd37154025053b55fa07ee (patch) | |
tree | 59a0f30cf570fd398c2d22931b7fe374f4ee2585 /source4/auth/ntlm/auth_winbind.c | |
parent | 383369e8f204f5a02b6c056f276f14f2f9518044 (diff) | |
download | samba-0809696dbf3f551c0fbd37154025053b55fa07ee.tar.gz samba-0809696dbf3f551c0fbd37154025053b55fa07ee.tar.bz2 samba-0809696dbf3f551c0fbd37154025053b55fa07ee.zip |
s4:auth Change 'get_challenge' API to be more like Samba3
It is just easier to fill in the known to be 8 byte challenge than
stuff about with allocated pointers.
Andrew Bartlett
Diffstat (limited to 'source4/auth/ntlm/auth_winbind.c')
-rw-r--r-- | source4/auth/ntlm/auth_winbind.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/auth/ntlm/auth_winbind.c b/source4/auth/ntlm/auth_winbind.c index 568226dd87..173a895390 100644 --- a/source4/auth/ntlm/auth_winbind.c +++ b/source4/auth/ntlm/auth_winbind.c @@ -271,7 +271,7 @@ static NTSTATUS winbind_check_password(struct auth_method_context *ctx, s->req.in.logon.password= password_info; } else { struct netr_NetworkInfo *network_info; - const uint8_t *challenge; + uint8_t chal[8]; status = encrypt_user_info(s, ctx->auth_ctx, AUTH_PASSWORD_RESPONSE, user_info, &user_info_new); @@ -281,10 +281,10 @@ static NTSTATUS winbind_check_password(struct auth_method_context *ctx, network_info = talloc(s, struct netr_NetworkInfo); NT_STATUS_HAVE_NO_MEMORY(network_info); - status = auth_get_challenge(ctx->auth_ctx, &challenge); + status = auth_get_challenge(ctx->auth_ctx, chal); NT_STATUS_NOT_OK_RETURN(status); - memcpy(network_info->challenge, challenge, sizeof(network_info->challenge)); + memcpy(network_info->challenge, chal, sizeof(network_info->challenge)); network_info->nt.length = user_info->password.response.nt.length; network_info->nt.data = user_info->password.response.nt.data; |