On Sun, 2004-07-18 at 03:06, Andreas Aardal Hanssen wrote:
> On Mon, 12 Jul 2004, Alan I wrote:
> >I imagine that this is because checkpassword doesn't know anything about
> >Netinfo (where Panther keeps username and password information, instead
> >of /etc/passwd .
> >(...)
> >Or is there a netinfo-aware drop-in for checkpassword?
> 
> It seems you're out of luck on this one; nobody answered so I guess it's
> hard to come around a netinfo aware checkpassword.
> 
> But I know that there are several here that use Mac OS X, perhaps they
> could shed some light on this problem?
> 
> Andy :-) 

I wrote a Perl checkpassword once...
http://www.davidnicol.com/projects/quizpool/checkpop3password.pl
the trickiest part of it was opening a file handle on descriptor #3,
since I didn't know how to do that.  The checkpasswd parts are
clipped for your convenience below:

   use strict qw( vars );
   my($len,$buf);
   open (USER, "<&=3")
    or die "could not open fd 3\n"; #exit (-3);
   $len = read(USER, $buf, 512);
   close USER;
   exit(-3) if $len < 4;
   my($user, $pass) = split /\0/, $buf
    or die "data not in checkpassword format";


Checkpassword programs are trivial to write.

-- 
david nicol
this message was sent from a filtering e-mail address.
Until I add you to my friends list, to get by Big Emet
the cowboy doorman your reply must include a listed
"magic phrase" such as "cat and buttered toast" 

Reply via email to