Author Topic: Authentication to FTP and HTTP.  (Read 6648 times)

Offline Jacobo

  • Newbie
  • *
  • Posts: 9
    • View Profile
Authentication to FTP and HTTP.
« 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

Offline bert

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Authentication to FTP and HTTP.
« Reply #1 on: January 03, 2009, 01:48:52 AM »
Hi!
Please look in config.h, line 289.

Good luck!
/Bert

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3234
    • View Profile
    • uTasker
Re: Authentication to FTP and HTTP.
« Reply #2 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