Koozali.org: home of the SME Server

netlogon script

stephen noble

netlogon script
« on: May 11, 2000, 07:01:30 PM »
i have created a share / ibay called netlogon
and a batch file elogon.bat in the files directory with notepad

the share works and \e-smith-server
etlogonfileslogon.bat runs
when double clicked in network neighbourhood
(net time ... and net use ... )

in /etc/smb.conf
i have uncommented _ domain logons = yes _
and added _ logon script = fileselogon.bat _
(i also tried playing with the path for netlogon and using %U)

I restarted smb and rebooted the client but without any joy.
except that netlogon has an OK status from a net use command

/etc/samba/log.* doesn't seem to be of any help

damn i'm so close.

Erin Minogue

RE: netlogon script
« Reply #1 on: May 11, 2000, 07:49:32 PM »
Hi Stephen.  
Check out www.e-smith.org under Customizing the system.  It appears you may just be updating the incorrect smb.conf file.
Good Luck.

Erin

stephen noble

RE: netlogon script
« Reply #2 on: May 12, 2000, 06:03:57 AM »
thanks erin but..
i know about the /home/e-smith/on&on/smb.conf
i work on the /etc/smb.conf till i get it right
then i'll edit it

stephen

Charlie Brady

RE: netlogon script
« Reply #3 on: May 12, 2000, 06:14:22 AM »
stephen noble wrote:

> in /etc/smb.conf i have uncommented _ domain logons = yes
> and added _ logon script = fileselogon.bat _ (i also tried
> playing with the path for netlogon and using %U)
>
> I restarted smb and rebooted the client but without any joy.
> except that netlogon has an OK status from a net use command

...

> damn i'm so close.

You are too. Have you checked the box on the client configuration (Network control panel) to tell the client to use the logon server for the domain? All the samba stuff will just sit there idle unless the client chooses to use it.

Charlie

stephen noble

RE: netlogon script
« Reply #4 on: May 12, 2000, 05:52:32 PM »
charlie
>Have you checked the box on the client configuration (Network control panel)
>to tell the client to use the logon server for the domain?

you mean the "client for microsft networks " -> properties  
no, but i have now and everything works,  thanks

this is also a better fix for  'doze caching a changed or wrong password, other cures
being either to delete the c:windoseuser.pwl or go registry hacking.

i was asked for a quick howto on getting this to work, here goes

1. created an ibay called netlogon
2. make a batch file eg elogon.bat and copy to the files directory with notepad
mine is
net use h: \e-smith-serverhomes
net use f: \e-smith-serverprograms
net time \e-smith-server /set /yes

for dos , net /? or net time /?

3. this is for e-smith 3.1
from the console alt f3 log on as root
pico /etc/e-smith/templates/etc/smb.conf
uncomment ; domain logons = yes
and add logon script = files/elogon.bat

run /sbin/e-smith/signal-event console save
which copies the smb.conf to /etc/smb.conf

4. on the client win95 in my case settings-network-client for ms-properties
check the box
my domian was e-smith

that's all

NOTE can e-smith make the changes to smb.conf in step 3 the default,
it would avoid the trickiest part for novices.


ALSO p 51 of the e-smith manual has the lame advice re deleting
the user.pwl file, isn't the domain login the prefered method
it solves 2 bugbears
wrong passwords
and lost drives



regards
stephen