Print the output of 'getsd'
(self, results)
| 1861 | |
| 1862 | @CLIUtil.addoutput(getsd) |
| 1863 | def getsd_output(self, results): |
| 1864 | """ |
| 1865 | Print the output of 'getsd' |
| 1866 | """ |
| 1867 | sd = SECURITY_DESCRIPTOR(results) |
| 1868 | print("Owner:", sd.OwnerSid.summary()) |
| 1869 | print("Group:", sd.GroupSid.summary()) |
| 1870 | if getattr(sd, "DACL", None): |
| 1871 | print("DACL:") |
| 1872 | for ace in sd.DACL.Aces: |
| 1873 | print(" - ", ace.toSDDL()) |
| 1874 | if getattr(sd, "SACL", None): |
| 1875 | print("SACL:") |
| 1876 | for ace in sd.SACL.Aces: |
| 1877 | print(" - ", ace.toSDDL()) |
| 1878 | |
| 1879 | |
| 1880 | if __name__ == "__main__": |
nothing calls this directly
no test coverage detected