home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!stanford.edu!CSD-NewsHost.Stanford.EDU!CS.Stanford.EDU!cheshire
- From: cheshire@CS.Stanford.EDU (Stuart Cheshire)
- Subject: Blobs for passwords, a la AppleShare login
- Message-ID: <1992Sep2.033117.16489@CSD-NewsHost.Stanford.EDU>
- Sender: news@CSD-NewsHost.Stanford.EDU
- Reply-To: cheshire@CS.Stanford.EDU (Stuart Cheshire)
- Organization: Computer Science Department, Stanford University
- Date: Wed, 2 Sep 1992 03:31:17 GMT
- Lines: 46
-
- I have written a small INIT (explained later) which I intend to release as
- public domain, to accompany the CAP distribution, and I have a simple question:
-
- What is the easiest/best way to display a series of blobs instead of
- letters when a user types in a password?
-
- When you log into an AppleShare server it does this, and other
- applications must have similar requirements, so I don't want to
- have to reinvent the wheel.
-
- One possible way I thought of would be to use a font consisting
- entirely of blobs, but I don't know how to set the font for a
- single particular TEdit field in a dialog box, and that would
- require wasting disk space with an extra font.
-
- Another idea might be to use a user DialogFilter and trap all
- keystrokes and change them into blob characters.
-
- Has anyone gone through this before and solved it? Does System 7 have
- any new extensions to provide a 'secure Edit Text' item in a DITL?
- I don't mind if the answer requires System 7.
-
- Stuart Cheshire <cheshire@cs.stanford.edu>
- * Liliore Green Rains Houses Resident Computer Coordinator
- * Stanford Distributed Systems Group Research Assistant
- * Macintosh Programmer
-
- P.S. The INIT is called "Macintosh User Authenticator" and is written
- to accompany a small patch to the CAP lwsrv program. The demand for
- security in Macintosh laser printing seems to be great, because there
- are already several patches to lwsrv which seek to add some kind of
- security and/or user authentication, but none seem really satisfactory.
- Our software works like this:
-
- 1. The user prints, via the Mac's LaserWriter driver, to the CAP
- lwsrv program, just as normal.
- 2. Before it will start printing, the specially modified lwsrv does a call
- back to the originating Macintosh, to the "Macintosh User Authenticator".
- 3. The User Authenticator throws up a dialog box for the user, requesting
- a username and password.
- 4. lwsrv checks that the username/password pair is valid, and if so does
- a "setuid" and prints the document, with the result that the standard
- bsd print accounting logs the printing as done by that user, just as
- if they had logged on and issued an "lpr" command.
-
- Further enhancements or features are possible, but this is the basic idea.
-