Error code: 0xC000000D for Smb2SetInfoRequest

0

I'm using jcifs-ng (https://github.com/AgNO3/jcifs-ng) and implementing SMB2 SET_INFO request for security info, particularly trying to set the file owner. I implemented a BasicFileInformation class that follows the security descriptor specification defined in MS-DTYP section 2.4.6. However, I get that invalid parameter error. Is there a way to debug this so that I can pinpoint which parameter is incorrect?

Also, I'm using a BitSet for the Control field and setting bits starting with index 0 for the SR bit. Is that the correct order?

smb
jcifs
asked on Stack Overflow Feb 7, 2018 by GabeV

1 Answer

1

You can use Wireshark to browse your request. Wireshark has good dissectors for ACLs.

Btw, MS states that the ACL format is internal and the right way to access (create) it is using Win API. "Technically correct, absolutely useless" when it comes to a network message which is originated in a non-windows environment. Good news are that the ACL format did not change for years.

answered on Stack Overflow Feb 8, 2018 by Mark Rabinovich

User contributions licensed under CC BY-SA 3.0