Filtering requests (wodSFTP / wodSFTP.NET / wodSFTPdll)
Is there a way to filter the requests that a client sends (ie, redirecting an sftp request to a different location?)
Re: Filtering requests
You mean when he, for example, downloads file, you want to give him some other file to download? Yes, in SftpDownloadFile event you can change 'ResolvedPath' argument to something else. User will not know the difference - but wodSSHServer will send him different file.
Re: Filtering requests
You mean when he, for example, downloads file, you want to give him some other file to download? Yes, in SftpDownloadFile event you can change 'ResolvedPath' argument to something else. User will not know the difference - but wodSSHServer will send him different file.
Is there any filtering done beforehand? For example, when trying to get the file c:/ftp/ftpexternal/pub/PDSUpdate/Catalog.import I get the following:
unable to identify c:/ftp/ftpexternal/pub/PDSUpdate/Catalog.import: permission denied
I imagine this is due to the colon. Is there any way around this?
Re: Filtering requests
Mike,
you should request files relative from user's HomeDir (I assume you talk here as relative paths as visible by the client).
Re: Filtering requests
Understood. Just trying to work around some legacy issues.