Author |
Topic |
|
mhuman1
36 Posts |
Posted - 10 Jun 2005 : 16:53:52
|
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
|
Simple thing was wrong IP address. Pinging something else. Now, how do I provide the requested user name and password?
Thanks, Keith Stallings |
|
|
ctacke
877 Posts |
Posted - 10 Jun 2005 : 17:29:00
|
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"))); }
|
|
|
mhuman1
36 Posts |
Posted - 10 Jun 2005 : 17:31:12
|
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 |
|
|
ctacke
877 Posts |
Posted - 10 Jun 2005 : 17:54:50
|
It was probably passing anonymous authentication. |
|
|
OCAS1
6 Posts |
Posted - 14 Feb 2007 : 08:50:15
|
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
|
|
|
bsamuels
53 Posts |
Posted - 15 Feb 2007 : 11:25:05
|
Yes, this .dll is included in your build. For more information on how to setup a user please see here.
|
|
|
|
Topic |
|
|
|