Displaying 4 results from an estimated 4 matches for "ntlmssp_buffer_data".
2004 Nov 10
0
[PATCH] NTLM update and crashfix
...client_response;
unsigned char lm_response[LM_RESPONSE_SIZE];
unsigned char hash[LM_HASH_SIZE];
+ unsigned int response_length;
buffer_t *hash_buffer;
int ret;
- if (credentials == NULL) {
+ response_length =
+ ntlmssp_buffer_length(request->response, lm_response);
+ client_response = ntlmssp_buffer_data(request->response, lm_response);
+
+ if ((credentials == NULL) || (response_length < LM_RESPONSE_SIZE)) {
mech_auth_finish(auth_request, NULL, 0, FALSE);
return;
}
@@ -54,8 +59,6 @@ lm_credentials_callback(const char *cred
hash, sizeof(hash));
hex_to_binary(credentials, hash_...
2004 Oct 29
1
[PATCH] yet another NTLM update
...-29 14:54:38.000000000 +0400
@@ -74,7 +74,11 @@ ntlm_credentials_callback(const char *cr
buffer_t *hash_buffer;
int ret;
- if (credentials == NULL && !request->ntlm2_negotiated) {
+ response_length =
+ ntlmssp_buffer_length(request->response, ntlm_response);
+ client_response = ntlmssp_buffer_data(request->response, ntlm_response);
+
+ if ((credentials == NULL && !request->ntlm2_negotiated) || !response_length) {
passdb->lookup_credentials(auth_request,
PASSDB_CREDENTIALS_LANMAN,
lm_credentials_callback);
@@ -85,9 +89,6 @@ ntlm_credentials_callback(const...
2004 Sep 30
1
[PATCH] NTLM2 support
...h_request,
PASSDB_CREDENTIALS_LANMAN,
lm_credentials_callback);
@@ -105,8 +106,16 @@ ntlm_credentials_callback(const char *cr
NTLMSSP_V2_RESPONSE_SIZE) == 0;
} else {
unsigned char ntlm_response[NTLMSSP_RESPONSE_SIZE];
+ const unsigned char *client_lm_response =
+ ntlmssp_buffer_data(auth->response, lm_response);
- ntlmssp_v1_response(hash, auth->challenge, ntlm_response);
+ if (auth->ntlm2_negotiated)
+ ntlmssp2_response(hash, auth->challenge,
+ client_lm_response,
+ ntlm_response);
+ else
+ ntlmssp_v1_response(hash, auth->challenge,
+...
2004 Jul 27
3
[PATCH 0/10] NTLM patchset submission
Hello all,
as I promised some days ago here is NTLM (aka SPA, aka MSN) authentication
support patchset.
It contains common code in src/lib-ntlm directory, Samba compatible
NTLM password scheme and authentication mechanism itself.
All patches are against 1.0-test30.
Please take a look.
Best regards.
--
Andrey Panin | Linux and UNIX system administrator
pazke at donpac.ru | PGP key: