Ejemplo n.º 1
0
    def test_hLsarQueryDomainInformationPolicy(self):
        dce, rpctransport, policyHandle = self.connect()
        try:
            resp = lsad.hLsarQueryDomainInformationPolicy(
                dce, policyHandle, lsad.POLICY_DOMAIN_INFORMATION_CLASS.
                PolicyDomainQualityOfServiceInformation)
            resp.dump()
        except Exception as e:
            if str(e).find('STATUS_INVALID_PARAMETER') < 0:
                raise

        try:
            resp = lsad.hLsarQueryDomainInformationPolicy(
                dce, policyHandle, lsad.POLICY_DOMAIN_INFORMATION_CLASS.
                PolicyDomainEfsInformation)
            resp.dump()
        except Exception as e:
            if str(e).find('STATUS_OBJECT_NAME_NOT_FOUND') < 0:
                raise

        try:
            resp = lsad.hLsarQueryDomainInformationPolicy(
                dce, policyHandle, lsad.POLICY_DOMAIN_INFORMATION_CLASS.
                PolicyDomainKerberosTicketInformation)
            resp.dump()
        except Exception as e:
            if str(e).find('STATUS_OBJECT_NAME_NOT_FOUND') < 0:
                raise
Ejemplo n.º 2
0
 def test_hLsarQueryDomainInformationPolicy(self):
     dce, rpctransport, policyHandle = self.connect()
     try:
         resp = lsad.hLsarQueryDomainInformationPolicy(dce, policyHandle, lsad.POLICY_DOMAIN_INFORMATION_CLASS.PolicyDomainQualityOfServiceInformation)
         resp.dump()
     except Exception, e:
         if str(e).find('STATUS_INVALID_PARAMETER') < 0:
             raise
Ejemplo n.º 3
0
 def test_hLsarQueryDomainInformationPolicy(self):
     dce, rpctransport, policyHandle = self.connect()
     try:
         resp = lsad.hLsarQueryDomainInformationPolicy(
             dce, policyHandle, lsad.POLICY_DOMAIN_INFORMATION_CLASS.
             PolicyDomainQualityOfServiceInformation)
         #resp.dump()
     except Exception, e:
         if str(e).find('STATUS_INVALID_PARAMETER') < 0:
             raise
Ejemplo n.º 4
0
            resp.dump()
        except Exception, e:
            if str(e).find('STATUS_OBJECT_NAME_NOT_FOUND') < 0:
                raise

    def test_hLsarQueryDomainInformationPolicy(self):
        dce, rpctransport, policyHandle = self.connect()
        try:
            resp = lsad.hLsarQueryDomainInformationPolicy(dce, policyHandle, lsad.POLICY_DOMAIN_INFORMATION_CLASS.PolicyDomainQualityOfServiceInformation)
            resp.dump()
        except Exception, e:
            if str(e).find('STATUS_INVALID_PARAMETER') < 0:
                raise

        try:
            resp = lsad.hLsarQueryDomainInformationPolicy(dce, policyHandle, lsad.POLICY_DOMAIN_INFORMATION_CLASS.PolicyDomainEfsInformation)
            resp.dump()
        except Exception, e:
            if str(e).find('STATUS_OBJECT_NAME_NOT_FOUND') < 0:
                raise

        try:
            resp = lsad.hLsarQueryDomainInformationPolicy(dce, policyHandle, lsad.POLICY_DOMAIN_INFORMATION_CLASS.PolicyDomainKerberosTicketInformation)
            resp.dump()
        except Exception, e:
            if str(e).find('STATUS_OBJECT_NAME_NOT_FOUND') < 0:
                raise

    def test_LsarEnumerateAccounts(self):
        dce, rpctransport, policyHandle = self.connect()
        request = lsad.LsarEnumerateAccounts()
                raise

    def test_hLsarQueryDomainInformationPolicy(self):
        dce, rpctransport, policyHandle = self.connect()
        try:
            resp = lsad.hLsarQueryDomainInformationPolicy(
                dce, policyHandle, lsad.POLICY_DOMAIN_INFORMATION_CLASS.
                PolicyDomainQualityOfServiceInformation)
            resp.dump()
        except Exception, e:
            if str(e).find('STATUS_INVALID_PARAMETER') < 0:
                raise

        try:
            resp = lsad.hLsarQueryDomainInformationPolicy(
                dce, policyHandle, lsad.POLICY_DOMAIN_INFORMATION_CLASS.
                PolicyDomainEfsInformation)
            resp.dump()
        except Exception, e:
            if str(e).find('STATUS_OBJECT_NAME_NOT_FOUND') < 0:
                raise

        try:
            resp = lsad.hLsarQueryDomainInformationPolicy(
                dce, policyHandle, lsad.POLICY_DOMAIN_INFORMATION_CLASS.
                PolicyDomainKerberosTicketInformation)
            resp.dump()
        except Exception, e:
            if str(e).find('STATUS_OBJECT_NAME_NOT_FOUND') < 0:
                raise