Koozali.org: home of the SME Server

Login script manager contrib

Offline darz82

  • 4
  • +0/-0
Login script manager contrib
« on: January 07, 2009, 07:47:15 AM »
Hello All,

I was just wondering when you install Login script manager contrib, does this officially disable the default netlogin.bat from being used or can they both work together.


Offline versa

  • ****
  • 109
  • +0/-0
Re: Login script manager contrib
« Reply #1 on: January 07, 2009, 10:27:42 AM »
As Far as I know it uses both, the contrib adds a line to the main login.bat to call another login.bat that is created in the users home folder.
......

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Login script manager contrib
« Reply #2 on: January 07, 2009, 10:03:14 PM »
As Far as I know it uses both, the contrib adds a line to the main login.bat to call another login.bat that is created in the users home folder.


no :-)

in /netlogon share you'll find only a netlogon.bat as this:

Code: [Select]
[root@fileserver netlogon]# more netlogon.bat
@REM #------------------------------------------------------------
@REM # DO NOT MODIFY THIS FILE! It is updated automatically by the
@REM # e-smith server and gateway software. Instead, modify the source
@REM # template in the /etc/e-smith/templates-custom directory. For more
@REM # information, see http://www.e-smith.org.
@REM #------------------------------------------------------------
@ECHO OFF

REM ******************************************************
REM ** Mapping a drive to the home folder triggers the  **
REM ** generation of the login script.  Windows NT/2K   **
REM ** does this automatically but we need to map the   **
REM ** drive manually for the others.                   **
REM ******************************************************

IF "%OS%"=="Windows_NT" GOTO :SkipHomeMapping
NET USE z: /home
:SkipHomeMapping


REM Call the generated login script from the user's home folder:

CALL z:\netlogon.bat

@REM #------------------------------------------------------------
@REM # TEMPLATE END
@REM #------------------------------------------------------------
[code]

then, answering to OP question, login script manager contribs take full control over login script :-)

Ciao
Stefano

Offline versa

  • ****
  • 109
  • +0/-0
Re: Login script manager contrib
« Reply #3 on: January 07, 2009, 11:16:22 PM »
My apologies nenonano I called it login.bat instead of netlogon.bat   :oops:

But !!
When you logon windows reads /netlogon/netlogon.bat
as you say depending on the answer it gets there it then reads z:\netlogon.bat

Code: [Select]
REM Call the generated login script from the user's home folder

CALL z:\netlogon.bat

This file is created in the users home directory the first time they log on by the Login script manager contrib.

So assuming the user is using XP pro, first windows reads /netlogon/netlogon.bat then the contrib takes over and then z:\netlogon.bat is read.

 
Hello All,

I was just wondering when you install Login script manager contrib, does this officially disable the default netlogin.bat from being used or can they both work together.



So it looks like it will not disable the default netlogin.bat, it uses both ?

Sorry I'm not splitting hairs here I just want to get it clear in my own mind
......

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Login script manager contrib
« Reply #4 on: January 08, 2009, 12:05:32 AM »
as you say depending on the answer it gets there it then reads z:\netlogon.bat

z:\netlogon.bat is re-generated each time user login.. and its content is what you put into via the server-manager web panel

Ciao
Stefano

p.s. no need to apologize ;-)