all groups > iis ftp > november 2006 >
You're in the

iis ftp

group:

Server side program accepts/rejects connection to FTP server



Server side program accepts/rejects connection to FTP server Steve Richter
11/18/2006 9:13:59 AM
iis ftp: Is is possible for the Windows FTP server to call a server side program
that would decide if the FTP connection is to be accepted or rejected?

The FTP server side program would be passed parms such as user name,
password, IP address of the client, type of access ( put or get ) and
the directory being accessed. This program would return an accept or
reject return code.

If this is not possible can I dynamically config access to the FTP
server? If someone wants access to my FTP server they first visit my
web site and an email message containing a temporary user name and
password is sent to them. My server code then dynamically configs the
FTP server to allow access to that user.

Clicking the link on my web site to download a file ( source code )
does not work because the end user is on a mainframe type system and
the PC they are browsing from is not the system to FTP to.

I hope this is clear.

thanks,

-Steve
Re: Server side program accepts/rejects connection to FTP server Steve Richter
11/18/2006 9:51:28 PM

[quoted text, click to view]

that is what I needed to know. Thanks.

-Steve
Re: Server side program accepts/rejects connection to FTP server Bernard Cheah [MVP]
11/19/2006 12:00:00 AM
Not natively. FTP does has minimum security control.e.g. login
authentication, ip restriction, access authorization, etc. but none of this
has open interface via ftp protocol.

so to get what you need. your app will have to do some magic. say
dynamically allow userABC to download file.
E.g. let's say. now your application accept userABC, so you need to create
userABC windows account, grant the account read / write access on the
files/etc. when userABC try to connect ftp, it will first authenticate with
ftp before accessing the file.

--
Regards,
Bernard Cheah
http://www.iis.net/
http://www.iis-resources.com/
http://msmvps.com/blogs/bernard/


[quoted text, click to view]

AddThis Social Bookmark Button