Last post Jun 05, 2013 08:24 AM by smirnov
Jun 03, 2013 11:55 PM|bikki_nep|LINK
I need to integrate FTP user name and password with membership provider so that users created within membership provider can have access to the FTP folder without separate login. I managed to find some web based FTP clients which will allow user to login
using ftp server name , ftp username & password and browse directory and files. This is the second part of the solution. First I should be able to integrate ASP.NET Membership provider based username and password with FTP server. Is there any way I can do
Thanks for your kind attention. Please let me know if it is possible and how? any hint?
Jun 04, 2013 03:25 AM|smirnov|LINK
I believe the solution could be following:
- read users/passwords from the database ("select username, password from aspnet_users u, aspnet_membership m where u.UserId=m.UserId",
- validate users against windows users and add new if does not exist
- you might also need to update passwords for existing windows users, if asp.net users changed passwords
- setup all this as console application with a scheduled task on the server and run it e.g. every 1 hour
Jun 05, 2013 12:46 AM|bikki_nep|LINK
Thanks for you sugestion smirnov. But it is not going to solve my problem. I hae seen some CPanel apps ( like Parallel) whihc allows you to manage FTP account from the web based interface. I don't know how did they achieve this. I need a solutions something
like that whereby I can allow admin to create username and pwd to users in membership and at the same time FTP access.
Jun 05, 2013 08:24 AM|smirnov|LINK
First I should be able to integrate ASP.NET Membership provider based username and password with FTP server.
So, this is what my suggestion is about.
The thing about CPanel that allows to manage FTP accounts is a second part of this.
The problem is that ASP.NET users and FTP users are different. So, if you want to let some users to manage FTP you will need to create FTP accounts. This can be done via IIS management tool, or via web panel of your hosting provider but this must be done
manually and will not connect ASP.NET users with FTP users. So, if you want to sync ASP.NET users you need to do something like I wrote before.
Another way is not to use FTP, but let your ASP.NET users manage files and folders using some custom file manager. This will not require FTP accounts, but you would need a file manager that will authorize ASP.NET users to work with your files. Also, this
means that this will not be an FTP, so you cannot use Filezilla, or similar tools for this.