Writing ACL tests in python ...
Richard Sharpe
realrichardsharpe at gmail.com
Sat Mar 24 22:36:25 MDT 2012
Hi folks,
Well so far I can print out the SD on the root of a share:
The root of the share:
SD: O:S-1-5-21-2069841017-3693496947-3049343334-1000G:S-1-22-2-500D:(A;;0x001f01ff;;;S-1-5-21-2069841017-3693496947-3049343334-1000)(A;;0x001200a9;;;S-1-22-2-500)(A;;0x001200a9;;;WD)(A;OICIIO;0x001f01ff;;;CO)(A;OICIIO;0x001200a9;;;CG)(A;OICIIO;0x001200a9;;;WD)
This took maybe 20 lines of Python. The biggest difficulty was
understanding all the stuff that is there.
It should be easy to actually put a different SD back on the root of
the share and then start testing all the things I think should be
tested.
However, I guess that the hardest part will be coming up with a
framework that others can easily add to. Perhaps an extensible list of
tests ...
--
Regards,
Richard Sharpe
(何以解憂?唯有杜康。--曹操)
More information about the samba-technical
mailing list