Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
320kerberos:50_apache [le 15/02/2010 à 11:18] – prof | 320kerberos:50_apache [le 30/06/2018 à 15:58] (Version actuelle) – prof | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
====== Configuration d' | ====== Configuration d' | ||
Le serveur '' | Le serveur '' | ||
- | * un système de synchronisation de l' | + | * un système de synchronisation de l' |
* un serveur apache classique ; | * un serveur apache classique ; | ||
* les composants kerberos nécessaires. | * les composants kerberos nécessaires. | ||
+ | |||
===== Installation d' | ===== Installation d' | ||
Nous installons un Apache « prefork » classique : | Nous installons un Apache « prefork » classique : | ||
Ligne 108: | Ligne 109: | ||
kerberos:~# rm krb5-http.keytab | kerberos:~# rm krb5-http.keytab | ||
</ | </ | ||
+ | Nous aurions également pu utiliser la commande '' | ||
=== sur apache-krb === | === sur apache-krb === | ||
Ligne 299: | Ligne 301: | ||
Encryption type: des-cbc-md4 (2) | Encryption type: des-cbc-md4 (2) | ||
</ | </ | ||
+ | Le serveur '' | ||
+ | < | ||
+ | Frame 21 (744 bytes on wire, 744 bytes captured) | ||
+ | ... | ||
+ | Kerberos TGS-REP | ||
+ | Pvno: 5 | ||
+ | MSG Type: TGS-REP (13) | ||
+ | Client Realm: MAISON.MRS | ||
+ | Client Name (Principal): | ||
+ | Name-type: Principal (1) | ||
+ | Name: chris | ||
+ | Ticket | ||
+ | Tkt-vno: 5 | ||
+ | Realm: MAISON.MRS | ||
+ | Server Name (Service and Host): HTTP/ | ||
+ | Name-type: Service and Host (3) | ||
+ | Name: HTTP | ||
+ | Name: apache-krb.maison.mrs | ||
+ | enc-part aes256-cts-hmac-sha1-96 | ||
+ | Encryption type: aes256-cts-hmac-sha1-96 (18) | ||
+ | Kvno: 3 | ||
+ | enc-part: 726E9E662C728E522451A0E630596656899C08CFF04F6F04... | ||
+ | enc-part aes256-cts-hmac-sha1-96 | ||
+ | Encryption type: aes256-cts-hmac-sha1-96 (18) | ||
+ | enc-part: 7FEDC49B008108F3E775207CB937C1DE83828023F9FCFE54... | ||
+ | </ | ||
+ | Et notre renard va re-formuler sa requête avec cette fois-ci ce qu'il faut dedans pour satisfaire l' | ||
+ | < | ||
+ | Frame 22 (1504 bytes on wire, 1504 bytes captured) | ||
+ | ... | ||
+ | Hypertext Transfer Protocol | ||
+ | GET / HTTP/ | ||
+ | [Expert Info (Chat/ | ||
+ | [Message: GET / HTTP/ | ||
+ | [Severity level: Chat] | ||
+ | [Group: Sequence] | ||
+ | Request Method: GET | ||
+ | Request URI: / | ||
+ | Request Version: HTTP/1.1 | ||
+ | Host: apache-krb.maison.mrs\r\n | ||
+ | User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; fr; rv:1.9.1.7) Gecko/ | ||
+ | Accept: text/ | ||
+ | Accept-Language: | ||
+ | Accept-Encoding: | ||
+ | Accept-Charset: | ||
+ | Keep-Alive: 300\r\n | ||
+ | Connection: keep-alive\r\n | ||
+ | If-Modified-Since: | ||
+ | If-None-Match: | ||
+ | [truncated] Authorization: | ||
+ | GSS-API Generic Security Service Application Program Interface | ||
+ | OID: 1.3.6.1.5.5.2 (SPNEGO - Simple Protected Negotiation) | ||
+ | SPNEGO | ||
+ | negTokenInit | ||
+ | mechTypes: 3 items | ||
+ | MechType: 1.2.840.113554.1.2.2 (KRB5 - Kerberos 5) | ||
+ | MechType: 1.3.5.1.5.2 (SNMPv2-SMI:: | ||
+ | MechType: 1.2.840.48018.1.2.2 (MS KRB5 - Microsoft Kerberos 5) | ||
+ | mechToken: 6082026B06092A864886F71201020201006E82025A308202... | ||
+ | krb5_blob: 6082026B06092A864886F71201020201006E82025A308202... | ||
+ | KRB5 OID: 1.2.840.113554.1.2.2 (KRB5 - Kerberos 5) | ||
+ | krb5_tok_id: | ||
+ | Kerberos AP-REQ | ||
+ | Pvno: 5 | ||
+ | MSG Type: AP-REQ (14) | ||
+ | Padding: 0 | ||
+ | APOptions: 00000000 | ||
+ | .0.. .... .... .... .... .... .... .... = Use Session Key: Do NOT use the session key to encrypt the ticket | ||
+ | ..0. .... .... .... .... .... .... .... = Mutual required: Mutual authentication is NOT required | ||
+ | Ticket | ||
+ | Tkt-vno: 5 | ||
+ | Realm: MAISON.MRS | ||
+ | Server Name (Service and Host): HTTP/ | ||
+ | Name-type: Service and Host (3) | ||
+ | Name: HTTP | ||
+ | Name: apache-krb.maison.mrs | ||
+ | enc-part aes256-cts-hmac-sha1-96 | ||
+ | Encryption type: aes256-cts-hmac-sha1-96 (18) | ||
+ | Kvno: 3 | ||
+ | enc-part: 726E9E662C728E522451A0E630596656899C08CFF04F6F04... | ||
+ | Authenticator aes256-cts-hmac-sha1-96 | ||
+ | Encryption type: aes256-cts-hmac-sha1-96 (18) | ||
+ | Authenticator data: FAC8A2377494B396884927BE3726631FA66EFD41C98DC227... | ||
+ | \r\n | ||
+ | </ | ||
+ | Voilà, c'est aussi compliqué que ça, mais ça fonctionne quand même. | ||
+ |
Configuration d'apache-krb: Dernière modification le: 15/02/2010 à 11:18 par prof