kinit: Obtain initial Kerberos ticket

Description Usage Arguments Details Value Author(s) See Also

View source: R/k.R

Description

kinit attepnts to authenticate with Kerberos and obtain a valid ticket either using password or keytab authentication.

Usage

1
2
3
  kinit(user = Sys.getenv("USER"), realm = getOption("kerberos.realm"),
        cache = NULL, password = NULL,
        keytab = if(file.exists("~/.keytab")) "~/.keytab" else NULL)

Arguments

user

string, username of the principal

realm

string, Kerberos realm to authenticate

cache

string, name of the cache file, if NULL the default cache is used

password

string, if set, password authentication will be performed, NULL otherwise

keytab

string, if set, filename of the keytab file to use for authentication

Details

The principal is constructed as user@realm and both have to be set. If either is missing, the first principal in the cache file is used. If there are no principals in th cache (inlcuding when the cache doesn't exist), both user and realm must be set.

Value

Full name of the authenticated principal. Failures to authenticate are signalled as errors.

Author(s)

Simon Urbanek

See Also

klist


s-u/krb5 documentation built on June 8, 2020, 3:56 p.m.

Related to kinit in s-u/krb5...