> For the complete documentation index, see [llms.txt](https://hacking-notes.jord4n.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacking-notes.jord4n.pro/fr/active-directory/kerberos/general-kerberos-flow.md).

# Flux général de Kerberos

### Étape 1 — AS-REQ

Lorsqu'un utilisateur se connecte, son client envoie une requête au KDC :

```bash
AS-REQ
```

Cette requête correspond à la requête d'authentification initiale.

### Étape 2 — AS-REP

Si l'authentification est valide, le KDC renvoie une réponse :

```bash
AS-REP
```

Cette réponse contient notamment un **TGT**, ou **Ticket d'octroi de tickets**.

Le TGT peut être considéré comme un ticket générique permettant de demander des tickets de service.

### Étape 3 - TGS-REQ

Lorsqu'un utilisateur souhaite accéder à une ressource, par exemple un partage réseau, il présente son TGT au KDC.

Le client envoie alors :

```bash
TGS-REQ
```

Cette requête demande un ticket pour un service spécifique.

### Étape 4 — TGS-REP

Le KDC vérifie le TGT et renvoie un ticket de service :

```bash
TGS-REP
```

Ce ticket est spécifique au service demandé.

### Étape 5 — Accès à la ressource

Le client présente le ticket de service au serveur cible.

Par exemple, pour accéder à :

```bash
//WS01/C$
```

Le client soumet un ticket de service au serveur `WS01`.

Si le ticket est valide mais que l'utilisateur ne dispose pas des autorisations nécessaires sur le partage, l'authentification peut réussir mais l'accès SMB sera refusé.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://hacking-notes.jord4n.pro/fr/active-directory/kerberos/general-kerberos-flow.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
