home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!munnari.oz.au!ariel.ucs.unimelb.EDU.AU!ucsvc.ucs.unimelb.edu.au!u5533129
- From: u5533129@ucsvc.ucs.unimelb.edu.au
- Newsgroups: comp.sys.novell
- Subject: Re: Toward a more persistent login.exe
- Message-ID: <1993Jan22.084550.4445@ucsvc.ucs.unimelb.edu.au>
- Date: 22 Jan 93 08:45:50 +1100
- References: <mr.727477099@ogre> <1993Jan19.200359.250@indyvax.iupui.edu>
- Organization: The University of Melbourne
- Lines: 29
-
- In article <1993Jan19.200359.250@indyvax.iupui.edu>, harvey@indyvax.iupui.edu writes:
- > In article <mr.727477099@ogre>, mr@ogre.cica.indiana.edu (Michael Regoli) writes:
- >> Has anyone built a little DOS batch-file wrapper to login.exe that
- >> calls login.exe AGAIN when a password is invalid? I've not been able
- >> to figure out a sure-fire batch file that would do this. Testing for
- >> the environment variable %NAME% is fine--because it tests true for a
- >> login--just as long as the same user logs in to the same machine every
- >> day (e.g., "IF '%NAME%'=='JOE' goto success"), but what if Suzie sits
- >> down at Joe's machine?
- >
- > LOGIN sets the errorlevel to zero if the login is successful, otherwise to
- > something else. So something like:
- >
- > if errorlevel 1 goto logfail
- >
- > works nicely.
-
- It works nicely until something in you login script sets the errorlevel.
-
- Another solution is
-
- :login
- echo.
- login
- if not exist sys:\public\*.* goto login
-
- which works provided the user has scan priveledges in sys:\public.
-
- Peter Summers
-