lsa open policy argument
Tim Potter
tpot at samba.org
Wed Aug 23 03:17:13 GMT 2006
On Tue, 2006-08-22 at 22:34 -0400, Michael B Allen wrote:
> On Wed, 23 Aug 2006 12:07:12 +1000
> Tim Potter <tpot at samba.org> wrote:
>
> > the argument that is used for lsa_OpenPolicy() due to the string
> > attribute bug.
>
> Just curious but what is the "string attribute bug"? Is it a Windows
> thing or is it specific to Samba?
Whoever wrote the original IDL for the OpenPolicy function forgot the
[string] attribute on the system_name parameter which means that you
only see a pointer to a single uint16 on the wire, instead of an array
of uint16s.
>From Samba's IDL:
NTSTATUS lsa_OpenPolicy (
[in,unique] uint16 *system_name,
[in] lsa_ObjectAttribute *attr,
[in] uint32 access_mask,
[out] policy_handle *handle
);
vs
NTSTATUS lsa_OpenPolicy2 (
[in,unique] [string,charset(UTF16)] uint16 *system_name,
[in] lsa_ObjectAttribute *attr,
[in] uint32 access_mask,
[out] policy_handle *handle
);
Tim.
More information about the samba-technical
mailing list