mirror of
https://github.com/samba-team/samba.git
synced 2025-12-03 04:23:50 +03:00
r20904: This is a placeholder fix. Apparently Windows 2000
is sharing the IDL for the SAMR pipe with Windows 2003 but returning NT_STATUS_NOT_SUPPORTED rather than a DCE/RCE fault. We need to catch this in the general sense by looking at the returned PDU size. But this immediate change fixes password changes via pam_winbind against Windows 2000 DCs.
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
ff8f27108d
commit
a3602cc6d4
@@ -6,7 +6,7 @@
|
||||
* Copyright (C) Paul Ashton 1997-2000,
|
||||
* Copyright (C) Elrond 2000,
|
||||
* Copyright (C) Jeremy Allison 2001,
|
||||
* Copyright (C) Jean Fran<EFBFBD>ois Micouleau 1998-2001,
|
||||
* Copyright (C) Jean François Micouleau 1998-2001,
|
||||
* Copyright (C) Jim McDonough <jmcd@us.ibm.com> 2002.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@@ -7780,6 +7780,14 @@ BOOL samr_io_r_chgpasswd_user3(const char *desc, SAMR_R_CHGPASSWD_USER3 *r_u,
|
||||
if (!prs_uint32("ptr_info", ps, depth, &r_u->ptr_info))
|
||||
return False;
|
||||
|
||||
/* special case: Windows 2000 can return stub data here saying
|
||||
NT_STATUS_NOT_SUPPORTED */
|
||||
|
||||
if ( NT_STATUS_EQUAL( NT_STATUS_NOT_SUPPORTED, NT_STATUS(r_u->ptr_info)) ) {
|
||||
r_u->status = NT_STATUS_NOT_SUPPORTED;
|
||||
return True;
|
||||
}
|
||||
|
||||
if (r_u->ptr_info && r_u->info != NULL) {
|
||||
/* SAM_UNK_INFO_1 */
|
||||
if (!sam_io_unk_info1("info", r_u->info, ps, depth))
|
||||
|
||||
Reference in New Issue
Block a user