Novell Home

Automated Location Configuration 1.2

Novell Cool Solutions: Cool Tool

Digg This - Slashdot This

In Brief

Automatically set LDAP contextless, NT environment variable and ZENworks workstation import server before first login.

Vitals

Product Categories:
  • ZENworks
  • Functional Categories:
  • Batch File
  • Configuration
  • Imaging
  • Login
  • Posted:9 Dec 2003
    File Size:169KB
    License:Free
    Download:/coolsolutions/tools/downloads/siteinst.exe
    Publisher:Damien Schmitt

    Disclaimer

    Please read the note from our friends in legal before using this file.


    Details

    Automated Location configuration 1.2:
    ------------------------------
    site.exe is designed to solve multi-site automated configuration needs suchas :

    - configure contextless before first login (now based on LgnCLW32.dll or onintegrated Client 32 LDAP contextless)
    - configure WINNT system environment variable based on IP configuration
    - configure Import Server in registry (inHKEY_LOCAL_MACHINE\SOFTWARE\Novell\Workstation Manager\ImportServer\Default value) and register workstation in eDirectory before firstlogin

    This tool is designed to work in conjunction with other tools such asZENworks for Server, ZENworks for Desktop or ZCNC.

    So, with this tool, you will be able to :

    - use contextless before first login when a workstation is moved
    - move workstation everywhere in your network without reconfiguringcontextless or Import Server and without any login
    - have a single image file for all your workstations in your world widenetwork
    - use remote control functionality before any user logged on WS
    - distribute ZFS Application based on location
    - replicate Application Object through ZFS and include workstationdistribution exception based on location
    - disable contextless functionality for user who doesn't have an NDSaccount on one location to improve security

    What's new in version 1.2
    ------------------------------
    - new debug levels
    - detection of Novell Client version
    - client 4.9 contextless configuration now supported (with integrated LDAPcontextless configuration, not LgnCLW32)
    - added possibility to show a message box on screen when environmentvariable is modified
    - tree value in NDS tab of login is now set to have a fully operationalcontextless and last user name is cleared when the workstation has beenmoved from one location to another
    - when contextless configuration change (workstation has been moved toanother network location) the context field and the username field are nowcleared of the login window
    - new functionality in installer
    - some bug fixes

    Functionality details:
    ------------------------------
    - site.exe runs as a Windows NT system service.
    - all configurationinformations are included in C:\WINNT\system32\site.ini.
    - all loginformations are stored in C:\WINNT\system32\site.log.

    Here is a sample configuration of site.ini file:

    ----------Beginning of site.ini----------

    [WSIMPORT]
    WSNAMECHECK=ENABLE

    [OPTIONS]
    DEBUG_LEVEL=0 '4 levels exists (0 to 3)
    MAXLOGSIZE=100 'limit size of C:\WINNT\system32\site.log in ko
    ENVIRONMENTVAR=ENABLE 'enable / disable environment variable check
    CONTEXTLESS=ENABLE 'enable / disable contextless configuration
    WSIMPORT=ENABLE 'enable / disable Import Server configuration
    'You can enable or disable this three functionality independently.

    [WSIMPORT] 'configuration of Import Server configuration component
    WSNAMECHECK=ENABLE 'verify if workstation name is not a default windows NTsetup name (so if it begin with "W-") before importing workstation andconfiguring Import Server in registry .
    This functionality wasimplemented to wait WSname is set by tools such as ZCNC.exe (or manualchange) during sysprep or scripted setup of windows 2000.

    [ENVIRONMENTVAR]
    NAME=LOCATION 'Name of the Windows system environment variable you wouldset
    MSGBOX=ENABLE 'enable / disable message box when variable value change
    MSGBOXTITLE=Your customized message box title
    MSGBOXTEXT=Your workstation has been moved. Configuration change. Your oldlocation was : %s. Your new location is : %s. 'Message box text, you caninclude 2 %s which respectively correspond to old and new value of thevariable
    BYPASSKEYWORD=TOBEMODIFIED 'If MSGBOX option is enabled, the message boxwon't show if the old value of environmentariable is equal to thiskeyword

    [CONTEXTLESS]
    TREE=EMEA-TREE 'Name of the tree

    'List of all locations
    [HEADQUARTER]
    CONTEXTLESS=Headquarter.Fr.EMEA
    LDAPCONTEXTLESS=ou=headquarter,ou=fr,o=emea
    LDAPSRV=LDAPSRV
    WSIMPORTSRV=FS1

    [BRANCHOFFICE1]
    CONTEXTLESS=BranchOffice1.Fr.EMEA
    LDAPCONTEXTLESS=ou=branchOffice1,ou=fr,o=emea
    LDAPSRV=FS2
    WSIMPORTSRV=FS2

    [BRANCHOFFICE2]
    CONTEXTLESS=BranchOffice2.Fr.EMEA
    LDAPCONTEXTLESS=ou=branchOffice2,ou=fr,o=emea
    LDAPSRV=FS3
    WSIMPORTSRV=FS3

    [MYCUSTOMISEDCONF]
    CONTEXTLESS=Fr.EMEA
    LDAPCONTEXTLESS=ou=ou=fr,o=emea
    LDAPSRV=FS1
    WSIMPORTSRV=FS1

    'The section below is used to link workstation IP informations to one ofthe location listed in the above sections.
    'There is no order during this process, you can write it in a random order
    'Detection of the site is based on octet comparison.
    'The process begin to compare the entire IP address, if no entries has beenfound, it compare the 3 first octet, the 2 first octet and finally, if noentry has been found, it check for an entry equal to the first octet.

    [IPTABLE]
    192.168=HEADQUARTER
    172.20=HEADQUARTER
    192.168.105.25=MYCUSTOMISEDCONF
    172.18.13=BRANCHOFFICE1
    192.168.20=BRANCHOFFICE1
    172.18.31=BRANCHOFFICE2

    -------------End of site.ini-------------

    Prerequisite:
    ------------------------------
    Novell client 32 must be installed (4.7 or later).

    Installation:
    ------------------------------
    Just run SiteInst.exe (you must have administrator rights on the WS), itwill copy site.exe, site.ini and LgnCLW32.dll (if Client 32 is older than4.90) in system32 and run "site -install" to install site as a systemservice.

    If you want to install it in silent mode, run it with /s parameter(SiteInst.exe /s). If a site.ini file exist, it will be preserved.readme.txt file is not copied to SYSTEM32 directory in this mode.

    Update:
    ------------------------------
    If you have an older version already installed, simply reinstall it withnew setup file. Be carefull, if site.ini file exist, the installer will askyou to preserve it or not but your old site.ini probably doesn't includemany functionality so you must configure it.

    Uninstallation:
    ------------------------------
    - run "site -remove" to remove site from WINNT system service list
    - delete site.exe, site.ini, site.log and LgnCLW32.dll
    - you need to remove manually all contextless registry entries and theenvironment variable you have set with site.exe

    Limitations:
    ------------------------------
    - site detection is based on octet comparison, not subnet number.
    - when Import Server configuration is set, the process start unreg32.exe(unregister the workstation on the old location and start wsreg32.exe toregister the workstation on the new location).
    - when there are more than one network adapter, if two locations aredetected the site of the second adapter is set
    - multi Tree configuration is not supported
    - LgnCLW32.dll depth configuration is not possible (configured by defaultto 10 subcontexts)
    - value of environment variable in command processor (cmd.exe) is notmodified (type set to view variable value) if site.exe is manually startedafter login (with "net start site" command or from service manager).

    Future enhancements:
    ------------------------------
    - all limitations listed before.
    - an graphical interface to configure site.ini is in development.
    - log configuration changes to NT event log.

    Contact:
    ------------------------------
    For any comment, bug report, or any requested information or enhancements,send me an e-mail at dames@netcourrier.com.

    Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

    © 2014 Novell