package krb
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=353675621e4c5a888f2483dc1bb7281bd17ce4ed7dfd2f40142257f98db7c77d
doc/krb.public/Krb_public/Principal/Name/index.html
Module Principal.Name
Source
A Name.t
represents the conventional names that may appear in a Kerberos principal (i.e. the bit before "@REALM").
By default, when constructing a principal from this type, we assume that the principal is within the default realm configured in krb.conf
. If realm information should be preserved (eg. within cross-realm environments), use Cross_realm_principal_name.t
instead.
include Ppx_compare_lib.Comparable.S with type t := t
include Ppx_hash_lib.Hashable.S with type t := t
to_string
returns either <username> or <service>/<hostname>.
of_string
is lenient to inclusion of the realm (for all principals) and full qualification of the domain name (for service principals). We drop the provided realm and drop a provided domain name if it matches the default domain.
include Core.Comparable.S_plain with type t := t
include Base.Comparable.S with type t := t
ascending
is identical to compare
. descending x y = ascending y x
. These are intended to be mnemonic when used like List.sort ~compare:ascending
and List.sort ~cmp:descending
, since they cause the list to be sorted in ascending or descending order, respectively.
clamp_exn t ~min ~max
returns t'
, the closest value to t
such that between t' ~low:min ~high:max
is true.
Raises if not (min <= max)
.
val comparator : (t, comparator_witness) Base__.Comparator.comparator
module Map :
Core.Map.S_plain
with type Key.t = t
with type Key.comparator_witness = comparator_witness
module Set :
Core.Set.S_plain
with type Elt.t = t
with type Elt.comparator_witness = comparator_witness
include Core.Hashable.S_plain with type t := t
include Ppx_compare_lib.Comparable.S with type t := t
val compare : t Base__Ppx_compare_lib.compare
Returns None
if t
is a Service
Raises if t
is a Service
Cross-realm