예제 #1
0
    def test_hLsarAddAccountRights_hLsarRemoveAccountRights(self):
        dce, rpctransport, policyHandle = self.connect()
        sid = 'S-1-5-32-504'

        resp = lsad.hLsarAddAccountRights(dce, policyHandle, sid, ('SeChangeNotifyPrivilege', ))
        #resp.dump()
        resp = lsad.hLsarRemoveAccountRights(dce, policyHandle, sid, ('SeChangeNotifyPrivilege', ))
예제 #2
0
    def test_hLsarAddAccountRights_hLsarRemoveAccountRights(self):
        dce, rpctransport, policyHandle = self.connect()
        sid = 'S-1-5-32-504'

        resp = lsad.hLsarAddAccountRights(dce, policyHandle, sid, ('SeChangeNotifyPrivilege', ))
        resp.dump()
        resp = lsad.hLsarRemoveAccountRights(dce, policyHandle, sid, ('SeChangeNotifyPrivilege', ))
        resp.dump()