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:40_workstation [le 13/02/2010 à 16:38] – prof | 320kerberos:40_workstation [le 30/06/2018 à 15:58] (Version actuelle) – prof | ||
---|---|---|---|
Ligne 47: | Ligne 47: | ||
La commande '' | La commande '' | ||
+ | C'est peut-être le moment de commencer à s' | ||
+ | |||
+ | ==== Le kinit ==== | ||
+ | < | ||
+ | No. | ||
+ | 1 0.000000 | ||
+ | 2 0.000590 | ||
+ | 3 2.763186 | ||
+ | 4 2.766187 | ||
+ | </ | ||
+ | AS-REQ, on comprend. C'est une requête au serveur d' | ||
+ | < | ||
+ | Frame 1 (211 bytes on wire, 211 bytes captured) | ||
+ | ... | ||
+ | Kerberos AS-REQ | ||
+ | Pvno: 5 | ||
+ | MSG Type: AS-REQ (10) | ||
+ | KDC_REQ_BODY | ||
+ | Padding: 0 | ||
+ | KDCOptions: 00000010 (Renewable OK) | ||
+ | .0.. .... .... .... .... .... .... .... = Forwardable: | ||
+ | ..0. .... .... .... .... .... .... .... = Forwarded: This is NOT a forwarded ticket | ||
+ | ...0 .... .... .... .... .... .... .... = Proxiable: Do NOT use proxiable tickets | ||
+ | .... 0... .... .... .... .... .... .... = Proxy: This ticket has NOT been proxied | ||
+ | .... .0.. .... .... .... .... .... .... = Allow Postdate: We do NOT allow the ticket to be postdated | ||
+ | .... ..0. .... .... .... .... .... .... = Postdated: This ticket is NOT postdated | ||
+ | .... .... 0... .... .... .... .... .... = Renewable: This ticket is NOT renewable | ||
+ | .... .... ...0 .... .... .... .... .... = Opt HW Auth: False | ||
+ | .... .... .... ..0. .... .... .... .... = Constrained Delegation: This is a normal request (no constrained delegation) | ||
+ | .... .... .... ...0 .... .... .... .... = Canonicalize: | ||
+ | .... .... .... .... .... .... ..0. .... = Disable Transited Check: Transited checking is NOT disabled | ||
+ | .... .... .... .... .... .... ...1 .... = Renewable OK: We accept RENEWED tickets | ||
+ | .... .... .... .... .... .... .... 0... = Enc-Tkt-in-Skey: | ||
+ | .... .... .... .... .... .... .... ..0. = Renew: This is NOT a request to renew a ticket | ||
+ | .... .... .... .... .... .... .... ...0 = Validate: This is NOT a request to validate a postdated ticket | ||
+ | Client Name (Principal): | ||
+ | Name-type: Principal (1) | ||
+ | Name: chris | ||
+ | Realm: MAISON.MRS | ||
+ | Server Name (Unknown): krbtgt/ | ||
+ | Name-type: Unknown (0) | ||
+ | Name: krbtgt | ||
+ | Name: MAISON.MRS | ||
+ | from: 2010-02-13 19:09:50 (UTC) | ||
+ | till: 2010-02-14 19:09:50 (UTC) | ||
+ | Nonce: 140992433 | ||
+ | Encryption Types: aes256-cts-hmac-sha1-96 aes128-cts-hmac-sha1-96 des3-cbc-sha1 rc4-hmac des-cbc-crc des-cbc-md5 des-cbc-md4 | ||
+ | Encryption type: aes256-cts-hmac-sha1-96 (18) | ||
+ | Encryption type: aes128-cts-hmac-sha1-96 (17) | ||
+ | Encryption type: des3-cbc-sha1 (16) | ||
+ | Encryption type: rc4-hmac (23) | ||
+ | Encryption type: des-cbc-crc (1) | ||
+ | Encryption type: des-cbc-md5 (3) | ||
+ | Encryption type: des-cbc-md4 (2) | ||
+ | </ | ||
+ | L' | ||
+ | |||
+ | Il n'y a aucune partie chiffrée dans cette requête, il n'y a pas non plus de mot de passe. Très simple, donc. | ||
+ | |||
+ | Oui mais voilà, le cerbère ne l' | ||
+ | |||
+ | < | ||
+ | Frame 2 (297 bytes on wire, 297 bytes captured) | ||
+ | ... | ||
+ | Kerberos KRB-ERROR | ||
+ | Pvno: 5 | ||
+ | MSG Type: KRB-ERROR (30) | ||
+ | ctime: 1974-06-20 20:33:53 (UTC) | ||
+ | stime: 2010-02-13 19:09:50 (UTC) | ||
+ | susec: 737204 | ||
+ | <span class=" | ||
+ | Client Realm: MAISON.MRS | ||
+ | Client Name (Principal): | ||
+ | Name-type: Principal (1) | ||
+ | Name: chris | ||
+ | Realm: MAISON.MRS | ||
+ | Server Name (Unknown): krbtgt/ | ||
+ | Name-type: Unknown (0) | ||
+ | Name: krbtgt | ||
+ | Name: MAISON.MRS | ||
+ | e-text: NEEDED_PREAUTH | ||
+ | e-data | ||
+ | <span class=" | ||
+ | Type: PA-ENC-TIMESTAMP (2) | ||
+ | Value: < | ||
+ | Type: Unknown (136) | ||
+ | Value: < | ||
+ | Type: PA-ENCTYPE-INFO2 (19) | ||
+ | Value: 30153005A0030201123005A0030201173005A003020110 aes256-cts-hmac-sha1-96 rc4-hmac des3-cbc-sha1 | ||
+ | Encryption type: aes256-cts-hmac-sha1-96 (18) | ||
+ | Encryption type: rc4-hmac (23) | ||
+ | Encryption type: des3-cbc-sha1 (16) | ||
+ | Type: PA-SAM-RESPONSE (13) | ||
+ | Value: < | ||
+ | Type: Unknown (133) | ||
+ | Value: 4D4954</ | ||
+ | </ | ||
+ | |||
+ | Ce n'est pas une vraie erreur, c'est juste que l'AS désire recevoir une pré-authentification. Voyez les RFC idoines si vous voulez vraiment aller tout au fond des choses : | ||
+ | |||
+ | //The ETYPE-INFO2 pre-authentication type is sent by the KDC in a KRB-ERROR indicating a requirement for additional pre-authentication. It is usually used to notify a client of which key to use for the encryption of an encrypted timestamp for the purposes of sending a PA-ENC-TIMESTAMP pre-authentication value.// | ||
+ | |||
+ | Bref, le client s' | ||
+ | |||
+ | < | ||
+ | Frame 3 (310 bytes on wire, 310 bytes captured) | ||
+ | ... | ||
+ | Kerberos AS-REQ | ||
+ | Pvno: 5 | ||
+ | MSG Type: AS-REQ (10) | ||
+ | <span class=" | ||
+ | Type: Unknown (133) | ||
+ | Value: 4D4954 | ||
+ | Type: PA-ENC-TIMESTAMP (2) | ||
+ | Value: 3041A003020112A23A0438EAB48D41FF4F470D1BB255E7D7... aes256-cts-hmac-sha1-96 | ||
+ | Encryption type: aes256-cts-hmac-sha1-96 (18) | ||
+ | enc PA_ENC_TIMESTAMP: | ||
+ | KDC_REQ_BODY | ||
+ | Padding: 0 | ||
+ | KDCOptions: 00000010 (Renewable OK) | ||
+ | .0.. .... .... .... .... .... .... .... = Forwardable: | ||
+ | ..0. .... .... .... .... .... .... .... = Forwarded: This is NOT a forwarded ticket | ||
+ | ...0 .... .... .... .... .... .... .... = Proxiable: Do NOT use proxiable tickets | ||
+ | .... 0... .... .... .... .... .... .... = Proxy: This ticket has NOT been proxied | ||
+ | .... .0.. .... .... .... .... .... .... = Allow Postdate: We do NOT allow the ticket to be postdated | ||
+ | .... ..0. .... .... .... .... .... .... = Postdated: This ticket is NOT postdated | ||
+ | .... .... 0... .... .... .... .... .... = Renewable: This ticket is NOT renewable | ||
+ | .... .... ...0 .... .... .... .... .... = Opt HW Auth: False | ||
+ | .... .... .... ..0. .... .... .... .... = Constrained Delegation: This is a normal request (no constrained delegation) | ||
+ | .... .... .... ...0 .... .... .... .... = Canonicalize: | ||
+ | .... .... .... .... .... .... ..0. .... = Disable Transited Check: Transited checking is NOT disabled | ||
+ | .... .... .... .... .... .... ...1 .... = Renewable OK: We accept RENEWED tickets | ||
+ | .... .... .... .... .... .... .... 0... = Enc-Tkt-in-Skey: | ||
+ | .... .... .... .... .... .... .... ..0. = Renew: This is NOT a request to renew a ticket | ||
+ | .... .... .... .... .... .... .... ...0 = Validate: This is NOT a request to validate a postdated ticket | ||
+ | Client Name (Principal): | ||
+ | Name-type: Principal (1) | ||
+ | Name: chris | ||
+ | Realm: MAISON.MRS | ||
+ | Server Name (Unknown): krbtgt/ | ||
+ | Name-type: Unknown (0) | ||
+ | Name: krbtgt | ||
+ | Name: MAISON.MRS | ||
+ | from: 2010-02-13 19:09:50 (UTC) | ||
+ | till: 2010-02-14 19:09:50 (UTC) | ||
+ | Nonce: 140992433 | ||
+ | Encryption Types: aes256-cts-hmac-sha1-96 aes128-cts-hmac-sha1-96 des3-cbc-sha1 rc4-hmac des-cbc-crc des-cbc-md5 des-cbc-md4 | ||
+ | Encryption type: aes256-cts-hmac-sha1-96 (18) | ||
+ | Encryption type: aes128-cts-hmac-sha1-96 (17) | ||
+ | Encryption type: des3-cbc-sha1 (16) | ||
+ | Encryption type: rc4-hmac (23) | ||
+ | Encryption type: des-cbc-crc (1) | ||
+ | Encryption type: des-cbc-md5 (3) | ||
+ | Encryption type: des-cbc-md4 (2) | ||
+ | </ | ||
+ | |||
+ | Finalement , le cerbère accorde son TGT au client : | ||
+ | |||
+ | < | ||
+ | Frame 4 (711 bytes on wire, 711 bytes captured) | ||
+ | ... | ||
+ | Kerberos AS-REP | ||
+ | Pvno: 5 | ||
+ | MSG Type: AS-REP (11) | ||
+ | <span class=" | ||
+ | Type: PA-ENCTYPE-INFO2 (19) | ||
+ | Value: 30073005A003020112 aes256-cts-hmac-sha1-96 | ||
+ | Encryption type: aes256-cts-hmac-sha1-96 (18) | ||
+ | Client Realm: MAISON.MRS | ||
+ | Client Name (Principal): | ||
+ | Name-type: Principal (1) | ||
+ | Name: chris | ||
+ | Ticket | ||
+ | Tkt-vno: 5 | ||
+ | Realm: MAISON.MRS | ||
+ | Server Name (Unknown): krbtgt/ | ||
+ | Name-type: Unknown (0) | ||
+ | Name: krbtgt | ||
+ | Name: MAISON.MRS | ||
+ | enc-part aes256-cts-hmac-sha1-96 | ||
+ | Encryption type: aes256-cts-hmac-sha1-96 (18) | ||
+ | Kvno: 1 | ||
+ | enc-part: 19E7D3E7337658EFC983B6221B1F4BC80C8E7AB16003E6E9... | ||
+ | enc-part aes256-cts-hmac-sha1-96 | ||
+ | Encryption type: aes256-cts-hmac-sha1-96 (18) | ||
+ | enc-part: D41400F6E3A44CD883DA34BEE71F312519890F9FF2A053CC...</ | ||
+ | </ | ||
+ | |||
+ | //The ETYPE-INFO2 MAY also be sent in an AS-REP to provide information to the client about which key salt to use for the string-to-key to be used by the client to obtain the key for decrypting the encrypted part the AS-REP.// | ||
+ | |||
+ | Voilà qui ne manque pas de sel. |
La station de travail: Dernière modification le: 13/02/2010 à 16:38 par prof