{"id":1665,"date":"2006-05-30T17:18:22","date_gmt":"2006-05-30T08:18:22","guid":{"rendered":"http:\/\/www.sssg.org\/blogs\/hiro345\/archives\/1665.html"},"modified":"2006-05-30T17:18:22","modified_gmt":"2006-05-30T08:18:22","slug":"openldap-2","status":"publish","type":"post","link":"https:\/\/www.hiro345.net\/blogs\/hiro345\/archives\/1665.html","title":{"rendered":"OpenLDAP"},"content":{"rendered":"<p>\u3000Fedora Cora 5 \u3078OpenLDAP\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<h4>\u6e96\u5099<\/h4>\n<pre>\r\n # yum install openldap-server openldap-client\r\n # yum install openldap-servers openldap-clients\r\n # rpm -qa | grep openldap\r\n openldap-clients-2.3.19-4\r\n openldap-devel-2.3.19-4\r\n openldap-2.3.19-4\r\n openldap-servers-2.3.19-4\r\n<\/pre>\n<p>\u3000\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306f\u30b3\u30d4\u30fc\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<pre>\r\n # cp \/etc\/ldap.conf \/etc\/ldap.conf.original\r\n # cp -r openldap\/ openldap.original\r\n # ls -dl openldap openldap.original\/\r\n<\/pre>\n<p>\u3000\u30b5\u30fc\u30d0\u8a3c\u660e\u66f8\u306a\u3069\u306e\u3042\u308a\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001Apache HTTPD Server \u3067HTTPS\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u3057\u3066\u3042\u308b\u306a\u3089\u3001\u3059\u3067\u306bSSL\u3092\u4f7f\u3063\u3066\u30b5\u30fc\u30d0\u8a3c\u660e\u66f8\u306a\u3069\u3092\u4f5c\u6210\u3057\u3066\u3044\u308b\u306f\u305a\u3067\u3059\u304b\u3089\u3001\/etc\/httpd\/conf.d\/ssl.conf \u3092\u307f\u3066OpenSSL\u3067\u751f\u6210\u3055\u308c\u305f\u30b5\u30fc\u30d0\u8a3c\u660e\u66f8\u3001\u79d8\u5bc6\u9375\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u78ba\u8a8d\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u3082\u3057\u306a\u3051\u308c\u3070<a href=\"\/\/www.sssg.org\/blogs\/hiro345\/archives\/1668.html\" target=\"_new\">\u3053\u3061\u3089<\/a>\u3092\u53c2\u8003\u306b\u3059\u308b\u306a\u3069\u3057\u3066\u4f5c\u6210\u3092\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre>\r\nSSLCertificateFile \/etc\/pki\/tls\/certs\/localhost.crt\r\nSSLCertificateKeyFile \/etc\/pki\/tls\/private\/localhost.key\r\n<\/pre>\n<p>\u3000ldap\u30b5\u30fc\u30d0\u306e\u8d77\u52d5\u30e6\u30fc\u30b6\u304c\u53c2\u7167\u3067\u304d\u308b\u3088\u3046\u306b\u30b0\u30eb\u30fc\u30d7\u3001\u30e2\u30fc\u30c9\u3092\u5909\u66f4\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<pre>\r\n # chgrp ldap \/etc\/pki\/tls\/private\/localhost.key\r\n # chgrp ldap \/etc\/pki\/tls\/certs\/localhost.crt\r\n # chmod g+r \/etc\/pki\/tls\/certs\/localhost.crt\r\n # chmod g+r \/etc\/pki\/tls\/private\/localhost.key\r\n<\/pre>\n<p>\u3000\u3061\u306a\u307f\u306b\u3001SSLRandomSeed\u3067 \/dev\/random\u3001\/dev\/urandom \u3069\u3061\u3089\u3092\u4f7f\u3046\u304b\u6307\u5b9a\u304c\u3067\u304d\u308b\u3053\u3068\u3092\u521d\u3081\u3066\u77e5\u308a\u307e\u3057\u305f\u3002\/dev\/random\u304c\u8abf\u5b50\u60aa\u3044\u3068\u304d\u306f \/dev\/urandom \u3092\u4f7f\u3046\u3088\u3046\u306b\u6307\u5b9a\u3059\u308b\u3068\u3044\u3044\u3088\u3046\u3067\u3059\u3002<\/p>\n<pre>\r\nSSLRandomSeed startup file:\/dev\/urandom  256\r\n<\/pre>\n<h4>\u8a2d\u5b9a<\/h4>\n<p>\u3000\u8a2d\u5b9a\u306f\u300c \/etc\/openldap\/slapd.conf \u300d\u306b\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u7de8\u96c6\u3057\u307e\u3059\u3002\u306a\u304a\u3001LDAP\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u306f\uff0c\/var\/lib\/ldap\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306b\u683c\u7d0d\u3055\u308c\u307e\u3059\u304b\u3089\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u7834\u68c4\u3057\u305f\u3044\u5834\u5408\u306f\/var\/lib\/ldap\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308b\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3057\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u3001\u5909\u66f4\u5206\u3060\u3051\u793a\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u300cTLSCACertificateFile\u300d\u306b\u306fFedora Core 5\u3067\u3042\u3089\u304b\u3058\u3081\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb \u300c \/etc\/pki\/tls\/certs\/ca-bundle.crt \u300d\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre>\r\n  TLSCACertificateFile \/etc\/pki\/tls\/certs\/ca-bundle.crt\r\n  TLSCertificateFile \/etc\/pki\/tls\/certs\/localhost.crt\r\n  TLSCertificateKeyFile \/etc\/pki\/tls\/private\/localhost.key\r\n\r\n  database        bdb\r\n  suffix          \"dc=localhost,dc=localdomain\"\r\n  rootdn          \"cn=Manager,dc=localhost,dc=localdomain\"\r\n  # slappasswd -h {SSHA} -s changeit\r\n  # rootpw        changeit\r\n  rootpw          {SSHA}Yl8SUby2Ry2qq5\/EbKE847dhqb7ZcNef\r\n<\/pre>\n<p>\u3000TLS\/SSL\u5bfe\u5fdc\u306e\u305f\u3081\u306b\u3001\/etc\/openldap\/ldap.conf \u3082\u6b21\u306e\u3088\u3046\u306b\u7de8\u96c6\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<pre>\r\n HOST 127.0.0.1\r\n BASE dc=localhost,dc=localdomain\r\n #TLS_CACERTDIR \/etc\/openldap\/cacerts\r\n TLS_CACERTDIR \/etc\/pki\/tls\/certs\r\n TLS_CACERT \/etc\/pki\/tls\/certs\/ca-bundle.crt\r\n<\/pre>\n<p>\u3000\u6697\u53f7\u5316\u3055\u308c\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\u7528\u6587\u5b57\u5217\u306fslappasswd\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3063\u3066\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u6b21\u306e\u4f8b\u3067\u306fMD5\u3001SHA\u3001SSHA\u3067changeit\u3068\u3044\u3046\u6587\u5b57\u5217\u306e\u6697\u53f7\u5316\u3092\u3059\u308b\u65b9\u6cd5\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre>\r\n   # slappasswd -h {MD5} -s changeit\r\n   # slappasswd -h {SHA} -s changeit\r\n   # slappasswd -h {SSHA} -s changeit\r\n<\/pre>\n<h4>\u30c7\u30fc\u30bf\u306e\u6295\u5165<\/h4>\n<p>\u3000slapadd\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u30aa\u30d5\u30e9\u30a4\u30f3\u3067\u306e\u30c7\u30fc\u30bf\u8ffd\u52a0\u304c\u3067\u304d\u307e\u3059\u3002\u30c7\u30fc\u30bf\u306f\u6b21\u306e\u901a\u308a\u3067\u3001suffix_entry.ldif\u3078\u4fdd\u5b58\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<pre>\r\n#root\r\ndn: dc=localhost,dc=localdomain\r\ndc: localhost\r\nobjectClass: dcObject\r\nobjectClass: organizationalUnit\r\nou: localhost dot localdomain organization\r\n\r\n# person organizational unit\r\ndn: ou=people,dc=localhost,dc=localdomain\r\nou: people\r\nobjectClass: organizationalUnit\r\n<\/pre>\n<p>\u3000\u8ffd\u52a0\u306f\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067\u884c\u3044\u307e\u3059\u3002\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u8a2d\u5b9a\u3092\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u8b66\u544a\u304c\u3067\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre>\r\n # slapadd -b 'dc=localhost,dc=localdomain' < suffix_entry.ldif\r\n bdb_db_open: Warning - No DB_CONFIG file found in directory \/var\/lib\/ldap: (2)\r\n Expect poor performance for suffix dc=localhost,dc=localdomain.\r\n # chown -R ldap:ldap \/var\/lib\/ldap\/\r\n<\/pre>\n<p>\u3000\u8ffd\u52a0\u3057\u305f\u30c7\u30fc\u30bf\u306e\u78ba\u8a8d\u306f\u4e0b\u8a18\u306e\u901a\u308a\u3067\u3059\u3002\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u8a2d\u5b9a\u3092\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u8b66\u544a\u304c\u3067\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre>\r\n # slapcat -b 'dc=localhost,dc=localdomain'\r\n bdb_db_open: Warning - No DB_CONFIG file found in directory \/var\/lib\/ldap: (2)\r\n Expect poor performance for suffix dc=localhost,dc=localdomain.\r\n dn: dc=localhost,dc=localdomain\r\n dc: localhost\r\n objectClass: dcObject\r\n objectClass: organizationalUnit\r\n ou: localhost dot localdomain organization\r\n structuralObjectClass: organizationalUnit\r\n entryUUID: 9e205cd2-83e6-102a-952b-d718202c6772\r\n creatorsName: cn=Manager,dc=localhost,dc=localdomain\r\n modifiersName: cn=Manager,dc=localhost,dc=localdomain\r\n createTimestamp: 20060530051221Z\r\n modifyTimestamp: 20060530051221Z\r\n entryCSN: 20060530051221Z#000000#00#000000\r\n \r\n dn: ou=people,dc=localhost,dc=localdomain\r\n ou: people\r\n objectClass: organizationalUnit\r\n structuralObjectClass: organizationalUnit\r\n entryUUID: 9e332dc6-83e6-102a-952c-d718202c6772\r\n creatorsName: cn=Manager,dc=localhost,dc=localdomain\r\n modifiersName: cn=Manager,dc=localhost,dc=localdomain\r\n createTimestamp: 20060530051221Z\r\n modifyTimestamp: 20060530051221Z\r\n entryCSN: 20060530051221Z#000001#00#000000\r\n<\/pre>\n<p>\u3000\u6b21\u306b\u30e6\u30fc\u30b6\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002\u3053\u3053\u3067\u306f\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u6697\u53f7\u5316\u3057\u3066\u3044\u307e\u305b\u3093\u304c\u3001\u300cslappasswd -h {SHA} -s changeit\u300d\u306e\u3088\u3046\u306b\u3057\u3066\u6697\u53f7\u5316\u3057\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\u3092userPassword\u3078\u6307\u5b9a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>\r\n# hiro\r\ndn: uid=hiro,ou=people,dc=localhost,dc=localdomain\r\nobjectClass:inetOrgPerson\r\ncn: hiro\r\nsn: yuki\r\nuid: hiro\r\nuserPassword: vf3pai\r\n\r\n# akira\r\ndn: uid=akira,ou=people,dc=localhost,dc=localdomain\r\nobjectClass:inetOrgPerson\r\ncn: akira\r\nsn: yuki\r\nuid: akira\r\nuserPassword: vf4evo\r\n<\/pre>\n<h4>\u30dd\u30fc\u30c8<\/h4>\n<p>\u3000ldap\u95a2\u4fc2\u306e\u30b5\u30fc\u30d3\u30b9\u30dd\u30fc\u30c8\u306f\u4e0b\u8a18\u306e\u901a\u308a\u3067\u3059\u3002lokkit\u306a\u3069\u3067\u5fc5\u8981\u306a\u30dd\u30fc\u30c8\u3092\u958b\u3051\u3066\u304b\u3089\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre>\r\n # cat \/etc\/services | grep ldap\r\n ldap            389\/tcp\r\n ldap            389\/udp\r\n ldaps           636\/tcp                         # LDAP over SSL\r\n ldaps           636\/udp                         # LDAP over SSL\r\n www-ldap-gw     1760\/tcp                        # www-ldap-gw\r\n www-ldap-gw     1760\/udp                        # www-ldap-gw\r\n ldap-admin      3407\/tcp                        # LDAP admin server port\r\n ldap-admin      3407\/udp                        # LDAP admin server port\r\n<\/pre>\n<h4>\u8d77\u52d5\u3068\u505c\u6b62<\/h4>\n<p>OpenLDAP\u306e\u8d77\u52d5\u3068\u505c\u6b62\u306b\u306f \/etc\/rc.d\/init.d\/ldap \u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<pre>\r\n  # \/etc\/rc.d\/init.d\/ldap start\r\n  # \/etc\/rc.d\/init.d\/ldap stop\r\n<\/pre>\n<h4>GUI LDAP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8<\/h4>\n<p>\u3000<a href=\"http:\/\/www-unix.mcs.anl.gov\/~gawor\/ldap\/\">LDAP Browser\/Editor<\/a>\u306a\u3069\u3044\u308d\u3044\u308d\u3068\u3042\u308a\u307e\u3059\u3002\u3053\u3053\u307e\u3067\u306e\u8a2d\u5b9a\u3067\u304d\u3061\u3093\u3068\u52d5\u4f5c\u3057\u3066\u3044\u308b\u304b\u3001LDAP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u4f7f\u3063\u3066\u52d5\u4f5c\u78ba\u8a8d\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u3000\u6b21\u306e\u3088\u3046\u306b\u6307\u5b9a\u3057\u3066Connect\u3059\u308b\u3068\u3001anonymous\u3067\u63a5\u7d9a\u3057\u307e\u3059\u3002<\/p>\n<pre>\r\nHost: 192.168.0.1\r\nBase Dn: dc=localhost,dc=localdomain\r\n<\/pre>\n<p>\u3000\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u3001SSL\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3068ldaps\u3067\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3057\u3001anonymous\u306e\u30c1\u30a7\u30c3\u30af\u3092\u5916\u3059\u3068\u3001\u30e6\u30fc\u30b6\u5358\u4f4d\u3067\u30a2\u30af\u30bb\u30b9\u304c\u3067\u304d\u307e\u3059\u3002User Info\u3078\u306f\u3001\u6b21\u306e\u3088\u3046\u306a\u5024\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u6697\u53f7\u5316\u3055\u308c\u308b\u524d\u306euserPassword\u306e\u5024\u3092\u6307\u5b9a\u3059\u308c\u3070\u3044\u3044\u3067\u3059\u3002<\/p>\n<pre>\r\nUser Dn: uid=hiro,ou=people,dc=localhost,dc=localdomain\r\nPassword: vf3pai\r\n<\/pre>\n<p>\u3000\u7ba1\u7406\u8005\u3068\u3057\u3066\u30a2\u30af\u30bb\u30b9\u3059\u308b\u306b\u306f\u6b21\u306e\u3088\u3046\u306b\u3059\u308c\u3070\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<pre>\r\nUser Dn: cn=Manager,dc=localhost,dc=localdomain\r\nPassword: changeit\r\n<\/pre>\n<p>\u3000<\/p>\n<h4>LDAP\u8a8d\u8a3c<\/h4>\n<p>\u3000\/etc\/httpd\/conf\/httpd.conf \u3067\u8a8d\u8a3c\u306e\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002Apache2.2\u3067\u306fmod_authnz_ldap\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u3044\u307e\u3059\u3002\u8a8d\u8a3c\u6bb5\u968e\u3067\u306fBASIC\u8a8d\u8a3c\u3092\u6307\u5b9a\u3057\u3001\u305d\u306e\u969b\u306bLDAP\u3092\u4f7f\u3046\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u306b\u3001AuthBasicProvider\u3067ldap\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u3001\u5165\u529b\u3055\u308c\u305f\u5024\u3068\u6bd4\u8f03\u3059\u308b\u305f\u3081\u306bLDAP\u304b\u3089\u691c\u7d22\u3059\u308b\u5c5e\u6027\u3092AuthLDAPURL\u3067\u6307\u5b9a\u3057\u307e\u3059\u3002\u3053\u306e\u5834\u5408\u306fuid\u3092\u691c\u7d22\u3057\u3066\u3001\u4e00\u81f4\u3057\u305fuid\u304b\u3089\u5bfe\u5fdc\u3059\u308bdn\u3092\u53d6\u5f97\u3057\u3001\u305d\u306edn\u304c\u6301\u3064userPassword\u5c5e\u6027\u306e\u5024\u3068\u5165\u529b\u3055\u308c\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u5024\u3092\u4f7f\u3063\u3066\u8a8d\u8a3c\u304c\u884c\u308f\u308c\u307e\u3059\u3002\u4eca\u56de\u306e\u627f\u8a8d\u6bb5\u968e\u3067\u306f\u3001\u8a8d\u8a3c\u304c\u884c\u308f\u308c\u305f\u4eba\u306f\u3060\u308c\u3067\u3082\u3053\u306eURI\u3078\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3082\u3088\u3044\u306e\u3067\u3001require vaild-user\u3068\u3057\u3066\u3001AuthLDAPAuthoritative\u3092off\u306b\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u3082\u3063\u3068\u9ad8\u5ea6\u306a\u627f\u8a8d\u3092\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u308b\u306e\u3067\u3001\u305d\u306e\u5834\u5408\u306f\u30de\u30cb\u30e5\u30a2\u30eb\u3092\u53c2\u8003\u306b\u3057\u3066\u8a2d\u5b9a\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre>\r\n&lt;Location \/secret&gt;\r\n    # \u8a8d\u8a3c\r\n    AuthType Basic\r\n    AuthBasicProvider ldap\r\n    AuthName \"Secret\"\r\n    AuthLDAPURL ldap:\/\/localhost\/ou=people,dc=localhost,dc=localdomain?uid\r\n    # \u627f\u8a8d\r\n    require valid-user\r\n    AuthzLDAPAuthoritative off\r\n&lt;\/Location&gt;\r\n<\/pre>\n<p>\u3000\u3061\u306a\u307f\u306bApache2.0\u306e\u5834\u5408\u306f\u6b21\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3059\u308b\u3089\u3057\u3044\u3067\u3059\u3002<\/p>\n<pre>\r\n&lt;Location \/secret&gt;\r\n  AuthType  Basic\r\n  AuthName  \"Secret\"\r\n  AuthLDAPURL  ldap:\/\/localhost\/dc=localhost,dc=localdomain?uid\r\n  require   valid-user\r\n&lt;\/Location&gt;\r\n<\/pre>\n<h4>\u30a2\u30af\u30bb\u30b9\u5236\u5fa1<\/h4>\n<p>\u3000\u30a2\u30af\u30bb\u30b9\u5236\u5fa1\u30ea\u30b9\u30c8\u3092\u6307\u5b9a\u3057\u3066\u3001anonymous\u3067LDAP\u3078\u30a2\u30af\u30bb\u30b9\u3057\u305f\u5834\u5408\u306f\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u898b\u3048\u306a\u3044\u3088\u3046\u306b\u3057\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u8a8d\u8a3c\u6642\u306b\u306fanonymous\u3067\u30a2\u30af\u30bb\u30b9\u3057\u3066\u304f\u308b\u306e\u3067\u3001\u305d\u306e\u5834\u5408\u306b\u306f\u4f7f\u3048\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3092\u3057\u307e\u3059\u3002\u672c\u4eba\u3067\u3042\u308b\u3053\u3068\u304c\u8a8d\u8a3c\u3067\u304d\u305f\u3089\u3001\u8868\u793a\u3057\u3066\u7de8\u96c6\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002\u3082\u3061\u308d\u3093\u7ba1\u7406\u8005\u3082\u7de8\u96c6\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u300c \/etc\/openldap\/slapd.conf \u300d\u3078\u6b21\u3092\u8ffd\u52a0\u3057\u3066LDAP\u3092\u518d\u8d77\u52d5\u3057\u307e\u3057\u3087\u3046\u3002\u3053\u308c\u3067\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u4ed6\u306e\u4eba\u306b\u306f\u898b\u3048\u306a\u304f\u306a\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<pre>\r\naccess to attrs=userPassword\r\n    by self write\r\n    by dn=\"cn=Manager,dc=localhost,dc=localdomain\" write\r\n    by anonymous auth\r\n    by * none\r\n\r\naccess to *\r\n    by dn=\"cn=Manager,dc=localhost,dc=localdomain\" write\r\n    by self write\r\n    by * read\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u3000Fedora Cora 5 \u3078OpenLDAP\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u307e\u3057\u305f\u3002 \u6e96\u5099 # yum install openldap-server openldap-client # yum install openldap &hellip; <a href=\"https:\/\/www.hiro345.net\/blogs\/hiro345\/archives\/1665.html\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-1665","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts\/1665","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/comments?post=1665"}],"version-history":[{"count":0,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts\/1665\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/media?parent=1665"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/categories?post=1665"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/tags?post=1665"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}