[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Checking user-id's and paswords



On 10 Jul 97 at 14:17, Strider wrote:

> There is an applescript OSAX which allows u/g interface. It is possible, I
> think, to use that through an applescript to get U/G info.

Thanks for everyone's help. I found th OSAX at:

  ftp://mirror.apple.com/mirrors/gaea.scriptweb.com/
                  applescript/osaxen/usersandgroups1.2b.cpt.hqx

and it works a treat from MacPerl:

  $xxx = &MacPerl'DoAppleScript(<<"EndScript");
  return (authenticate user name "jon" password "xxx")
  EndScript

  if ($xxx eq 'true')
  { print "OK\n";
  }
  else
  { print "Nogo\n";
  }

Jon.
--
Jon Warbrick, Computer Systems Manager,                jw35@cus.cam.ac.uk
St John's College, Cambridge, CB2 1TP, UK.             +44 (0)1223 338751
(also webmaster, computer-support and part-time postmaster@joh.cam.ac.uk)

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch