Wish to get more understanding on the use of kinit and keytab file. For example, if I already have a keytab file generated for a service ( the service registered to active directory by ktpass
-mapuser
to someuseraccount
)
ktab -k "mykeytab" -a <someprincipal>
what really happens under the hood when a user called USERA
logs in to Windows and use this keytab as a input parameter for kinit?
kinit -k -t "mykeytab" <someprincipal>
Does the kinit
generate initial credentials for someprincipal
or for the currently logged in USERA
?
Hope you can clear up this confusion of mine. thanks
krb5cc_USERA
that is created is a ticket ofsomeuserprincipal
right ? How do i use this ticket for authentication if USERA wants to use the service? Do i use JAAS (krb5loginmodule
) withuseKeytab
option and KDC will know its fromUSERA
? – Herculaneum