Koozali.org: home of the SME Server

Automatic logon from Windows XP client

WEBlance

Automatic logon from Windows XP client
« on: December 11, 2004, 06:46:56 PM »
Hi,

I use my SME 6.0.1 as a network drive for my documents. My user PC is a WinXP SP2 and I'm connected to my documents ibay as a network drive. I've set ip up to logon automatically, but when I reboot or logoff/logon my user account I have to logon again and type my password.

How can I get it to logon automatically every time I logon my WinXP user account?

Mumm-Ra

Automatic logon from Windows XP client
« Reply #1 on: December 11, 2004, 07:32:32 PM »
Do you mean you want XP to logon automatically or connecting to your network drive after you've logged on?

If you want XP to logon  automatically you can edit the registry (warning - do this at your own risk)
Code: [Select]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DefaultUserName"="<your username>"
"DefaultPassword"="<your Password>"
"DefaultDomainName"="<your domain name if you use domains, if not then ignore>"
"AutoAdminLogon"="1"


If you want a network drive mapping you can set the drive to login using credentials from your SME box and the persistently save the settings.
Just type
Code: [Select]
net use /? at a command prompt and read the syntax

WEBlance

Automatic logon from Windows XP client
« Reply #2 on: December 11, 2004, 11:13:50 PM »
Sorry this didn't fix the problem.

I want XP to logon the network drive automatcally so I don't have to type my password in before I can access the files and use the printer connected to the SME

Mumm-Ra

Automatic logon from Windows XP client
« Reply #3 on: December 11, 2004, 11:40:54 PM »
What's your setup like then?

I take it you aren't running SME as a domain but in a workgroup?

Have you tried selecting the reconnect at logon when you're mapping a drive and using the corrct credentials by entering them in the 'connect using a different name'

bobk

Automatic logon from Windows XP client
« Reply #4 on: December 12, 2004, 02:00:04 AM »
Quote from: "WEBlance"
Sorry this didn't fix the problem.

I want XP to logon the network drive automatcally so I don't have to type my password in before I can access the files and use the printer connected to the SME


The only time I have seen this problem is when the Win user-name/password are different for the SME user-name/password.

Are you logging in to your Win machine with the same user-name/password as your SME user account?

Offline MSmith

  • *
  • 675
  • +0/-0
Edit smb.conf template ...
« Reply #5 on: December 12, 2004, 07:51:02 PM »
Here are the template fragments you should copy & edit to allow no username/no password access to your SME server for your LAN.

11guestOK (should be "yes")
11mapToGuest (should be "bad user")
10globals (add "null passwords = yes")
50printers (change to "guest ok = yes")

/sbin/e-smith/expand-template /etc/smb.conf
service smb restart
...

evikali

Automatic logon from Windows XP client
« Reply #6 on: December 13, 2004, 10:35:16 AM »
have you tried this

Code: [Select]
net use x: \\"servers ip"\"ibay name" "password" /user:"username"


Put the above text into a txt editor and save it as .bat file and make a link to the bat file in your "start" folder under "Programs" menu.

Offline arnoldob

  • *
  • 183
  • +0/-0
Automatic logon from Windows XP client
« Reply #7 on: December 27, 2004, 07:50:15 PM »
Anyone point you to the server-manager contrib for editing the netlogon.bat file to automagically map drives and printers during logon? There's a server manager add-on that facilitates it here:
http://www.ibiblio.org/pub/linux/distributions/e-smith/contrib/DanielvanRaay/RPMS/noarch/e-smith-loginscript-0.2-2.noarch.rpm

You have to add a sym link to make it work in SME ver. 6 and higher because of a change in the location of the netlogon.bat file:
ln -s /home/e-smith/files/samba/netlogon /home/netlogon

It supports conditional statements based on user, machine, group and windows version. I have it working on SME 6.01 (heavily modified, your milage may vary).
Tampa, FL USA