{"id":331978,"date":"2022-04-15T15:00:20","date_gmt":"2022-04-15T15:00:20","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=331978"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=331978","title":{"rendered":"<span>\u041a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c Kerberos \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0432 Keycloak<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/49e\/c76\/227\/49ec76227bfc6c854863b2513520e90f.png\" width=\"1920\" height=\"1080\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/49e\/c76\/227\/49ec76227bfc6c854863b2513520e90f.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0412\u0438\u043a\u0442\u043e\u0440 \u041f\u043e\u043f\u043e\u0432, \u0442\u0435\u0445\u043b\u0438\u0434 DevOps-\u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0432 X5 Tech \u0438 \u0441\u043f\u0438\u043a\u0435\u0440 \u043a\u0443\u0440\u0441\u0430 \u00ab<a href=\"https:\/\/slurm.io\/keycloak?utm_source=habr&amp;utm_medium=post&amp;utm_campaign=keycloak&amp;utm_content=post_15-04-2022&amp;utm_term=link\">\u0411\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442\u0430: \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u0432 Keycloak<\/a>\u00bb, \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u043b \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b. \u0412 \u043d\u0451\u043c \u043e\u043d \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c Kerberos \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0432 Keycloak \u0438 \u043a\u0430\u043a \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u044b \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b.\u00a0<\/p>\n<h3>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Kerberos \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0432 Keycloak<\/h3>\n<p>\u041a\u0430\u043a\u0438\u0435 \u0438\u043c\u0435\u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u043d\u0430 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u043c \u0441\u0442\u0435\u043d\u0434\u0435:<\/p>\n<ul>\n<li>\n<p>domain controller: WIN-0KIV48GRJRV.keycloak.local<\/p>\n<\/li>\n<li>\n<p>domain name: keycloak.local<\/p>\n<\/li>\n<li>\n<p>keycloak vm: keycloak.keycloak.local<\/p>\n<\/li>\n<li>\n<p>AD user \u0434\u043b\u044f \u043a\u0435\u0440\u0431\u0435\u0440\u043e\u0441\u0430: CN=keycloak,OU=kk-users,DC=keycloak,DC=local<\/p>\n<\/li>\n<\/ul>\n<h4>\u0428\u0430\u0433 1<\/h4>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432 \u0410\u0414. \u042d\u0442\u043e\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 Keycloak \u0441 Kerberos.<\/p>\n<h4>\u0428\u0430\u0433 2<\/h4>\n<p>\u0414\u0430\u043b\u044c\u0448\u0435 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c keycloak.keytab. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430 \u0432\u0438\u043d\u0434\u043e\u0432\u043e\u0438\u0306 \u043c\u0430\u0448\u0438\u043d\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c:<\/p>\n<pre><code>ktpass -out keycloak.keytab -princ HTTP\/keycloak.keycloak.local@KEYCLOAK.LOCAL -mapUser keycloak@KEYCLOAK.LOCAL -pass $PASS -kvno 0 -ptype KRB5_NT_PRINCIPAL -crypto RC4-HMAC-NT<\/code><\/pre>\n<ul>\n<li>\n<p>-princ \u2014 \u044d\u0442\u043e \u0430\u0434\u0440\u0435\u0441 Keycloak;<\/p>\n<\/li>\n<li>\n<p>-mapUser \u2014 \u044d\u0442\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c, \u0434\u043b\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f SPN \u0438 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f keytab;\u00a0<\/p>\n<\/li>\n<li>\n<p>-pass \u2014 \u044d\u0442\u043e \u043f\u0430\u0440\u043e\u043b\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f;<\/p>\n<\/li>\n<li>\n<p>\u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u2014 \u043c\u0430\u0433\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043d\u0443\u0436\u043d\u043e \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043a\u0430\u043a \u0435\u0441\u0442\u044c.<\/p>\n<\/li>\n<\/ul>\n<h4>\u0428\u0430\u0433 3<\/h4>\n<p>\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u043c SPN:<\/p>\n<pre><code>setspn -A HTTP\/keycloak.local@KEYCLOAK.LOCAL keycloak<\/code><\/pre>\n<p>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0443\u0436\u043d\u044b \u043f\u0440\u0430\u0432\u0430 \u0432 \u0410\u0414.<\/p>\n<h4>\u0428\u0430\u0433 4<\/h4>\n<p>\u0412 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0306\u043a\u0430\u0445 user federation Keycloak \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c Kerberos Integration:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/860\/bd3\/02f\/860bd302ff47ce190b161d8b50dcee67.png\" width=\"1600\" height=\"343\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/860\/bd3\/02f\/860bd302ff47ce190b161d8b50dcee67.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0412 Kerberos realm \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0438\u043c\u044f \u0434\u043e\u043c\u0435\u043d\u0430 \u0437\u0430\u0433\u043b\u0430\u0432\u043d\u044b\u043c\u0438 \u0431\u0443\u043a\u0432\u0430\u043c\u0438.<\/p>\n<p>\u0412 Server Principal\u00a0 \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c principal, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0437\u0434\u0430\u043d keytab file. \u0412 \u043f\u0443\u043d\u043a\u0442\u0435 2 (\u043a\u043b\u044e\u0447 -princ).<\/p>\n<p>\u0412 KeyTab \u2014 \u043f\u0443\u0442\u044c \u0434\u043e keytab \u0444\u0430\u0439\u043b\u0430.<\/p>\n<h4>\u0428\u0430\u0433 5<\/h4>\n<p>\u041f\u043e\u0434\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u043c keytab \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u043f\u043e \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u043c\u0443 \u043f\u0443\u0442\u0438.<\/p>\n<h4>\u0428\u0430\u0433 6<\/h4>\n<p>\u0412 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 RC4-HMAC-NT. \u0415\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0435 \u0441 Keycloak.<\/p>\n<p>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0435 \u0432 \u0444\u0430\u0439\u043b \/etc\/krb5.conf.d\/crypto-policies \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c rc4-hmak \u0432 \u0441\u0442\u0440\u043e\u043a\u0443 permitted_enctypes<\/p>\n<h4>\u0428\u0430\u0433 7<\/h4>\n<p>\u0412 Realm \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435 Authentication \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0435\u043c kerberos \u0432 Alternative \u0434\u043b\u044f flow. \u041e\u0431\u044b\u0447\u043d\u043e \u044d\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f browser flow.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/13c\/a73\/f05\/13ca73f05a4bdad48a1ba45bc003cea1.png\" width=\"1600\" height=\"404\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/13c\/a73\/f05\/13ca73f05a4bdad48a1ba45bc003cea1.png\"\/><figcaption><\/figcaption><\/figure>\n<h3>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u0432 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b<\/h3>\n<h4>Internet explorer<\/h4>\n<p>\u0412 IE \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0430\u0434\u0440\u0435\u0441 \u0432 trusted sites:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/a17\/dbd\/413\/a17dbd41353be4d3e0504aa6bad092a8.png\" width=\"1170\" height=\"798\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a17\/dbd\/413\/a17dbd41353be4d3e0504aa6bad092a8.png\"\/><figcaption><\/figcaption><\/figure>\n<h4>Chrome<\/h4>\n<p>\u041d\u0443\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c Chrome \u0441\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0430\u043c\u0438:<\/p>\n<pre><code>chrome.exe --auth-server-whitelist=\"*.keycloak.local\" --auth-negotiate-delegate-whitelist=\"*.keycloak.local\"<\/code><\/pre>\n<p>\u041b\u0438\u0431\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u0433\u0440\u0443\u043f\u043f\u043e\u0432\u0443\u044e \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0443:<\/p>\n<pre><code>AuthServerWhitelist = *.keycloak.local<\/code><\/pre>\n<h4>Firefox<\/h4>\n<p>\u041d\u0443\u0436\u043d\u043e \u0437\u0430\u0439\u0442\u0438 \u0432 about:config \u0438 \u043d\u0430\u0439\u0442\u0438 \u0442\u0430\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438:<\/p>\n<p>network.negotiate-auth.trusted-uris<\/p>\n<p>network.automatic-ntlm-auth.trusted-uris<\/p>\n<p>\u0412 \u043d\u0438\u0445 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0430\u0434\u0440\u0435\u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 Keycloak.<\/p>\n<h3>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435 \u0440\u0435\u0434\u0430\u043a\u0446\u0438\u0438<\/h3>\n<p>\u0412\u0438\u043a\u0442\u043e\u0440 \u041f\u043e\u043f\u043e\u0432 \u2014 \u043e\u0434\u0438\u043d \u0438\u0437 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u043e\u0432 <a href=\"https:\/\/t.me\/keycloak_ru\"><u>\u0440\u0443\u0441\u0441\u043a\u043e\u044f\u0437\u044b\u0447\u043d\u043e\u0433\u043e Keycloak \u043a\u043e\u043c\u044c\u044e\u043d\u0438\u0442\u0438<\/u><\/a>. \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0438 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u043f\u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 Keycloak, \u0432\u044b \u0432\u0441\u0435\u0433\u0434\u0430 \u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u0434\u0430\u0442\u044c \u0438\u0445 \u0432 \u043a\u043e\u043c\u044c\u044e\u043d\u0438\u0442\u0438.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/company\/southbridge\/blog\/661209\/\"> https:\/\/habr.com\/ru\/company\/southbridge\/blog\/661209\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0412\u0438\u043a\u0442\u043e\u0440 \u041f\u043e\u043f\u043e\u0432, \u0442\u0435\u0445\u043b\u0438\u0434 DevOps-\u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0432 X5 Tech \u0438 \u0441\u043f\u0438\u043a\u0435\u0440 \u043a\u0443\u0440\u0441\u0430 \u00ab<a href=\"https:\/\/slurm.io\/keycloak?utm_source=habr&amp;utm_medium=post&amp;utm_campaign=keycloak&amp;utm_content=post_15-04-2022&amp;utm_term=link\">\u0411\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442\u0430: \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u0432 Keycloak<\/a>\u00bb, \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u043b \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b. \u0412 \u043d\u0451\u043c \u043e\u043d \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c Kerberos \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0432 Keycloak \u0438 \u043a\u0430\u043a \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u044b \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b.\u00a0<\/p>\n<h3>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Kerberos \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0432 Keycloak<\/h3>\n<p>\u041a\u0430\u043a\u0438\u0435 \u0438\u043c\u0435\u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u043d\u0430 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u043c \u0441\u0442\u0435\u043d\u0434\u0435:<\/p>\n<ul>\n<li>\n<p>domain controller: WIN-0KIV48GRJRV.keycloak.local<\/p>\n<\/li>\n<li>\n<p>domain name: keycloak.local<\/p>\n<\/li>\n<li>\n<p>keycloak vm: keycloak.keycloak.local<\/p>\n<\/li>\n<li>\n<p>AD user \u0434\u043b\u044f \u043a\u0435\u0440\u0431\u0435\u0440\u043e\u0441\u0430: CN=keycloak,OU=kk-users,DC=keycloak,DC=local<\/p>\n<\/li>\n<\/ul>\n<h4>\u0428\u0430\u0433 1<\/h4>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432 \u0410\u0414. \u042d\u0442\u043e\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 Keycloak \u0441 Kerberos.<\/p>\n<h4>\u0428\u0430\u0433 2<\/h4>\n<p>\u0414\u0430\u043b\u044c\u0448\u0435 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c keycloak.keytab. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430 \u0432\u0438\u043d\u0434\u043e\u0432\u043e\u0438\u0306 \u043c\u0430\u0448\u0438\u043d\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c:<\/p>\n<pre><code>ktpass -out keycloak.keytab -princ HTTP\/keycloak.keycloak.local@KEYCLOAK.LOCAL -mapUser keycloak@KEYCLOAK.LOCAL -pass $PASS -kvno 0 -ptype KRB5_NT_PRINCIPAL -crypto RC4-HMAC-NT<\/code><\/pre>\n<ul>\n<li>\n<p>-princ \u2014 \u044d\u0442\u043e \u0430\u0434\u0440\u0435\u0441 Keycloak;<\/p>\n<\/li>\n<li>\n<p>-mapUser \u2014 \u044d\u0442\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c, \u0434\u043b\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f SPN \u0438 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f keytab;\u00a0<\/p>\n<\/li>\n<li>\n<p>-pass \u2014 \u044d\u0442\u043e \u043f\u0430\u0440\u043e\u043b\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f;<\/p>\n<\/li>\n<li>\n<p>\u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u2014 \u043c\u0430\u0433\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043d\u0443\u0436\u043d\u043e \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043a\u0430\u043a \u0435\u0441\u0442\u044c.<\/p>\n<\/li>\n<\/ul>\n<h4>\u0428\u0430\u0433 3<\/h4>\n<p>\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u043c SPN:<\/p>\n<pre><code>setspn -A HTTP\/keycloak.local@KEYCLOAK.LOCAL keycloak<\/code><\/pre>\n<p>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0443\u0436\u043d\u044b \u043f\u0440\u0430\u0432\u0430 \u0432 \u0410\u0414.<\/p>\n<h4>\u0428\u0430\u0433 4<\/h4>\n<p>\u0412 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0306\u043a\u0430\u0445 user federation Keycloak \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c Kerberos Integration:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0412 Kerberos realm \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0438\u043c\u044f \u0434\u043e\u043c\u0435\u043d\u0430 \u0437\u0430\u0433\u043b\u0430\u0432\u043d\u044b\u043c\u0438 \u0431\u0443\u043a\u0432\u0430\u043c\u0438.<\/p>\n<p>\u0412 Server Principal\u00a0 \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c principal, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0437\u0434\u0430\u043d keytab file. \u0412 \u043f\u0443\u043d\u043a\u0442\u0435 2 (\u043a\u043b\u044e\u0447 -princ).<\/p>\n<p>\u0412 KeyTab \u2014 \u043f\u0443\u0442\u044c \u0434\u043e keytab \u0444\u0430\u0439\u043b\u0430.<\/p>\n<h4>\u0428\u0430\u0433 5<\/h4>\n<p>\u041f\u043e\u0434\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u043c keytab \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u043f\u043e \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u043c\u0443 \u043f\u0443\u0442\u0438.<\/p>\n<h4>\u0428\u0430\u0433 6<\/h4>\n<p>\u0412 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 RC4-HMAC-NT. \u0415\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0435 \u0441 Keycloak.<\/p>\n<p>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0435 \u0432 \u0444\u0430\u0439\u043b \/etc\/krb5.conf.d\/crypto-policies \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c rc4-hmak \u0432 \u0441\u0442\u0440\u043e\u043a\u0443 permitted_enctypes<\/p>\n<h4>\u0428\u0430\u0433 7<\/h4>\n<p>\u0412 Realm \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435 Authentication \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0435\u043c kerberos \u0432 Alternative \u0434\u043b\u044f flow. \u041e\u0431\u044b\u0447\u043d\u043e \u044d\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f browser flow.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<h3>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u0432 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b<\/h3>\n<h4>Internet explorer<\/h4>\n<p>\u0412 IE \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0430\u0434\u0440\u0435\u0441 \u0432 trusted sites:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<h4>Chrome<\/h4>\n<p>\u041d\u0443\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c Chrome \u0441\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0430\u043c\u0438:<\/p>\n<pre><code>chrome.exe --auth-server-whitelist=\"*.keycloak.local\" --auth-negotiate-delegate-whitelist=\"*.keycloak.local\"<\/code><\/pre>\n<p>\u041b\u0438\u0431\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u0433\u0440\u0443\u043f\u043f\u043e\u0432\u0443\u044e \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0443:<\/p>\n<pre><code>AuthServerWhitelist = *.keycloak.local<\/code><\/pre>\n<h4>Firefox<\/h4>\n<p>\u041d\u0443\u0436\u043d\u043e \u0437\u0430\u0439\u0442\u0438 \u0432 about:config \u0438 \u043d\u0430\u0439\u0442\u0438 \u0442\u0430\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438:<\/p>\n<p>network.negotiate-auth.trusted-uris<\/p>\n<p>network.automatic-ntlm-auth.trusted-uris<\/p>\n<p>\u0412 \u043d\u0438\u0445 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0430\u0434\u0440\u0435\u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 Keycloak.<\/p>\n<h3>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435 \u0440\u0435\u0434\u0430\u043a\u0446\u0438\u0438<\/h3>\n<p>\u0412\u0438\u043a\u0442\u043e\u0440 \u041f\u043e\u043f\u043e\u0432 \u2014 \u043e\u0434\u0438\u043d \u0438\u0437 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u043e\u0432 <a href=\"https:\/\/t.me\/keycloak_ru\"><u>\u0440\u0443\u0441\u0441\u043a\u043e\u044f\u0437\u044b\u0447\u043d\u043e\u0433\u043e Keycloak \u043a\u043e\u043c\u044c\u044e\u043d\u0438\u0442\u0438<\/u><\/a>. \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0438 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u043f\u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 Keycloak, \u0432\u044b \u0432\u0441\u0435\u0433\u0434\u0430 \u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u0434\u0430\u0442\u044c \u0438\u0445 \u0432 \u043a\u043e\u043c\u044c\u044e\u043d\u0438\u0442\u0438.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/company\/southbridge\/blog\/661209\/\"> https:\/\/habr.com\/ru\/company\/southbridge\/blog\/661209\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-331978","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/331978","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=331978"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/331978\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=331978"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=331978"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=331978"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}