µTasker Forum

µTasker Forum => µTasker general => Topic started by: Jacobo on January 03, 2009, 01:29:57 AM

Title: Authentication to FTP and HTTP.
Post by: Jacobo on January 03, 2009, 01:29:57 AM
Hi Mark!

I'm using the M52233DEMO with uTaskerv1.3.0_SP6 and I need know how enabling in the code (not in web page) the windows (pop up) of authentication to FTP and HTTP.

In uTaskerFTP.PDF I read the way how do it but #define FTP_USER_LOGIN I can not find it in the code.

Thanks

Jacobo
Title: Re: Authentication to FTP and HTTP.
Post by: bert on January 03, 2009, 01:48:52 AM
Hi!
Please look in config.h, line 289.

Good luck!
/Bert
Title: Re: Authentication to FTP and HTTP.
Post by: mark on January 03, 2009, 10:14:57 PM
Hi Jacobo

The define FTP_USER_LOGIN is used by ftp.c to activate FTP login support.
Add the define to config.h to activate it. However note that you still need to start the FTP server with the correct mode for it to actually use authentication.
See also http://www.utasker.com/docs/Code.html - TCP/IP -> ftp.c -> fnStartFtp()

For HTTP the equivalent define is HTTP_AUTHENTICATION. This adds the support to the code. To actually cause authentication to be used the server needs to be started with the WEB_AUTHENTICATE flag set. See fnConfigureAndStartWebServer() in webInterface.c.

Regards

Mark