1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-12 12:23:50 +03:00

set netlogon negotiation flags to 0x1ff, not to what the client requests.

this is 0x4000 01ff on NT4 SP4, and 0x0000 01ff on pre-NT4 SP4.
This commit is contained in:
Luke Leighton
-
parent 1c8c644210
commit 59cf9c00d9
3 changed files with 22 additions and 17 deletions

View File

@@ -478,6 +478,7 @@ static void api_lsa_lookup_names( uint16 vuid, prs_struct *data,
{ {
fstring user_name; fstring user_name;
fstrcpy(user_name, unistr2(q_l.lookup_name[i].str.buffer)); fstrcpy(user_name, unistr2(q_l.lookup_name[i].str.buffer));
/* /*
* Map to the UNIX username. * Map to the UNIX username.
*/ */

View File

@@ -478,6 +478,7 @@ static void api_lsa_lookup_names( uint16 vuid, prs_struct *data,
{ {
fstring user_name; fstring user_name;
fstrcpy(user_name, unistr2(q_l.lookup_name[i].str.buffer)); fstrcpy(user_name, unistr2(q_l.lookup_name[i].str.buffer));
/* /*
* Map to the UNIX username. * Map to the UNIX username.
*/ */

View File

@@ -126,10 +126,13 @@ static void net_reply_auth_2(NET_Q_AUTH_2 *q_a, prs_struct *rdata,
DOM_CHAL *resp_cred, int status) DOM_CHAL *resp_cred, int status)
{ {
NET_R_AUTH_2 r_a; NET_R_AUTH_2 r_a;
NEG_FLAGS srv_flgs;
srv_flgs.neg_flags = 0x000001ff;
/* set up the LSA AUTH 2 response */ /* set up the LSA AUTH 2 response */
make_net_r_auth_2(&r_a, resp_cred, &(q_a->clnt_flgs), status); make_net_r_auth_2(&r_a, resp_cred, &srv_flgs, status);
/* store the response in the SMB stream */ /* store the response in the SMB stream */
net_io_r_auth_2("", &r_a, rdata, 0); net_io_r_auth_2("", &r_a, rdata, 0);