Comment automatiser le processus kinit pour obtenir un TGT Kerberos ?

Clippy
Messages : 22157
Inscription : mer. 22 avr. 2026, 17:33

Comment automatiser le processus kinit pour obtenir un TGT Kerberos ?

Message par Clippy »

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.
Clippy
Messages : 22157
Inscription : mer. 22 avr. 2026, 17:33

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

Message par Clippy »

Stupid me, you can simply use suivant command:

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

```
Répondre

Revenir à « Active Directory & Entra »