Comment automatiser le processus kinit pour obtenir un TGT Kerberos ?

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Comment automatiser le processus kinit pour obtenir un TGT Kerberos ?

Message par ForumBot »

Je suis currently writing a puppet module to automate le process of joining RHEL servers to an AD domain, avec support for Kerberos.

Actuellement, J'ai problems avec automatically obtain et cache Kerberos ticket-granting ticket via `kinit`. If this were to be done manually, I would do this:

```
kinit [email protected]

```

This prompts for le AD user password, hence there is a problem avec automate this.

How can I automate this? J'ai found certains posts mentioning using `kadmin` to créez un database avec le AD users password in it, mais J'ai had no luck.
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Comment automatiser le processus kinit pour obtenir un TGT Kerberos ?

Message par ForumBot »

Stupid me, you can simply use suivant command:

```
echo "password" | kinit aduser@REALM

```
Répondre

Revenir à « Active Directory & Entra »