FWD: Some compilation warnings
Luke Kenneth Casson Leighton
lkcl at samba-tng.org
Thu Jun 21 13:02:07 GMT 2001
On Wed, Jun 20, 2001 at 06:00:05PM +0200, Elrond wrote:
> On Wed, Jun 20, 2001 at 10:28:03AM -0500, Gerald Carter wrote:
> > On Wed, 20 Jun 2001, Luke Kenneth Casson Leighton wrote:
> >
> > > hiya jerry, good to hear from you.
> >
> > :-) You doing ok?
> >
> > > unrecognised opcodes are already fault-pdu'd, that's how
> > > ms managed to upgrade to LsaOpenPolicy3 and still
> > > maintain backwards-compatibility.
> >
> > But it was not an unrecognized opcode. It was a known command
> > with an unknown info level :)
>
> Exactly my point.
i'm mentioning this [the unrecognised opcodes being
fault pdu'd] for completeness and as a comparison
for what this is _not_.
> The main other question is how to do this the _right_ way
> in TNG... Deciding, that this is an unknown info level
> happens in _samr_get_user_info(), what is the nicest way,
> that this functions tells the dce/rpc-rt, that it wants to
> faul-pdu on this request?
well, if nothing else, you decode the 516-byte blob,
and if the length indicator is greater than 129 [it's
a 4-byte int, so plenty of room) then you return
a Fault pdu.
simple as that, really.
if this is a set you're talking about, not a get.
0x1a. 16 + 10. 26. hm, haven't got an info level 26
in the TNG codebase.
More information about the samba-technical
mailing list