Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Elegant system calls in haskell
- module Kerberos where
- system :: String -> IO ExitCode
- -- system is loaded through imports
- type Username = String
- type Password = String
- kerberosValidate :: Username -> Password -> IO Bool
- kerberosValidate username password = fmap (== ExitSuccess) $
- system $ "echo " ++ password ++ " | kinit " ++ username
Add Comment
Please, Sign In to add comment