def te_NetrDatabaseRedo(self): dce, rpctransport = self.connect() request = nrpc.NetrDatabaseRedo() request['PrimaryName'] = '\x00' * 20 request['ComputerName'] = self.serverName + '\x00' request['Authenticator'] = self.update_authenticator() request['ReturnAuthenticator']['Credential'] = '\x00' * 8 request['ReturnAuthenticator']['Timestamp'] = 0 request['ChangeLogEntry'] = 0 request['ChangeLogEntrySize'] = 0 try: resp = dce.request(request) resp.dump() except Exception as e: if str(e).find('STATUS_NOT_SUPPORTED') < 0: raise
def test_NetrDatabaseRedo(self): dce, rpctransport = self.connect() self.authenticate(dce) request = nrpc.NetrDatabaseRedo() request['PrimaryName'] = self.serverName + '\x00' request['ComputerName'] = self.machine_user + '\x00' request['Authenticator'] = self.update_authenticator() request['ReturnAuthenticator']['Credential'] = b'\x00' * 8 request['ReturnAuthenticator']['Timestamp'] = 0 request['ChangeLogEntry'] = NULL request['ChangeLogEntrySize'] = 0 try: dce.request(request) except DCERPCException as e: # The caller is not a BDC if str(e).find('STATUS_NOT_SUPPORTED') < 0: raise