def test_query_set_object_security(self):
     dce, rpctransport, scHandle  = self.connect()
     
     try:
         resp = scmr.hRQueryServiceObjectSecurity(dce, scHandle, scmr.DACL_SECURITY_INFORMATION, 0)
         resp.dump()
     except Exception, e:
        if str(e).find('rpc_s_access_denied') <= 0:
            raise
예제 #2
0
 def test_query_set_object_security(self):
     dce, rpc_transport = self.connect()
     scHandle = self.get_service_handle(dce)
     try:
         resp = scmr.hRQueryServiceObjectSecurity(
             dce, scHandle, scmr.DACL_SECURITY_INFORMATION, 0)
         resp.dump()
     except scmr.DCERPCException as e:
         if str(e).find('rpc_s_access_denied') <= 0:
             raise
     scmr.hRCloseServiceHandle(dce, scHandle)