Hi,
I'm planning to start a project based on CKFinder in ASP.NET and want to do the following:
1.) The user logs in the site with his/her FTP username/password (best if CKFinder has a logon screen for FTP).
2.) CKFinder shows up with the root folder of the given FTP account on the web site.
Is it possible? If yes, could you please direct me a simple example to kick start with?
Thank you in advance.
-- Csaba
I'm planning to start a project based on CKFinder in ASP.NET and want to do the following:
1.) The user logs in the site with his/her FTP username/password (best if CKFinder has a logon screen for FTP).
2.) CKFinder shows up with the root folder of the given FTP account on the web site.
Is it possible? If yes, could you please direct me a simple example to kick start with?
Thank you in advance.
-- Csaba
Re: CKFinder, ASP.NET, FTP
To do this you should write your application which will check username and password then if everything match it should 'start' CKFinder
Your application should set baseUrl and baseDir variables for FTP root folder for logged user
In this way you can use your FTP users and folder but remember that CKFinder will work like normal ASP.NET applicatoin (there is no FTP connector in CKFinder).
Re: CKFinder, ASP.NET, FTP
If I understand correctly, the FTP restrictions (security settings) are not applied to the sub-folders. Isn't it a security hole if someone tries to hack the client application? Is it possible to access somehow another folder from the client by a hack? I mean another FTP user's folder and files?
It is very important to ensure the that our users are separated.
Thank you.
-- Csaba
Re: CKFinder, ASP.NET, FTP
You should use ACL settings for users http://docs.cksource.com/CKFinder_2.x/Developers_Guide/ASP.NET/Configuration/Access_Control. In this way you can set what user can do with files, folders and so one. So your application should set ACL settings for CKFinder to your FTP users.
Remember that what you do with FTP users depends on your application and has nothing common with CKFinder. Your applications should maintain users and set proper configuration (resource types, ACL, etc.) for CKFinder.
EDIT:
You can also set baseUrl and baseDir variables to set users 'root' directory. Please check: http://docs.cksource.com/CKFinder_2.x/Developers_Guide/ASP.NET/Configuration/Quick_Start
Re: CKFinder, ASP.NET, FTP
I understand that CKFinder has no connection with FTP, of course.
Thanks.
Re: CKFinder, ASP.NET, FTP
No CKFinder has no connector to FTP. In your case CKFinder is ASP.NET application.