All Forums
 Microsoft Windows CE
 General CE
 ftp server on GCX
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Author Topic  

mhuman1

36 Posts

Posted - 10 Jun 2005 :  16:53:52  Show Profile  Email Poster
Using the "services list" command I see that the FTPD.dll is running on my GCX. I can "ping" the GCX with an address of 10.12.54.15. The registry is set as follows:

[HKEY_LOCAL_MACHINE\COMM\FTPD]
"IsEnabled"=dword:1
"AllowAnonymous"=dword:1
"AllowAnonymousUpload"=dword:1
"DefaultDir"="\\"

When I try ftp 10.12.54.15, I get the message
"ftp: connect :Connection refused". What simple thing am I doing wrong?

Thanks,
Keith Stallings

mhuman1

36 Posts

Posted - 10 Jun 2005 :  17:14:47  Show Profile  Email Poster
Simple thing was wrong IP address. Pinging something else. Now, how do I provide the requested user name and password?

Thanks,
Keith Stallings
Go to Top of Page

ctacke

877 Posts

Posted - 10 Jun 2005 :  17:29:00  Show Profile  Email Poster
First, add the user names to the FTP Registry Key. Next, you have to add the users, along with their passwords, to the device. As an idea, on boot the device could get a list of valid users fom a local file or a network file. Each user must be added programmatically by calling NTLMSetUserInfo.


extern "C" __declspec(dllimport) void NTLMSetUserInfo(TCHAR *, TCHAR*);
void CreateUser(TCHAR *username, TCHAR *password)
{
   RETAILMSG(1, (TEXT("Adding user: %s..."), username));
   NTLMSetUserInfo(username, password);
   RETAILMSG(1, (TEXT("done.\r\n")));
}

Go to Top of Page

mhuman1

36 Posts

Posted - 10 Jun 2005 :  17:31:12  Show Profile  Email Poster
the name was the computers name and password was the password that you can set under the control panel. I don't know why it requires a password. In other words, when I had no password assigned to my computer, I couldn't make it work.

Thanks,
Keith Stallings
Go to Top of Page

ctacke

877 Posts

Posted - 10 Jun 2005 :  17:54:50  Show Profile  Email Poster
It was probably passing anonymous authentication.
Go to Top of Page

OCAS1

6 Posts

Posted - 14 Feb 2007 :  08:50:15  Show Profile  Email Poster
Hello!

I have protected the FTP-server on our AGX (running CE.NET 4.20) by not allowing anonymous users to do anything.

Now, I want to add users with NTLMSetUserInfo(username, password).
My problem is that I am unable to compile in eMbedded Visual Tools (C++).

Microsoft MSDN does not tell me what to include nor what to link to.
The only information I get, is that it will need "Ntlmssp.dll".

I don't even see that my CE-build contains that DLL ("700115-4131D_AGX64_4.20.39_Pro_Hive_20MiB")

What can I do?

Best rgds from cold Oslo,
Tom Roar Pedersen
Go to Top of Page

bsamuels

53 Posts

Posted - 15 Feb 2007 :  11:25:05  Show Profile  Email Poster
Yes, this .dll is included in your build. For more information on how to setup a user please see here.
Go to Top of Page
  Topic  
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Jump To:
Eurotech Support Forums © Eurotech Inc. Go To Top Of Page
This page was generated in 0.03 seconds. Snitz Forums 2000