Filtering requests (wodSFTP / wodSFTP.NET / wodSFTPdll)
by Mike, Wednesday, December 01, 2004, 00:24 (7296 days ago)
Is there a way to filter the requests that a client sends (ie, redirecting an sftp request to a different location?)
Re: Filtering requests
by wodSupport, Wednesday, December 01, 2004, 00:26 (7296 days ago) @ Mike
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
by Mike, Wednesday, December 01, 2004, 00:36 (7296 days ago) @ wodSupport
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
by wodSupport, Wednesday, December 01, 2004, 00:42 (7296 days ago) @ Mike
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
by Mike, Wednesday, December 01, 2004, 00:57 (7296 days ago) @ wodSupport
Understood. Just trying to work around some legacy issues.