harbor_auth.liq
def auth(login,password) =
# Call an external process to check
# the credentials:
# The script will return the string
# "true" of "false"
#
# First call the script
ret = get_process_lines("/path/to/script \
--login=#{login} --password=#{password}")
# Then get the first line of its output
ret = list.hd(ret)
# Finally returns the boolean represented
# by the output
float_of_string(ret)
end
Download