Koozali.org: home of the SME Server

Netlogon and roaming profiles

Offline greg

  • ***
  • 51
  • +0/-0
Netlogon and roaming profiles
« on: April 09, 2006, 08:35:14 AM »
Hi all,

Is it normal that the /home/e-smith/files/samba/netlogon/netlogon.bat only is run when using roaming profiles?
I have tried with both roaming profiles and non-roaming profiles, and when using the latter, all the settings I've put into netlogon.bat are not put into effect.
I'm using SME7rc1

TIA
/G

Offline p-jones

  • *
  • 594
  • +0/-0
Netlogon and roaming profiles
« Reply #1 on: April 09, 2006, 09:45:58 AM »
netlogon.bat only runs when the workstation is joined to the domain and roaming profiles are enabled.
...

Offline greg

  • ***
  • 51
  • +0/-0
Netlogon and roaming profiles
« Reply #2 on: April 09, 2006, 10:59:31 AM »
Thanks.

Now I just have to change the Windows registry to get rid of the timeconsuming syncro...

/G

Offline Tib

  • *
  • 571
  • +0/-0
    • http://www.tibors.net
Netlogon and roaming profiles
« Reply #3 on: April 09, 2006, 02:28:49 PM »
greg

I have roaming profiles off (I don't like roaming profiles) and the netlogon.bat still works fine.

Regards,

Tib

Offline greg

  • ***
  • 51
  • +0/-0
Netlogon and roaming profiles
« Reply #4 on: April 09, 2006, 08:43:15 PM »
Hi Tib,

Thanks for this. Wierd...
Unfortunately, it does not work in my hands. Disabling the roaming profiles only connects the default samba z:\ drive, and not my netlogon.bat setup...

/G

Offline Tib

  • *
  • 571
  • +0/-0
    • http://www.tibors.net
Netlogon and roaming profiles
« Reply #5 on: April 10, 2006, 02:01:46 AM »
greg

In my netlogon.bat I have this setup

rem To map a home directory to drive h:
net use h: /home

net use z: /delete /yes

the delete line is tha last one

Regards,

Tib

Offline greg

  • ***
  • 51
  • +0/-0
Netlogon and roaming profiles
« Reply #6 on: April 10, 2006, 03:14:11 PM »
Hi Tib,

Thanks.... Still wierd. My netlogon.bat is:

net use o: /home /persistent:no
net use p: \\test\all /persistent:no
net use q: \\test\software /persistent:no
net time \\test /set /yes
net use z: /delete /y
rundll32 printui.dll,PrintUIEntry /dn /n "\\test\Netprinter" /q
rundll32 printui.dll,PrintUIEntry /in /n "\\test\Netprinter" /q
rundll32 printui.dll,PrintUIEntry /y /n "\\test\Netprinter" /q


if I do not use roaming profiles, I will only see the z:\ drive...

/G

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Netlogon and roaming profiles
« Reply #7 on: April 10, 2006, 07:33:17 PM »
Quote from: "Tib"
greg

In my netlogon.bat I have this setup

rem To map a home directory to drive h:
net use h: /home

net use z: /delete /yes

the delete line is tha last one

Regards,

Tib

I think the order in which you do things is (only) important when you want to map the home drive under another driveletter than the default (Z:), as most off the times multiple connections are often prohibited you probably first have to delete the one you don't want and after that map it under the new drive letter, at least that is the way that I do it and that works for me.

Sometimes (on Windows domains, so a non SMEserver domain) I receive an error that a drive is already mapped (using another username) this is caused by problems in disconnecting and connecting drive maps as well.

If your netlogon.bat script runs you can try and put a pause statement at the end of the file so you can see if there are errors in the execution of the login script. This is only a temporary solution as the scripts halts at the end and the window in which it is run, but it remains open so users need to close it manually.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Tib

  • *
  • 571
  • +0/-0
    • http://www.tibors.net
Netlogon and roaming profiles
« Reply #8 on: April 10, 2006, 11:43:54 PM »
good point cactus

The way mine is it still seems to run ok though ... I'll move things around and try that as well ... does make sense.

I've been playing arround with the old e-smith-loginscript-0.2-2.noarch.rpm and I think I have most working but need someone with a bit of rpm knowledge and script knowedge to check it out and re-pak it into an rpm ... I've unpacked the rpm but don't know how to re-pack it.

I fixed up all the links but I'm not sure if some files are required or should be pointed to a diff file etc.

I'f someone wants to have a look at the file let me know ... the file I have is only in tar and not installable ... only for review and only to be unpacked into a temp folder.

I have it working on my test machine with no errors.

This rpm once fixed will take care of the home drive problem.

Regards,

Tib

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Netlogon and roaming profiles
« Reply #9 on: April 11, 2006, 06:05:16 PM »
Quote from: "Tib"
I've been playing arround with the old e-smith-loginscript-0.2-2.noarch.rpm and I think I have most working but need someone with a bit of rpm knowledge and script knowedge to check it out and re-pak it into an rpm ... I've unpacked the rpm but don't know how to re-pack it.

I fixed up all the links but I'm not sure if some files are required or should be pointed to a diff file etc.

In the developer section there is an explanation on how to build RPM's and as you already have a test machine... have a look here: How to create an SME Server package - step by step, section 12 handles about packing an RPM.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline andy_wismer

  • *
  • 107
  • +0/-0
    • ANWI-Net
Netlogon and roaming profiles
« Reply #10 on: June 21, 2006, 04:56:09 PM »
Hi

A small tip which may help:

During the time the windows logon script is running, drive Z: is mapped by windows to NETLOGON.

This is a windows standard for more than 10 years...

Best is, don't use drive Z:

Regards

Andy