{"id":1691,"date":"2023-09-19T11:56:35","date_gmt":"2023-09-19T02:56:35","guid":{"rendered":"http:\/\/biochemistry.isc.chubu.ac.jp\/labo\/suzuki\/?p=1691"},"modified":"2023-09-19T11:56:36","modified_gmt":"2023-09-19T02:56:36","slug":"post-1691","status":"publish","type":"post","link":"http:\/\/biochemistry.isc.chubu.ac.jp\/labo\/suzuki\/archives\/1691","title":{"rendered":"LDAP\u3067\u7814\u7a76\u5ba4\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u7ba1\u7406"},"content":{"rendered":"<p>\u7814\u7a76\u5ba4\u3067\u306f\u4e3b\u306b\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u30fc\u3092\u4f7f\u3063\u3066\u30c7\u30fc\u30bf\u306e\u5171\u6709\u30fb\u7d99\u627f\u3092\u884c\u3063\u3066\u3044\u307e\u3059\u3002\u4eca\u5f8cWiki\u3084redmine\u306a\u3069\u3082\u6d3b\u7528\u3057\u305f\u3044\u3068\u601d\u3044\u3001\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u7ba1\u7406\u304c\u8907\u96d1\u306b\u306a\u308a\u305d\u3046\u306a\u306e\u3067\u3001LDAP\u3092\u5c0e\u5165\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<br \/>\nLDAP\u306f\u69d8\u3005\u306a\u60c5\u5831\u3092\u4fdd\u7ba1\u3059\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u3088\u3046\u306a\u30bd\u30d5\u30c8\u3067\u3059\u304c\u3001\u4e3b\u306b\u30a2\u30ab\u30a6\u30f3\u30c8(\u30e6\u30fc\u30b6\u30fcID\u3084\u30d1\u30b9\u30ef\u30fc\u30c9)\u3092\u4fdd\u7ba1\u3057\u3066\u3001\u69d8\u3005\u306a\u30bd\u30d5\u30c8\u306b\u8a8d\u8a3c\u306e\u4ed5\u7d44\u307f\u3092\u63d0\u4f9b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u4eca\u56de\u306fOpenLDAP\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<h3>OpenLDAP\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>\u5b9f\u6a5f\u306eOS\u306fMIRACLE Linux9.0\u3067\u3059\u3002\u3053\u308c\u306bdocker\u3067OpenLDAP\u306e\u30b3\u30f3\u30c6\u30ca\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\ncompose.yaml\u3092\u7de8\u96c6\u3057\u3066\u3001ldap\u30b5\u30fc\u30d3\u30b9\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002<\/p>\n<h4>compose.yaml\u306e\u4e00\u90e8<\/h4>\n<pre class=\"console\">  ldap:\n    image: osixia\/openldap\n    container_name: ldap\n    restart: always\n    volumes:\n      - .\/ldap\/var\/lib\/ldap:\/var\/lib\/ldap\n      - .\/ldap\/etc\/ldap\/slapd.d:\/etc\/ldap\/slapd.d\n    ports:\n      - 389:389\n    environment:\n      LDAP_ORGANISATION: tsbioinfo\n      LDAP_DOMAIN: tsbio.info\n      LDAP_BASE_DN: \"dc=tsbio,dc=info\"\n      LDAP_ADMIN_PASSWORD: xxxxx\n<\/pre>\n<h4>OpenLDAP\u3092\u8d77\u52d5<\/h4>\n<pre class=\"console\"># docker compose up -d ldap\n<\/pre>\n<h3>\u63a5\u7d9a\u78ba\u8a8d<\/h3>\n<p>\u30b3\u30f3\u30c6\u30ca\u306b\u5165\u3063\u3066ldapsearch\u30b3\u30de\u30f3\u30c9\u3092\u52d5\u304b\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"console\"># docker exec -it ldap bash\n# ldapsearch -x -H ldap:\/\/localhost -b dc=tsbio,dc=info -D \"cn=admin,dc=tsbio,dc=info\" -w xxxxx\n(\u4ee5\u4e0b\u691c\u7d22\u7d50\u679c)\n# \n# extended LDIF\n#\n# LDAPv3\n# base <dc=tsbio,dc=info> with scope subtree\n# filter: (objectclass=*)\n# requesting: ALL\n#\n\n# tsbio.info\ndn: dc=tsbio,dc=info\nobjectClass: top\nobjectClass: dcObject\nobjectClass: organization\no: tsbioinfo\ndc: tsbio\n<\/dc=tsbio,dc=info><\/pre>\n<p>ldapsearch\u30b3\u30de\u30f3\u30c9\u3092\u30db\u30b9\u30c8(MIRACLE LINUX)\u5074\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u304f\u3068\u3001\u3044\u3061\u3044\u3061\u30b3\u30f3\u30c6\u30ca\u306b\u5165\u3089\u306a\u304f\u3066\u3059\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"console\"># dnf install openldap\n# ldapsearch -x -H ldap:\/\/localhost -b dc=tsbio,dc=info -D \"cn=admin,dc=tsbio,dc=info\" -w xxxxx\n(\u4ee5\u4e0b\u7701\u7565)\n<\/pre>\n<h3>\u30c7\u30fc\u30bf\u306e\u767b\u9332<\/h3>\n<p>LDIF\u3068\u3044\u3046\u5f62\u5f0f\u3067\u30c7\u30fc\u30bf\u3092\u7528\u610f\u3057\u3001ldapadd\u30b3\u30de\u30f3\u30c9\u3067\u767b\u9332\u3001\u3001\u3001\u3068\u3044\u3046\u306e\u306f\u9aa8\u304c\u6298\u308c\u308b\u306e\u3067\u3001phpLDAPadmin\u3092\u4f7f\u3044\u307e\u3059\u3002<br \/>\n\u3053\u3061\u3089\u3082docker\u3092\u5229\u7528\u3057\u3001\u30db\u30b9\u30c8\u306eApache\u304b\u3089\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u3067\u63a5\u7d9a\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<h4>compose.yaml\u306e\u4e00\u90e8<\/h4>\n<pre class=\"console\">  ldap-admin:\n    image: osixia\/phpldapadmin\n    restart: always\n    ports:\n      - 10085:80\n    environment:\n      PHPLDAPADMIN_LDAP_HOSTS: ldap\n      PHPLDAPADMIN_HTTPS: false\n<\/pre>\n<h4>phpLDAPadmin\u3092\u8d77\u52d5<\/h4>\n<pre class=\"console\"># docker compose up -d ldap-admin\n<\/pre>\n<h4>\/etc\/httpd\/conf.d\/kiku3.conf\u306e\u4e00\u90e8<\/h4>\n<pre class=\"console\">&lt;Virtualhost *:443&gt;\n    &lt;Location \/ldap\/&gt;\n        Require ip 157.110.xx.yy  # IP\u30a2\u30c9\u30ec\u30b9\u306b\u3088\u308b\u30a2\u30af\u30bb\u30b9\u5236\u9650\n        ProxyPass http:\/\/localhost:10085\/\n        ProxyPassReverse http:\/\/localhost:10085\/\n    &lt;\/Location&gt;\n&lt;\/Virtualhost&gt;<\/pre>\n<h4>apache\u3092\u518d\u8d77\u52d5<\/h4>\n<pre class=\"console\"># systemctl restart httpd\n<\/pre>\n<h4>\u52d5\u4f5c\u78ba\u8a8d<\/h4>\n<p>https:\/\/kiku3.tsbio.info\/ldap\/ \u3092\u30d6\u30e9\u30a6\u30b6\u30fc\u3067\u958b\u304f\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u308b\u3002<br \/>\n<img decoding=\"async\" src=\"\/labo\/suzuki\/wp-content\/uploads\/2023\/09\/phpldapadmin1.png\"><br \/>\n\u5de6\u306elogin\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u306b\u9032\u3080\u3002<br \/>\nLogin DN\u3068\u3057\u3066cn=admin, dc=tsbio, dc=info \u3001Password\u3068\u3057\u3066compose.yaml\u306b\u8a2d\u5b9a\u3057\u305f\u3082\u306e\u3092\u5165\u529b\u3057\u3066Authenticate\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3002<br \/>\n<img decoding=\"async\" src=\"\/labo\/suzuki\/wp-content\/uploads\/2023\/09\/phpldapadmin2.png\"><\/p>\n<h3>\u30e1\u30f3\u30d0\u30fc\u767b\u9332<\/h3>\n<h4>ou=Labo\u306e\u767b\u9332<\/h4>\n<ol>\n<li>\u753b\u9762\u5de6\u306e\u30c4\u30ea\u30fc\u3067\u3001dc=tsbio,dc=info\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3002<\/li>\n<li>Create new entry here \u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3002<\/li>\n<li>\u53f3\u306eTemplates\u4e2d\u306e Generic: Organisational Unit\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3002<\/li>\n<li>Labo\u3068\u5165\u529b\u3057\u3001Create Object\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3002<\/li>\n<\/ol>\n<p><img decoding=\"async\" src=\"\/labo\/suzuki\/wp-content\/uploads\/2023\/09\/phpldapadmin3.png\"><\/p>\n<h4>inetOrgPerson\u306e\u767b\u9332<\/h4>\n<p>ol=Labo\u3092\u8ffd\u52a0\u3057\u305f\u306e\u3068\u540c\u3058\u3088\u3046\u306b\u3001ou=Labo\u306e\u4e0b\u306bCourier Mail Account\u3092\u4f5c\u6210\u3059\u308b\u3002<br \/>\n\u4eca\u306e\u3068\u3053\u308d\u30b5\u30fc\u30d0\u30fc\u3078\u306e\u30ed\u30b0\u30a4\u30f3\u3068\u304bsamba\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u4f5c\u6210\u3092\u8003\u3048\u3066\u304a\u3089\u305a\u3001\u30a6\u30a7\u30d6\u30b5\u30fc\u30d3\u30b9\u306e\u8a8d\u8a3c\u306b\u4f7f\u3046\u3060\u3051\u306a\u306e\u3067\u3001\u3053\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u5341\u5206\u3068\u601d\u3046\u3002<br \/>\n<img decoding=\"async\" src=\"\/labo\/suzuki\/wp-content\/uploads\/2023\/09\/phpldapadmin4.png\"><\/p>\n<h3>\u30e6\u30fc\u30b6\u30fc\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u66f4\u65b0<\/h3>\n<p>phpLDAPadmin\u3092\u4f7f\u3046\u3053\u3068\u3092\u8003\u3048\u305f\u6700\u5927\u306e\u7406\u7531\u306f\u30e6\u30fc\u30b6\u30fc\u306b\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u66f4\u65b0\u3055\u305b\u308b\u65b9\u6cd5\u306e\u63d0\u4f9b\u3067\u3057\u305f\u3002<br \/>\n\u304c\u3001\u30ed\u30b0\u30a4\u30f3\u306bDN (uid=xxxx,ou=Labo,cn=tsbio,cn=info)\u3092\u5165\u529b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u3001\u305d\u308c\u3092\u8aac\u660e\u3059\u308b\u30fb\u7406\u89e3\u3055\u305b\u308b\u306e\u304c\u9762\u5012\u306b\u306a\u308a\u3001\u81ea\u524d\u3067\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002\u305d\u306e\u985b\u672b\u306f\u3044\u305a\u308c\u3053\u3053\u306b\u8ffd\u8a18\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7814\u7a76\u5ba4\u3067\u306f\u4e3b\u306b\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u30fc\u3092\u4f7f\u3063\u3066\u30c7\u30fc\u30bf\u306e\u5171\u6709\u30fb\u7d99\u627f\u3092\u884c\u3063\u3066\u3044\u307e\u3059\u3002\u4eca\u5f8cWiki\u3084redmine\u306a\u3069\u3082\u6d3b\u7528\u3057\u305f\u3044\u3068\u601d\u3044\u3001\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u7ba1\u7406\u304c\u8907\u96d1\u306b\u306a\u308a\u305d\u3046\u306a\u306e\u3067\u3001LDAP\u3092\u5c0e\u5165\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002 LDAP\u306f\u69d8\u3005\u306a\u60c5\u5831 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"_links":{"self":[{"href":"http:\/\/biochemistry.isc.chubu.ac.jp\/labo\/suzuki\/wp-json\/wp\/v2\/posts\/1691"}],"collection":[{"href":"http:\/\/biochemistry.isc.chubu.ac.jp\/labo\/suzuki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/biochemistry.isc.chubu.ac.jp\/labo\/suzuki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/biochemistry.isc.chubu.ac.jp\/labo\/suzuki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/biochemistry.isc.chubu.ac.jp\/labo\/suzuki\/wp-json\/wp\/v2\/comments?post=1691"}],"version-history":[{"count":20,"href":"http:\/\/biochemistry.isc.chubu.ac.jp\/labo\/suzuki\/wp-json\/wp\/v2\/posts\/1691\/revisions"}],"predecessor-version":[{"id":2149,"href":"http:\/\/biochemistry.isc.chubu.ac.jp\/labo\/suzuki\/wp-json\/wp\/v2\/posts\/1691\/revisions\/2149"}],"wp:attachment":[{"href":"http:\/\/biochemistry.isc.chubu.ac.jp\/labo\/suzuki\/wp-json\/wp\/v2\/media?parent=1691"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/biochemistry.isc.chubu.ac.jp\/labo\/suzuki\/wp-json\/wp\/v2\/categories?post=1691"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/biochemistry.isc.chubu.ac.jp\/labo\/suzuki\/wp-json\/wp\/v2\/tags?post=1691"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}