package krb
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=353675621e4c5a888f2483dc1bb7281bd17ce4ed7dfd2f40142257f98db7c77d
doc/krb.public/Krb_public/Principal/index.html
Module Krb_public.Principal
Source
A principal is a unique identity to which kerberos can assign tickets. Generally, principals are a name (containing an arbitrary number of components separated by '/') followed by "@<REALM>". The Krb
library allows for two kinds of principals:
User: <username>@<REALM> Service: <service>/<hostname>.<domain>@<REALM>
See Config
for information on how to configure <REALM> and <domain>.
For a more complete explanation, see the MIT krb5 documentation: http://web.mit.edu/kerberos/krb5-1.5/krb5-1.5.4/doc/krb5-user/What-is-a-Kerberos-Principal_003f.html
val service_with_canonicalized_hostname :
service:string ->
hostname:string ->
t Async.Deferred.Or_error.t
Constructs a principal <service_name>/<canonicalized_hostname>
, where the canonicalized hostname is derived from hostname
with the rules defined by the Kerberos config (as described at https://web.mit.edu/kerberos/krb5-devel/doc/admin/princ_dns.html).
val kvno :
?cred_cache:Krb_internal_public.Std.Cred_cache.t ->
t ->
int Async.Deferred.Or_error.t
kvno
returns the key version number known by the KDC. Consequently this is an online test and must be called by a user with a valid TGT.