Has anybody had any problems with the file server on CE 5.0? We have
it working on 4.2 no problem, but it doesn't work on 5.0. The only
changes I can see between 4.2 and 5.0 is that 4.2 requires you to load
smbserver.dll as a built-in driver, and 5.0 does not. Regardless, we
cannot access our unit over our network, but we can ping it and the
unit can access the internet via our network.

Our registry settings in project.reg are:

[HKEY_LOCAL_MACHINE\Services\SMBServer]
"AdapterList"="NE20001;NE2000;"

[HKEY_LOCAL_MACHINE\Services\SMBServer\Shares]
"UseAuthentication"=dword:00000000

[HKEY_LOCAL_MACHINE\Services\SMBServer\Shares\Windows]
"Type"=dword:00000000
"Path"="\\Windows"

Thanks in advance.

Re: File Server on 5.0 by sean

sean
Mon Apr 25 13:45:35 CDT 2005

Well if anybody has it working, could you give me a list of components
you added for it (I'm 99% sure I have all that I need). Could you also
list your registry settings pertaining to HKLM\Services\SMBServer as
well as any Ident registry keys, thanks.


Re: File Server on 5.0 by Henrik

Henrik
Mon Apr 25 14:08:47 CDT 2005

Have you tried "AdapterList"=3D"*=AD" just to see if you can get any life
out of it? I recall I didn't get it to work properly on my platform
that has two adapters if I specified the adapter to use. However, using
"*" it worked. Anyway, I just filed it in the "this is wierd - i fear
it" folder and will get back to it when I have time. For now it's
allright to run with both adapters.

Henrik


Re: File Server on 5.0 by sean

sean
Mon Apr 25 14:14:31 CDT 2005

Yes I did have that code origonally, I have tried both ways to no
avail.. I have even gone as far as sniffing the network traffic when I
make a request to view folders on the unit, and there are over 500 tcp
& smp packets getting exchanged, but in the end I get a message saying
"the network path was not found".


Re: File Server on 5.0 by David

David
Tue Apr 26 00:07:50 CDT 2005

Same problem here, worked fine with 4.2, nothing seems to work with 5.0.

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\SMBServer]
"AdapterList"="*"

[HKEY_LOCAL_MACHINE\Comm\NetBIOS]
"EnableLoopBack"=dword:1

[HKEY_LOCAL_MACHINE\Services\SMBServer\Shares]
"NoSecurity"=dword:1
"UseAuthentication"=dword:0

[HKEY_LOCAL_MACHINE\Services\SMBServer\Shares\HD2]
"Type"=dword:0
"Path"="\\Hard Disk2"

I added "UseAuthentication"=dword:0 after reading your message, but it
didn't help.
I've used the remoteadmin web page to add the shares, with permissions,
still no good.

It may be a security/authentication thing?
I don't know about the security settings, all seems a bit overboard in our
application.
Think of a washing machine where you have to enter a user name and password
to use it.
Now think of one where you have to do that every time you turn it on :(

David



Re: File Server on 5.0 by sean

sean
Tue Apr 26 17:16:22 CDT 2005

Has anybody had success with File Server in 5.0?? FTP, Telnet, TCP/IP
work fine on our unit, but file server doesn't...


Re: File Server on 5.0 by Henrik

Henrik
Wed Apr 27 01:20:57 CDT 2005

As I said, i have it up and running on both ethernet and USB/RNDIS on a
pxa27x platform.
Have you remembered to change the device name? SMB/CIFS/Redir won't
start if[HKEY_LOCAL_MACHINE\Ident] Name == OrigName.

Henrik


Re: File Server on 5.0 by sean

sean
Wed Apr 27 11:08:45 CDT 2005

Yes, Name is different than OrigName.


Re: File Server on 5.0 by coreyb

coreyb
Wed Apr 27 22:28:01 CDT 2005

There were actually a HUGE number of changes in the file server between 4.2
and 5.0. Very close to entire re-write of the server. The 4.2 server was
similar to a Win 9x server. Very little authentication, always viewed as a
downlevel, and performance was significantly weaker. In 5.0 the server is
much more like a Win XP server. We added support for Read Only file
shares, added support for more SMBs to improve the Windows XP -> Windows CE
user experience, and did a lot of work surrounding stability. I have a CE
file server running in my home office that's been on for over a year.

The server was definitely locked down more by default to ensure that it
gets used in the most secure manner. We didn't want everyone just
disabling authentication and sharing all the files on the OS, as that poses
a serious security risk to the end-user. We also wanted the ability to
restrict the file server to particular network cards. For example, I want
my file server available on my private wired network, but not over my WiFi
card which can be seen outside my house.

"Think of a washing machine where you have to enter a user name and password
to use it.
Now think of one where you have to do that every time you turn it on :("

Now think about an internet trojan that turns on your washing machine and
never lets you turn it off. Or wipes all the contacts off your phone. Or
replaces all the pictures in your electronic picture frame with
pornography/advertisements.

I'm not sure why I would share files on my washing machine but I am sure
that if I did so, I would want someone to authenticate before being allowed
to change them.


Now that said, there is a HowTo document that walks you step-by-step
through creating a file share:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcecomm5/ht
ml/wce50tsktestingfileserver.asp. Note: the doc says you should use IE on
the local device to configure the server, but you don't need to. You can
simply use "ipconfig /d" to get the machine's ip address in the debug
output of Platform Builder or a Network Sniffer and then browse to
http://<IP Addr>/remoteadmin from a desktop pc.

Note that under the AdapterList documentation it mentions that "*" can used
to serve on all adapters. Docs here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcecomm5/ht
ml/wce50consmbserverregistrysettings.asp

To get the regkeys you need, you can use the ISAPI configuration tool
described in the doc, and then copy out all the keys under
HKLM\Services\SMBServer and HKLM\Ident. Some examples below (Note the
location of the AdapterList value):

[HKEY_LOCAL_MACHINE\Services\SMBServer]
"AdapterList"="*"
"DLL"="smbserver.dll"
"Keep"=dword:1
"Order"=dword:12
"Prefix"="SMB"
"Index"=dword:0

[HKEY_LOCAL_MACHINE\Services\SMBServer\Shares\MyShare]
"UserList"="ADMIN"
"Path"="\Temp"
"Type"=dword:0

[HKEY_LOCAL_MACHINE\Ident]
"Name"="TestCEName"
"OrigName"="WindowsCE"
"Desc"="WindowsCE Device"

If you still want to disable authentication because it doesn't make sense
for your scenario, we've left that option available. The UseAuthentication
registry value replaced the NoSecurity value and you can set:
[HKEY_LOCAL_MACHINE\Services\SMBServer\Shares]
"UseAuthentication"=dword:0

Don't forget that you need to refresh the SMB Service after you make
registry changes to get the service to reload the settings. From PB you
can do this with "Windows CE>s services -d refresh SMB0:"

***** BIG NOTE ******
I tried out UseAuthentication==0 just to make sure it was still working,
and it wasn't. I believe this is due to a change that was made between 4.2
and 5.0 as we attempted to better support XP clients with SPNEGO
authentication. Please work with PSS (Product Support Services) and they
can start a process to get you a QFE fix for Windows CE 5.0.

I would like to apologize that this feature is not functioning as you would
expect. I will work to ensure that our tests better catch this scenario in
the future.

-Corey Burke
Windows CE Networking QA Team


Re: File Server on 5.0 by sean

sean
Thu Apr 28 12:47:05 CDT 2005

Wow, all this information is good to know... after going thru this
info, we were able to map a network drive to our unit using
authentication, however, we would like to use the file server WITHOUT
authentication. Hopefully a QFE comes out soon... please let all who
are interested know if there is a workaround for this problem in the
meantime if you do NOT want authentication, thanks.


Re: File Server on 5.0 by Dean

Dean
Thu Apr 28 13:11:27 CDT 2005

FYI - MS doesn't typically issue QFEs of it's own accord. If you really
want one, you'll need to go through the proper channels to request it. You
need to trigger the process so it happens...

--
Dean Ramsier - eMVP
Vibren Technologies
http://www.vibren.com/Products/schema_bsp.htm


<sean@rlc.com> wrote in message
news:1114710424.993384.227590@z14g2000cwz.googlegroups.com...
> Wow, all this information is good to know... after going thru this
> info, we were able to map a network drive to our unit using
> authentication, however, we would like to use the file server WITHOUT
> authentication. Hopefully a QFE comes out soon... please let all who
> are interested know if there is a workaround for this problem in the
> meantime if you do NOT want authentication, thanks.
>



Re: File Server on 5.0 by David

David
Sat Apr 30 04:13:43 CDT 2005

Thanks so much for your feedback, Corey. I'll work through your suggestions
and see if I can get something going here.
Actually the "UseAuthentication==0" not working is a big one. A normal
approach to getting things working when you are not sure about whether all
the bits are in place is to reduce the things that could cause you problems
as much as possible. I logically started with that setting, figuring to make
sure SMB was working and then proceed to tighten security. When it didn't
work I assumed networking problems, Firewall settings, kernel dependencies
missing, etc. Takes a while working through all this stuff.Eventually I
found I could get the file server going by adding the web configuration
stuff and going through and adding a password from there. But only from the
private side of the gateway, not from the public side, where we actually
need the access. (Our private is a controller-local network and our public
is a secure process net) Of course there won't be any way this could be done
in the final application, so I have been looking for a way to do that from
application code. Today I had gotten as far as adding a SetPassword() call,
but then been unable to get it to compile, as SetPassword doesn't appear in
the headers for my platform, either from PB or eVC.

Regarding your comments on my "washing machine" analogy, ok, these aren't
washing machines but industrial controllers, their user interface has a
screen but no keyboard/mouse so there is no way of setting things up by a
local user, there are many of them on local process networks at each plant
controlling many millions of dollars in product, so there is NO WAY that
they are getting access to the Internet! If trojans etc get onto the process
network then we are in big trouble in many ways apart from the CE devices.
And as per the previous paragraph, security will be stepped up once basic
operation is proven.

David


"Corey Burke [MS]" <coreyb@online.microsoft.com> wrote in message
news:mtu0JJ6SFHA.3928@TK2MSFTNGXA01.phx.gbl...

[...]

> "Think of a washing machine where you have to enter a user name and
password
> to use it.
> Now think of one where you have to do that every time you turn it on :("
>
> Now think about an internet trojan that turns on your washing machine and
> never lets you turn it off. Or wipes all the contacts off your phone. Or
> replaces all the pictures in your electronic picture frame with
> pornography/advertisements.
>
> I'm not sure why I would share files on my washing machine but I am sure
> that if I did so, I would want someone to authenticate before being
allowed
> to change them.

> [...]

> ***** BIG NOTE ******
> I tried out UseAuthentication==0 just to make sure it was still working,
> and it wasn't. I believe this is due to a change that was made between
4.2
> and 5.0 as we attempted to better support XP clients with SPNEGO
> authentication. Please work with PSS (Product Support Services) and they
> can start a process to get you a QFE fix for Windows CE 5.0.
>
> I would like to apologize that this feature is not functioning as you
would
> expect. I will work to ensure that our tests better catch this scenario
in
> the future.
>
> -Corey Burke
> Windows CE Networking QA Team



Re: File Server on 5.0 by Christer

Christer
Tue Jun 07 09:42:08 CDT 2005



"sean@rlc.com" wrote:

> Yes, Name is different than OrigName.

If you dont have an authentication service on your network (such as a DC)
and since UseAuthentication=0 doesn´t work heres how I did it:
1. Change the registry key HKLM/Ident/Name to something other than
HKLM/Ident/OrigName.
2. Enter a user in the HKLM/Services/SMBServer/Shares/*sharename*/UserList
3. Add a Local user by using the "ntlmssp.dll" exported method
NTLMSetUserInfo().
4. Restart the SMBServer by executing the following command:
services refresh SMB0:

You should now get a login-prompt when you try to access *sharename*, log in
using the username and password set with NTLMSetUserInfo().

HTH,
/Christer