I am looking for a way to validate a given username/password pair on Mac OS X. My first thought was to approach it using shell. I am currently using:
and then checking to see if the result includes "..", but this is obviously not ideal. Even worse, it only allows me to validate the password against the current user, not any user.
Ideally, I would be able to use
or something like that, and then look for 'sorry', but the way the shell command works in Livecode doesn't seem to allow this. I've tried using 'expect' to approximate it, but so far no luck.
Has anyone had any luck checking the validity of system usernames/passwords on Mac? I am not married to the shell approach by any means.