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

Fix for bug #334. We don't unmarshall the trusted domain or secrets

info delta correctly and thus crash when doing a net rpc samdump.

The easiest thing at the moment it to comment out these functions as
they seriously don't correspond with reality (netmon/ethereal) and the
data in the containers aren't used anyway.
(This used to be commit 695aa39c5d798b112f0a06281b499fcac8a5bf31)
This commit is contained in:
Tim Potter 2003-09-08 02:13:38 +00:00
parent 5660c449ef
commit b42500299c

View File

@ -2447,6 +2447,10 @@ static BOOL net_io_sam_policy_info(const char *desc, SAM_DELTA_POLICY *info,
return True;
}
#if 0
/* This function is pretty broken - see bug #334 */
/*******************************************************************
reads or writes a structure.
********************************************************************/
@ -2495,6 +2499,12 @@ static BOOL net_io_sam_trustdoms_info(const char *desc, SAM_DELTA_TRUSTDOMS *inf
return True;
}
#endif
#if 0
/* This function doesn't work - see bug #334 */
/*******************************************************************
reads or writes a structure.
********************************************************************/
@ -2582,6 +2592,8 @@ static BOOL net_io_sam_secret_info(const char *desc, SAM_DELTA_SECRET *info,
return True;
}
#endif
/*******************************************************************
reads or writes a structure.
********************************************************************/
@ -2726,14 +2738,10 @@ static BOOL net_io_sam_delta_ctr(const char *desc, uint8 sess_key[16],
return False;
break;
case SAM_DELTA_TRUST_DOMS:
if (!net_io_sam_trustdoms_info("", &delta->trustdoms_info, ps, depth))
return False;
break;
/* These guys are implemented but broken */
case SAM_DELTA_TRUST_DOMS:
case SAM_DELTA_SECRET_INFO:
if (!net_io_sam_secret_info("", &delta->secret_info, ps, depth))
return False;
break;
/* These guys are not implemented yet */