{"componentChunkName":"component---src-templates-post-template-js","path":"/posts/active-directory-saml-sso-concepts","result":{"data":{"markdownRemark":{"id":"473f618e-2b02-5a27-86fc-257d952c4b4c","html":"<p>「Active Directory で SAML 2.0 による SSO」について、登場する用語を整理してみました。</p>\n<h2 id=\"sso-の種類\" style=\"position:relative;\"><a href=\"#sso-%E3%81%AE%E7%A8%AE%E9%A1%9E\" aria-label=\"sso の種類 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>SSO の種類</h2>\n<p>一言で SSO と言っても、</p>\n<ul>\n<li>Kerberos 認証</li>\n<li>SAML 認証</li>\n<li>OAuth 認証</li>\n<li>OpenID Connect 認証</li>\n</ul>\n<p>など、様々な種類があります。</p>\n<p>この記事では、SAML 2.0 を使った SSO について注目していきます。</p>\n<p>参考: <a href=\"https://www.designet.co.jp/ossinfo/selection/singlesignon_structure.html\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">シングルサインオンの仕組みと選び方 | OSSのデージーネット</a></p>\n<h2 id=\"saml-の概要\" style=\"position:relative;\"><a href=\"#saml-%E3%81%AE%E6%A6%82%E8%A6%81\" aria-label=\"saml の概要 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>SAML の概要</h2>\n<p>SAML の概要は、Zenn などで購入できる『<a href=\"https://zenn.dev/kxn4t/books/3778cace88911a\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">SAML入門</a>』読むのがおすすめです。</p>\n<p>Web 上の記事などではなかなかとっつきにくい SAML の入門にぴったりです。</p>\n<h2 id=\"saml-20-による-sso-の登場人物\" style=\"position:relative;\"><a href=\"#saml-20-%E3%81%AB%E3%82%88%E3%82%8B-sso-%E3%81%AE%E7%99%BB%E5%A0%B4%E4%BA%BA%E7%89%A9\" aria-label=\"saml 20 による sso の登場人物 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>SAML 2.0 による SSO の登場人物</h2>\n<p>SAML 2.0 による SSO では、</p>\n<ul>\n<li>SP (Service Provider)</li>\n<li>IdP (Identity Provider)</li>\n</ul>\n<p>の 2 つが登場します。</p>\n<p>図にすると、以下のように分類できます。</p>\n<p><img src=\"/media/saml-sps-and-idps.png\"></p>\n<h3 id=\"sp\" style=\"position:relative;\"><a href=\"#sp\" aria-label=\"sp permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>SP</h3>\n<p>SP は、SSO でログインしたいサービスです。</p>\n<p>例えば AWS や SmartHR などが挙げられます。</p>\n<h3 id=\"idp\" style=\"position:relative;\"><a href=\"#idp\" aria-label=\"idp permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>IdP</h3>\n<p>IdP は、認証情報を管理する側のサービスです。</p>\n<p>IdP にはクラウド型で提供されるものと、インストール型のものがあります。</p>\n<p>インストール型の中には、OSSのものもあります。</p>\n<p>OSS の Keycloak は個人的に耳にする機会も多く、さわってみるのもおすすめできます。</p>\n<p>参考</p>\n<ul>\n<li><a href=\"https://cloudnative.co.jp/product/IdP\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">ID統制とIdPの選び方 シングルサインオン（SSO） | 株式会社クラウドネイティブ</a></li>\n<li><a href=\"https://www.osstech.co.jp/case/kyutech\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">九州工業大学：OpenSSO , SAML （simpleSAMLphp）を利用した認証基盤を構築 - Open Source Solution Technology Corporation</a></li>\n</ul>\n<h2 id=\"active-directory-ad-とは？\" style=\"position:relative;\"><a href=\"#active-directory-ad-%E3%81%A8%E3%81%AF%EF%BC%9F\" aria-label=\"active directory ad とは？ permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Active Directory (AD) とは？</h2>\n<p>IdP として Azure Active Directory や (オンプレミス) Active Directory があることが分かりました。</p>\n<p>この「Active Directory」とは何でしょうか？</p>\n<p><a href=\"https://ja.wikipedia.org/wiki/Active_Directory\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Wikipedia</a> によると…</p>\n<blockquote>\n<p>Active Directory (アクティブディレクトリ) とはマイクロソフトによって開発されたオンプレミスにおけるディレクトリ・サービス・システムであり、Windows 2000 Serverから導入された、ユーザとコンピュータリソースを管理するコンポーネント群の総称である。</p>\n</blockquote>\n<p>ということで、「ディレクトリ・サービス・システム」だそうです。</p>\n<p>簡単に言うと、以下の図のように、「ディレクトリサービス」や「SSO の IdP としての機能」などを色々統合して便利に使えるのが Active Directory です。</p>\n<p><img src=\"/media/active-directory.png\"></p>\n<h2 id=\"ディレクトリサービスとは？\" style=\"position:relative;\"><a href=\"#%E3%83%87%E3%82%A3%E3%83%AC%E3%82%AF%E3%83%88%E3%83%AA%E3%82%B5%E3%83%BC%E3%83%93%E3%82%B9%E3%81%A8%E3%81%AF%EF%BC%9F\" aria-label=\"ディレクトリサービスとは？ permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>ディレクトリサービスとは？</h2>\n<p>ここで、「ディレクトリサービス」という用語について少し補足しておきます。</p>\n<p>「ディレクトリサービス」というのは、データベースの一種です。</p>\n<p>RDB とは異なり軽量で、ツリー構造になっており、組織の資源などの管理によく使われます。</p>\n<p>ディレクトリ・サービスにアクセスするためのプロトコルとしては、LDAP が普及しています。</p>\n<p>関連記事</p>\n<ul>\n<li><a href=\"https://www.kanzennirikaisita.com/posts/ldap-conceptual-model\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">LDAP の用語・概念を図で整理</a></li>\n</ul>\n<h2 id=\"active-directory-の種類\" style=\"position:relative;\"><a href=\"#active-directory-%E3%81%AE%E7%A8%AE%E9%A1%9E\" aria-label=\"active directory の種類 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Active Directory の種類</h2>\n<p>最後に、Active Directory の種類についてです。</p>\n<p><img src=\"/media/active-directory-types.png\"></p>\n<p>Active Directory には、</p>\n<ul>\n<li>Azure Active Directory</li>\n<li>(オンプレミス) Active Directory</li>\n</ul>\n<p>の 2 種類があります。</p>\n<p>さらに (オンプレミス) Active Directory には、</p>\n<ul>\n<li>Microsoft Active Directory</li>\n<li>Samba</li>\n</ul>\n<p>という 2 種類の実装があります。</p>\n<p>参考</p>\n<ul>\n<li><a href=\"https://www.sunnycloud.jp/column/20210812-01/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">【徹底解説】AWS Directory Service とは | SunnyCloud</a></li>\n<li><a href=\"https://docs.aws.amazon.com/ja_jp/directoryservice/latest/admin-guide/directory_simple_ad.html\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Simple Active Directory - AWS Directory Service</a></li>\n</ul>","fields":{"slug":"/posts/active-directory-saml-sso-concepts","tagSlugs":["/tag/active-directory/","/tag/saml/","/tag/sso/"],"autoRecommendPosts":["azure-easy-auth-memo","ldap-conceptual-model","what-is-service-class","how-to-study-aws-basics"]},"frontmatter":{"date":"2022-06-01T07:08:53.073Z","description":"「Active Directory で SAML 2.0 による SSO」について、登場する用語を整理してみました。","tags":["active-directory","saml","sso"],"title":"Active Directory での SAML 2.0 による SSO について用語を整理してみた","socialImage":null,"recommendPosts":null}}},"pageContext":{"slug":"/posts/active-directory-saml-sso-concepts"}},"staticQueryHashes":["251939775","3942705351","401334301"]}