Samba 2.2.0 problems editing ACLs via NT/Win9x

Jim McDonough jmcd at us.ibm.com
Thu Jun 7 16:12:28 GMT 2001


Gerald Carter wrote:
>>
>> Mike, mine doesn't work either,
>
>Jim,
>
>Any luck on this?  If not I will try to look at it
>later today.

Jerry,
I've made some progress.  I'm still new at parts of this.  I'll summarize
what I've got so far and if anyone can give me pointers it would be great.

On the wire, Win9x sends an opnum 0x27 on the srvsvc pipe.  I believe (only
a guess...I'll write some code on windows to poke around some more) it is
the Win9x version of NetFileEnum (in MSDN, there is a level 50 file info
structure, instead of 2 or 3 on NT).  Here's how I think the request goes
(borrowing names from other structs in rpc_srvsvc.h):
uint32  ptr_srv_name;
UNISTR2 uni_srv_name;
align to 4 bytes
uint32  ptr_qual_name;
UNISTR2 uni_qual_name;
align to 4 bytes
UNISTR2 uni_file_name;
align to 4 bytes
uint32 unknown; (is 0x00000007 in all my test cases)
uint32 unknown; (I've only seen 0)
uint32 unknown; (I've only seen 0)
uint16 unknown; (my guess is a status code, but others' experiences would
be appreciated here, only seen 0)
align to 4 bytes

The response gives me more trouble:
uint32 ?; some kind of pointer
uint32 a_size; size of the whole response;
uint32 ?; another pointer
uint32 b_size; size of the whole response, again..? At least in my cases
then it gets kind of fuzzy for me...here's what I get next (actual data):
01 00 04 80 14 00 00 00 24 00 00 00 00 00 00 00  (the 4th byte was 84
sometimes)
40 00 00 00 01 02 00 00 00 00 00 05 20 00 00 00
20 02 00 00 01 05 00 00 00 00 00 05 15 00 00 00
F8 9F B4 74 DB EB 0C 50 83 BA F4 7F 01 02 00 00
02 00
then comes:
uint16 c_size; size of what remains in the response
uint16 num_entries; the number of entries to follow
then one entry for each line on the permissions dialog, and the entry for
"Everyone - full control" is definitely:
00 00 00 00
14 00 FF 01 1F 00 01 01 00 00 00 00 00 01 00 00 00 00 00 00 00 00
though I'm not sure if that first dword of zeroes is with that entry or
before it or exactly what.

For example, this is the set of 3 entries, one is "Everyone -full control",
one is read-write, one is read-only:
64 00 bytes following
03 00 number of entries

00 00 00 03
24 00 BF 01 13 00 01 05 00 00 00 00 00 05 15 00 00 00 F8 9F B4 74 DB EB 0C
50 83 BA
F4 7F E8 03

00 00 00 03
24 00 A9 00 12 00 01 05 00 00 00 00 00 05 15 00 00 00 21 3E ED 46 59 33 84
3B 39 B0
9A 66 1A 0D

00 00 00 10
14 00 FF 01 1F 00 01 01 00 00 00 00 00 01 00 00 00 00 00 00 00 00

Any help on what things might mean would be great (yes, I see the uint16
that is the size of each entry, but beyond that I'm an idiot).

TIA,
Jim

----------------------------
Jim McDonough
Linux Technology Center
IBM Boulder

Notes: Jim McDonough/Boulder/IBM @ IBMUS
VNET: JMCD at IBMUSM54
Internet: jmcd at us.ibm.com

Phone: (303) 924-5822
T/L: 263-5822


Gerald Carter <gcarter at valinux.com>@lists.samba.org on 06/07/2001 07:46:41
AM

Sent by:  samba-technical-admin at lists.samba.org


To:   Jim McDonough/Boulder/IBM at IBMUS
cc:   Mike Pain <mtp at blaby.gov.uk>, <samba-technical at samba.org>
Subject:  Re: Samba 2.2.0 problems editing ACLs via NT/Win9x



On Mon, 4 Jun 2001, Jim McDonough wrote:
>
> Mike, mine doesn't work either,

Jim,

Any luck on this?  If not I will try to look at it
later today.








CHeers, jerry
----------------------------------------------------------------------
   /\  Gerald (Jerry) Carter                     Professional Services
 \/    http://www.valinux.com/  VA Linux Systems   gcarter at valinux.com
       http://www.samba.org/       SAMBA Team          jerry at samba.org
       http://www.plainjoe.org/                     jerry at plainjoe.org

       "...a hundred billion castaways looking for a home."
                                - Sting "Message in a Bottle" ( 1979 )









More information about the samba-technical mailing list