package krb

  1. Overview
  2. Docs
A library for using Kerberos for both Rpc and Tcp communication

Install

Dune Dependency

Authors

Maintainers

Sources

krb-v0.16.0.tar.gz
sha256=353675621e4c5a888f2483dc1bb7281bd17ce4ed7dfd2f40142257f98db7c77d

doc/src/krb.public/currently_running_user.ml.html

Source file currently_running_user.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
open! Core
open Async

let passwd () = Unix.Passwd.getbyuid_exn (Unix.geteuid ())

let name () =
  let%bind passwd = passwd () in
  return passwd.name
;;

module Blocking = struct
  let passwd () = Core_unix.Passwd.getbyuid_exn (Core_unix.geteuid ())
  let name () = (passwd ()).name
end
OCaml

Innovation. Community. Security.