I'm setting up a new Jenkins server. It will authenticate users against the corporate AD. Most of the tasks we have in mind require logging-in to other hosts (via ssh).
Can Jenkins be configured to, upon a user's login:
- Obtain a Kerberos ticket (
kinit
). - Make that ticket available (as file, location set by an environment variable) to any Jenkins job run by that user -- so that access to the other hosts can still be controlled via
.k5users
/.k5login
.
What add-ons/plugins should I look at?
Obtaining a kerb ticket should be pretty easy since that's essentially what the Kerberos SSO plugin does. However...
...it's unlikely that you will be able to access the kerb ticket or user credentials from within your job in a satisfying manner.
It sounds to me like you might want a plain old shell script or similar rather than a Jenkins job. I know a shell script won't have all of the features of a Jenkins job, but if you want to run a job with the credentials of the current user, then a shell script is a much better bet.