<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: FTP server anonymous does't work on MQX4.1 in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/FTP-server-anonymous-does-t-work-on-MQX4-1/m-p/366963#M12115</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My firmware on MQX4.1 is not fully compatible with MQX3.8 one, but now everythink is clear and OK.&lt;/P&gt;&lt;P&gt;Many thanks and best regards,&lt;/P&gt;&lt;P&gt;Corrado&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Feb 2015 17:11:59 GMT</pubDate>
    <dc:creator>Curro</dc:creator>
    <dc:date>2015-02-19T17:11:59Z</dc:date>
    <item>
      <title>FTP server anonymous does't work on MQX4.1</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/FTP-server-anonymous-does-t-work-on-MQX4-1/m-p/366960#M12112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hello to everyone,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I'm working with a Kinetis K60 on a custom board and I'm using FTP server with MQX 4.1.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I try to set anonymous connection with no results.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I compiled MQX with&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;/*&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;** MGCT: &amp;lt;option type="bool"/&amp;gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;*/&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;#ifndef FTPSRVCFG_IS_ANONYMOUS&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; #define FTPSRVCFG_IS_ANONYMOUS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (1)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;#endif&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;in rtcscfg.h file and FTP so defined in my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;uint32_t initFTP()&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;{&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FTPSRV_PARAM_STRUCT params={0};&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;uint32_t handle;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; #if RTCSCFG_ENABLE_IP4&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; params.af |= AF_INET;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; #endif&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; #if RTCSCFG_ENABLE_IP6&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; params.af |= AF_INET6;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; #endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp; params.auth_table = NULL;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; params.root_dir = "a:";&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; handle = FTPSRV_init(&amp;amp;params); &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; return handle;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I also tried to comment &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;params.auth_table line or to create a &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;FTPSRV_AUTH_STRUCT with 0, NULL or "" fields but ftp server never works.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;Everything is ok i create a user+passw connection (not anonymous).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;Any idea?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;Many thanks and best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;Corrado&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 12:44:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/FTP-server-anonymous-does-t-work-on-MQX4-1/m-p/366960#M12112</guid>
      <dc:creator>Curro</dc:creator>
      <dc:date>2015-02-11T12:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: FTP server anonymous does't work on MQX4.1</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/FTP-server-anonymous-does-t-work-on-MQX4-1/m-p/366961#M12113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your bug report.&lt;/P&gt;&lt;P&gt;I tested it and you are right it is a bug – anonymous authentication don’t work.&lt;/P&gt;&lt;P&gt;Unfortunately I didn’t found any fast fix for that till now.&lt;/P&gt;&lt;P&gt;Anyway, I reported it into our internal bug database and it will be fixed in one of next MQX releases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just discover funny thing.&lt;/P&gt;&lt;P&gt;If ftpsrv_users[] contains {"anonymous", "", NULL},&lt;/P&gt;&lt;P&gt;ftp works with username “anonymous” and password “NULL”&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;RadekS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 16:13:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/FTP-server-anonymous-does-t-work-on-MQX4-1/m-p/366961#M12113</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2015-02-17T16:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Re: FTP server anonymous does't work on MQX4.1</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/FTP-server-anonymous-does-t-work-on-MQX4-1/m-p/366962#M12114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After more detail analysis, we discovered that I was wrong.&lt;/P&gt;&lt;P&gt;It is rather misunderstanding instead of bug.&lt;/P&gt;&lt;P&gt;Anonymous authentication works correctly according RFC959.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to split it into two points according two option how to understand to anonymous connection:&lt;/P&gt;&lt;P&gt;1. If you set macro FTPSRVCFG_IS_ANONYMOUS as 1, FTP server will accepts all FTP commands without any successful authentication process – you don’t need authentication process for FTP commands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. If your client forces you to execute authentication with user name “anonymous” for anonymous connection, you can set ftpsrv_users[] to {"anonymous", "", NULL}.&amp;nbsp; In that case any password will be accepted however password string must contain at least one character (could be any).&lt;/P&gt;&lt;P&gt;This behavior fits to RFC959. Note: In that case, rules for macro FTPSRVCFG_IS_ANONYMOUS is not applied because authentication process was executed as successful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is only in case when we want use “anonymous” as user name and empty string as password (just click on enter when client asks for password).&lt;/P&gt;&lt;P&gt;This combination is not accepted by FTP server by default.&lt;/P&gt;&lt;P&gt;If you would like apply also this option, please edit ftpsrv_cmd.c file and made modification from:&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14242557694221129" jivemacro_uid="_14242557694221129"&gt;
&lt;P&gt;if (input-&amp;gt;pass != NULL)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Validate username and password */&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (ftpsrv_check_authtbl(session))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt; session-&amp;gt;auth_state = FTPSRV_LOGGED_IN;&lt;/P&gt;
&lt;P&gt; session-&amp;gt;message = (char*) ftpsrvmsg_pass;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt; session-&amp;gt;auth_state = FTPSRV_LOGGED_OUT;&lt;/P&gt;
&lt;P&gt; session-&amp;gt;message = (char*) ftpsrvmsg_authfail;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; retval = FTPSRV_OK;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt; session-&amp;gt;message = (char*) ftpsrvmsg_badsyntax;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; retval = FTPSRV_ERROR;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;to:&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="_jivemacro_uid_14242558449754802 jive_text_macro jive_macro_code" jivemacro_uid="_14242558449754802"&gt;
&lt;P&gt;/* Validate username and password */&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (ftpsrv_check_authtbl(session))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt; session-&amp;gt;auth_state = FTPSRV_LOGGED_IN;&lt;/P&gt;
&lt;P&gt; session-&amp;gt;message = (char*) ftpsrvmsg_pass;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt; session-&amp;gt;auth_state = FTPSRV_LOGGED_OUT;&lt;/P&gt;
&lt;P&gt; session-&amp;gt;message = (char*) ftpsrvmsg_authfail;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; retval = FTPSRV_OK;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;RadekS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 10:41:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/FTP-server-anonymous-does-t-work-on-MQX4-1/m-p/366962#M12114</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2015-02-18T10:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: FTP server anonymous does't work on MQX4.1</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/FTP-server-anonymous-does-t-work-on-MQX4-1/m-p/366963#M12115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My firmware on MQX4.1 is not fully compatible with MQX3.8 one, but now everythink is clear and OK.&lt;/P&gt;&lt;P&gt;Many thanks and best regards,&lt;/P&gt;&lt;P&gt;Corrado&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 17:11:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/FTP-server-anonymous-does-t-work-on-MQX4-1/m-p/366963#M12115</guid>
      <dc:creator>Curro</dc:creator>
      <dc:date>2015-02-19T17:11:59Z</dc:date>
    </item>
  </channel>
</rss>

