def test_hLsarOpenAccount(self): dce, rpctransport, policyHandle = self.connect() resp = lsad.hLsarEnumerateAccounts(dce, policyHandle) #resp.dump() resp = lsad.hLsarOpenAccount(dce, policyHandle, resp['EnumerationBuffer']['Information'][0]['Sid'].formatCanonical()) #resp.dump() resp = lsad.hLsarClose(dce, resp['AccountHandle'])
def test_hLsarOpenAccount(self): dce, rpctransport, policyHandle = self.connect() resp = lsad.hLsarEnumerateAccounts(dce, policyHandle) resp.dump() resp = lsad.hLsarOpenAccount(dce, policyHandle, resp['EnumerationBuffer']['Information'][0]['Sid'].formatCanonical()) resp.dump() resp = lsad.hLsarClose(dce, resp['AccountHandle']) resp.dump()