Re: Automatically Login to a Domain

Tech-Archive recommends: Fix windows errors by optimizing your registry



Oh, I see. In your initial code post you haev this:

// setup the remote name which will be my domain name e.g. MYDOMAIN
tNetworkRes.lpRemoteName = ptLanInfo->domain;

This is not supported, as you noticed in your post you have to explicitly
ask for a machine name and tell WNetAddConnection3() to connect a share at a
time & you have to re-pass in the credentials each time. You can't get a
one-stop shopping by just passing in the credentials one time and having the
filesys redirector remember them for everything on the same domain.

You could use the credential manager in order to store passwords/user names
more securely, so your app would get at the creds via the Cred mgr API and
then pass them directly to the WNet* stuff. But I think (not sure) it uses
the hive registry so it would get blasted on an update. CredMan docs (or
another newsgroup post with a new thread) could help solve that up.

--
John Spaith
Development Lead, Windows CE
Microsoft Corporation

Check out the CE Networking Team Blog at http://blogs.msdn.com/cenet/.

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2006 Microsoft Corporation. All rights
reserved.

"ringwood" <ringwood@xxxxxxxxxxxxx> wrote in message
news:emCD0QVhGHA.3588@xxxxxxxxxxxxxxxxxxxxxxx
Hello John,

thanks for the quick reply. I think we're on about two slightly different
things here.

I think you are refering to the ability to show a windows style login
dialog at startup which would then setup a particular user profile
(including shares). Fortunately (as it isn't possible) this is not what we
wish to do.

Instead we want to programatically log our device onto a domain so we can
access network resources (specifically file and print servers) without any
intervention required by the user. Effectively we want to automate the
functionality implemented by the Network ID tab page on the Owner
Properties dialog accessed from Control Panel. This is mainly because our
device has a single dedicated purpose and thus only runs a single
application (with its own style for dialogs and everything else) which has
hidden the entire CE desktop and its dialogs from the user. This gives us
some of the problems listed below:

* The user cannot gain access to the Owner Properties dialog using
Control Panel.
* We could display the Owner Properties dialog ourselves but it is not
in keeping with the style we have implemented on our device - it is not
possible to tell our device is running CE at all.
* We do not necessarily want users at the device to have knowledge of
the domain password/username. Instead they can load a setup file which
already includes this information.
* Our device allows firmware upgrades (including the OS) which can
result in the hived registry being destroyed. This would require a user to
log back into the domain after firmware upgrades.

Many Thanks

Roger



.



Relevant Pages

  • RE: Securing a Local Network
    ... Show the Management of your company the insecurity of the Peer to Peer ... setup and discuss what risks are they willing to accept. ... -Cost of getting the web server and the mail server internally versus having ... -Use an older box for Intrusion Detection on the internal network as well. ...
    (Security-Basics)
  • Re: Client computer wont connect to internet ATTN: Joe Crown
    ... for my host/client setup. ... >When I supported Windows 98 & Windows ME the most common cause of ... >> When I try to connect to the internet using Firefox or Internet ... >> 7) In the Manufacturers box, click Microsoft, in the Network Protocols ...
    (microsoft.public.windowsxp.network_web)
  • Re: Network Connections x 2 PCs
    ... The setup is quite ... >>> If you have a broadband router, run XP's Network Setup Wizard on both ... tell it that the computers connect to the ... >>> If you have a hub, the setup depends on how many IP addresses you get ...
    (microsoft.public.windowsxp.general)
  • RE: Site-to-Site VPN not working
    ... I was looking through my documentation on this setup. ... In ISA on the remote server, add a site-to-site VPN using the name of the ... add a Network Rule called REMOTEOFFICE to route ...
    (microsoft.public.isa)
  • Re: Need help setting up a wireless network btwn 2 computers via router
    ... In fact, insult away as long ... instructions on how to set up this network. ... One is "Network Setup Wizard" and the other is ... "Wireless Network Setup Wizard," will either of these two walk me ...
    (microsoft.public.windowsxp.network_web)