mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
Fix for Win95 not being able to find PDC (for User/Server Manager, and
password change requests), from Michael Stockman <pgmtekn@algonet.se>. GETDC on \MAILSLOT\NET\NETLOGON necessarily returns less information than the NTLOGON version.
This commit is contained in:
parent
c086c7ab94
commit
8a603a8793
@ -136,18 +136,21 @@ logons are not enabled.\n", inet_ntoa(p->ip) ));
|
||||
fstrcpy(q, reply_name);
|
||||
q = skip_string(q, 1); /* PDC name */
|
||||
|
||||
q = align2(q, buf);
|
||||
|
||||
/* PDC and domain name */
|
||||
q = ascii_to_unibuf(q, my_name, outbuf+sizeof(outbuf)-q-2);
|
||||
q = ascii_to_unibuf(q, global_myworkgroup, outbuf+sizeof(outbuf)-q-2);
|
||||
if (strcmp(mailslot, NT_LOGON_MAILSLOT)==0)
|
||||
{
|
||||
q = align2(q, buf);
|
||||
|
||||
SIVAL(q, 0, ntversion);
|
||||
q += 4;
|
||||
SSVAL(q, 0, lmnttoken);
|
||||
q += 2;
|
||||
SSVAL(q, 0, lm20token);
|
||||
q += 2;
|
||||
q = ascii_to_unibuf(q, my_name, outbuf+sizeof(outbuf)-q-2);
|
||||
q = ascii_to_unibuf(q, global_myworkgroup, outbuf+sizeof(outbuf)-q-2);
|
||||
|
||||
SIVAL(q, 0, ntversion);
|
||||
q += 4;
|
||||
SSVAL(q, 0, lmnttoken);
|
||||
q += 2;
|
||||
SSVAL(q, 0, lm20token);
|
||||
q += 2;
|
||||
}
|
||||
|
||||
DEBUG(3,("process_logon_packet: GETDC request from %s at IP %s, \
|
||||
reporting %s domain %s 0x%x ntversion=%x lm_nt token=%x lm_20 token=%x\n",
|
||||
|
Loading…
x
Reference in New Issue
Block a user