Behaviours: gen_server.
auth_options() = #{lifetime => secs(), flags => [krb_proto:kdc_flag()]}
password() = binary()
principal() = [string()]
realm() = string()
secs() = integer()
tgs_options() = #{lifetime => secs(), flags => [krb_proto:kdc_flag()], request_pac => boolean()}
authenticate/3 | Performs an initial Kerberos password authentication for the given principal (AS-REQ with an encrypted timestamp). |
authenticate/4 | Performs an initial Kerberos password authentication for the given principal (AS-REQ with an encrypted timestamp). |
obtain_ticket/3 | Obtains a service ticket using the given Ticket-Granting Ticket (TGT) for the specified service principal (TGS-REQ). |
obtain_ticket/4 | Obtains a service ticket using the given Ticket-Granting Ticket (TGT) for the specified service principal (TGS-REQ). |
open/1 | Opens a client for a Kerberos realm, either returning an existing client process or starting a new one. |
authenticate(Pid::pid(), Principal::principal(), Secret::password()) -> {ok, krb_proto:ticket()} | {error, term()}
Performs an initial Kerberos password authentication for the given principal (AS-REQ with an encrypted timestamp).
authenticate(Pid::pid(), Principal::principal(), Secret::password(), Options::auth_options()) -> {ok, krb_proto:ticket()} | {error, term()}
Performs an initial Kerberos password authentication for the given principal (AS-REQ with an encrypted timestamp).
obtain_ticket(Pid::pid(), TGT::krb_proto:ticket(), ServicePrincipal::principal()) -> {ok, krb_proto:ticket()} | {error, term()}
Obtains a service ticket using the given Ticket-Granting Ticket (TGT) for the specified service principal (TGS-REQ).
obtain_ticket(Pid::pid(), TGT::krb_proto:ticket(), ServicePrincipal::principal(), Options::tgs_options()) -> {ok, krb_proto:ticket()} | {error, term()}
Obtains a service ticket using the given Ticket-Granting Ticket (TGT) for the specified service principal (TGS-REQ).
open(Realm::realm()) -> {ok, pid()} | {error, term()}
Opens a client for a Kerberos realm, either returning an existing client process or starting a new one.
Generated by EDoc