Novell Home

ZENworks for Desktops 6.5 Gina Overwrite during Install

Novell Cool Solutions: Tip
By Trey Johnson

Digg This - Slashdot This

Posted: 22 Jun 2005
 

Editor's Note: This TID explains why Novell cannot just insert NWGINA at the end of the chain. This workaround will enable you to retain your current primary Gina, but it's up to you to ensure that NWGINA is called subsequently.

As you may know, Novell has, at times, wanted to insure the NWGINA.DLL was the first GINA called. This happened with Client 32 and now with ZENworks. By "messing" with the chain, logins can be broken rendering the workstation unuseable.

One solution would be to have Novell provide an end-user override to accept the GINA and preserve the chain on the box. But until that happens, here's a workaround.

Write a BAT file that exports the registry key and re-imports it after the ZENworks agent is reinstalled.

Example

rem @echo off
SET GINA=

REM *****Determine Gina***************
REM ****REG.EXE VERSION MUST BE "Registry Console Tool For Windows 2000" 2.0.0.0********

REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /V GinaDLL |FIND "NWGINA.DLL" >NUL
IF NOT ERRORLEVEL 1 SET GINA=NWGINA

REM ******BACKUP GINA******************
IF "%GINA%"=="NWGINA" GOTO SKIPBACKUP
   ECHO Backing up Non-Novell Gina Entry
   REG EXPORT "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" WINLOGON.REG /NT4
   TYPE WINLOGON.REG|FIND /I "REGEDIT4" > GINA.REG
   ECHO. >> GINA.REG
   TYPE WINLOGON.REG|FIND /I "Winlogon]" >> GINA.REG
   TYPE WINLOGON.REG|FIND /I "GINADLL" >> GINA.REG


REM ******DETERMINE IF pcANYWHERE GINA
   TYPE WINLOGON.REG|FIND /I "AWGINA.DLL" >NUL
   IF NOT ERRORLEVEL 1 SET GINA=AWGINA
:SKIPBACKUP

REM ******************** RUN ZEN AGENT INSTALLER HERE ***************************
START /WAIT MSIEXEC /I ZFDAGENT.MSI TRANSFORMS=401zfdagent.mst REBOOT=ReallySuppress /qb-!

ECHO
REM *****RESTORE GINA*******************
IF NOT "%GINA%"=="NWGINA" REG IMPORT GINA.REG

If you have any questions you may contact Trey at Johnstl@shands.ufl.edu


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

© 2014 Novell