Announcement

After 5 years serving the vintage Apple enthusiast community, ThinkClassic has been marked for closure and is now in caretaker mode. Please see this thread for further information. Please direct any questions, comments and enquiries about the website, management and ownership to this thread.

You are not logged in.

#1 2015-03-15 19:34:04

bbraun
Member
Registered: 2014-05-29
Posts: 1,064
Website

PAM Authentication Fun

I recently got myself a 12" powerbook g4 running Tiger, mainly because I've been messing around with some PalmOS devices, and I can still run 68k compilers in classic mode.
While setting it up, I dusted off my old source repository, and found an old PAM module I wrote.  PAM (Pluggable Authentication Modules) is a library used by parts of the system to authenticate users in a modular way.  For example, Tiger ships with pam_unix and pam_securityserver modules, and pam_unix authenticates users against /etc/passwd, and pam_securityserver authenticates users against securityd, which uses all the infrastructure of the system to find the user and verify their password.

Anyway, one thing I found was people tend to use sudo too much and don't pay enough attention.  sudo gets prefixed on virtually everything they do, and are not always aware they're doing it.  My solution at the time was to make a PAM module that requires the user to at least tie the computer at tic tac toe before they can continue.  Not a difficult task, but at least demonstrates the user is paying attention.  Here's a video of it in action:

ISTR doing a module at one point that would pop up a safety video, like an airline video telling you to buckle your seat belts, etc.  I can't find that one at the moment.

Offline

#2 2015-03-16 02:24:16

ScutBoy
Member
Registered: 2014-05-25
Posts: 159

Re: PAM Authentication Fun

I was going to say, "PAM" and "fun" shouldn't pop up in the same sentence too often, unless there's a "not" in there somplace smile

Offline

#3 2015-03-16 18:28:13

ClassicHasClass
Member
From: Electron Alley
Registered: 2014-05-26
Posts: 1,118
Website

Re: PAM Authentication Fun

Safe sex video. That would get people's attention.

Just curious (I fully approve of your use of Classic for this purpose): tools like https://github.com/ksherlock/mpw or https://github.com/autc04/Retro68 don't work for you?


Machine room (updated for 2019!): http://www.floodgap.com/etc/machines.html

Offline

#4 2015-03-16 20:16:37

bbraun
Member
Registered: 2014-05-29
Posts: 1,064
Website

Re: PAM Authentication Fun

I've experimented with both, although I ended up preferring 'mpw' to Retro68.  It took several attempts to get retro68 building for 10.9, and I'm still kind of skeptical of the multistep process of converting the output into a macos app.  I also don't really need the features of Retro68 and a newer compiler, since pretty much everything I do is either C or assembly, and the newer C++ features don't really come into the picture.
I have hope that 'mpw' will become my new environment, although I have to admit a weakness for preferring creating resources in ResEdit than Rez.

Offline

Board footer

About ThinkClassic

ThinkClassic specialises in the use, maintenance, repair, restoration and modification of vintage computers and peripherals.