kinit {krb5}R Documentation

Obtain initial Kerberos ticket

Description

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

Usage

  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


[Package krb5 version 0.1 Index]