RE: File Sharing in 5.0
- From: coreyb@xxxxxxxxxxxxxxxxxxxx (Corey Burke [MS])
- Date: Wed, 25 May 2005 20:24:22 GMT
As best I could tell from reading through the posts here you have the
following problems:
1) You don't want the remote admin UI to prompt you to set the device's name
A: Just change the remote admin script and remove the prompt for
the device name.
In public\servers\oak\GWAdmin\html\RGUI_DeviceConfig.htm, go to
the end of the file and change the script from:
<script language="javascript">
document.write("<form ID=EditForm METHOD=post onsubmit='return
SubmitHandler(this)'>");
if(!window.g_PASSWORD_PasswordSet) {
BuildMainTable_NoToolBar("NAS Admin", "", "ShowPasswordConfig()");
} else if(window.g_HOSTNAME_NotSet) {
BuildMainTable_NoToolBar("NAS Admin", "Please assign your device a
network name", "ShowHostNameConfig()");
} else {
BuildMainTable("Please name your device", "", "ShowBoth()");
}
document.write("</form>");
</script>
To:
<script language="javascript">
document.write("<form ID=EditForm METHOD=post onsubmit='return
SubmitHandler(this)'>");
if(!window.g_PASSWORD_PasswordSet) {
BuildMainTable_NoToolBar("NAS Admin", "", "ShowPasswordConfig()");
}
document.write("</form>");
</script>
2) You don't want to configure the admin password.
You can set a password for the Admin programmatically through
NTLMSetUserInfo. Documentation is here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesecurity
5/html/wce50lrfNTLMSetUserInfo.asp
There is a registry setting UseAuthentication (mentioned in the
docs here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcecomm5/ht
ml/wce50consmbserverregistrysettings.asp), that can be used to disable the
password requirements altogether. I don't recommend doing that for
security reasons. But it is also broken as I mentioned in my response to
another post. If that is blocking your ability to ship a device, you can
request a QFE through customer service.
3) You want to have the file server sharing by default
There's plenty of documentation on the necessary registry keys.
In fact, I answered another post just last month called "File Server on
5.0" with details.
Here's an excerpt from that post...
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"
Hope that helps,
-Corey
.
- Follow-Ups:
- solved!
- From: Joseph Garibaldi
- solved!
- References:
- File Sharing in 5.0
- From: joseph garibaldi
- File Sharing in 5.0
- Prev by Date: NDISWAN IM Driver
- Next by Date: Re: How to convert absolute mouse coordinates to normal positions relative a window?
- Previous by thread: solved!
- Next by thread: solved!
- Index(es):
Relevant Pages
|