PC Review


Reply
Thread Tools Rate Thread

Access ftp using app pool identity with C#

 
 
You Big Dummy
Guest
Posts: n/a
 
      10th Oct 2008
I have a web application that will upload files to ftp. I can succesfully do
this if I specify the credentials using the ftpwebrequest.credentials
property. But the problem is that we won't to be able to have our code use
the identity of the application pool to access the ftp but can't seem to
figure out how as the credentials property only accepts the
networkcredentials class.
 
Reply With Quote
 
 
 
 
Jeroen Mostert
Guest
Posts: n/a
 
      11th Oct 2008
You Big Dummy wrote:
> I have a web application that will upload files to ftp. I can succesfully do
> this if I specify the credentials using the ftpwebrequest.credentials
> property. But the problem is that we won't to be able to have our code use
> the identity of the application pool to access the ftp but can't seem to
> figure out how as the credentials property only accepts the
> networkcredentials class.


That's because FTP doesn't support integrated authentication, so you can't
use a Windows identity to authenticate. FTP uses only plaintext passwords
and you don't have access to the password of a Windows identity.

If the FTP server is in your domain, it would be a better idea not to use
FTP at all and copy files directly over the network. A robust way of doing
this is provided by the Robocopy utility.

If the FTP server is not in your domain, you should not have a Windows
account whose credentials match that of one on the FTP server. A cracker
could use a successful attack on the FTP server to compromise your domain.
Store the FTP credentials somewhere safe instead -- the web.config with
encryption is probably sufficient.

--
J.
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
App Pool Identity -- error if not Network Service David Lozzi Microsoft ASP .NET 0 30th Aug 2007 04:58 PM
application pool identity question Tom Microsoft ASP .NET 3 30th May 2007 03:05 PM
IIS6 Application Pool Identity 'invalid' Matt Microsoft ASP .NET 1 15th Oct 2003 07:45 PM
IIS6 Application Pool Identity Matthieu Nicolescu[Labo .NET] Microsoft C# .NET 0 29th Jul 2003 01:36 AM
IIS6 Application Pool Identity Matthieu Nicolescu[Labo .NET] Microsoft Dot NET 0 29th Jul 2003 01:35 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:35 PM.