Hello,
I have a problem that I’m at my wits end at resolving. I would like to check to see if a user name and password is valid on a remote machine. The issue is, if the name and password is incorrect, OS X presents a failed authentication dialog.
One possibility that came to me is using SSH or rlogin to attempt to login in through the shell; however, I can’t find any commands that allow me to connect to a remote machine without forcing a separate password line.
Ideally, I would just like to have a “failed” result and provide the error handling myself. I’ve looked into trying SSH, rlogin, ignoring application responses, error handling…just about anything I can think of. Help!
Here is an example:
on VerifyAuthentication(wUserInfo)
set sEPPCAddy to "eppc://" & admin_name of wUserInfo & ":" & admin_password of wUserInfo & "@" & ip_address of wUserInfo
try
with timeout of 3 seconds
using terms from application "Finder"
tell application "Finder" of machine sEPPCAddy
-- do something mindless--just to see if we can log in
do shell script "echo"
end tell
end using terms from
end timeout
on error
return false
end try
return true
end VerifyAuthentication
Thanks!!!