{"id":1801,"date":"2010-12-12T21:03:31","date_gmt":"2010-12-12T12:03:31","guid":{"rendered":"http:\/\/oichinote.com\/plus\/2010\/12\/12\/ubuntu-10-04%e3%81%a7%e3%80%81ldap%e3%81%a7%e3%83%ad%e3%82%b0%e3%82%a4%e3%83%b3%e3%81%a7%e3%81%8d%e3%82%8b%e3%82%88%e3%81%86%e3%81%ab%e3%81%99%e3%82%8b%e8%bf%bd%e8%a8%98%e3%81%82%e3%82%8a\/"},"modified":"2017-10-12T23:30:43","modified_gmt":"2017-10-12T14:30:43","slug":"ubuntu-1004ldap","status":"publish","type":"post","link":"https:\/\/oichinote.com\/plus\/2010\/12\/ubuntu-1004ldap.html","title":{"rendered":"Ubuntu 10.04\u3067\u3001LDAP\u3067\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b[\u8ffd\u8a18\u3042\u308a]"},"content":{"rendered":"<p>\u6700\u521d\u306b\u3001\u91cd\u5927\u306a\u304a\u77e5\u3089\u305b\u304c\u3042\u308a\u307e\u3059\u3002\u79c1\u306f\u3001LDAP\u306b\u3064\u3044\u3066\u3001\u304d\u3061\u3093\u3068\u7406\u89e3\u3057\u3066\u3044\u307e\u305b\u3093\u3002\u3068\u308a\u3042\u3048\u305a\u3001Ubuntu 10.04\u3067\u3001LDAP\u3067\u4f5c\u3063\u305f\u30e6\u30fc\u30b6\u304c\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u305f\u3060\u3051\u3067\u3059\u3002\u306a\u306e\u3067\u3001\u9593\u9055\u3063\u3066\u3044\u308b\u4e8b\u3092\u66f8\u3044\u3066\u3044\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u305d\u306e\u5834\u5408\u306f\u3001\u304a\u77e5\u3089\u305b\u4e0b\u3055\u3044\u3002<\/p>\n<p>LDAP\u306f\u3001\u30a8\u30eb\u30c0\u30c3\u30d7\u3068\u8aad\u307f\u307e\u3059\u3002<\/p>\n<p>Ubuntu 10.04\u3078\u306eLDAP\u306e\u8a2d\u5b9a\u306f\u3001\u6b21\u306e\u30da\u30fc\u30b8\u3092\u53c2\u7167\u3057\u307e\u3057\u305f\u3002\u307b\u3068\u3093\u3069\u306e\u4e8b\u304c\u3001\u3053\u3053\u306b\u66f8\u3044\u3066\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u3002Thank you very much.<\/p>\n<ul>\n<li><a href=\"https:\/\/help.ubuntu.com\/10.04\/serverguide\/C\/openldap-server.html\" target=\"_blank\">OpenLDAP Server<\/a> (\u516c\u5f0f\u30ac\u30a4\u30c9)<\/li>\n<\/ul>\n<p>\u3053\u306e\u30da\u30fc\u30b8\u306e\u5b58\u5728\u306f\u3001\u6b21\u306e\u8a18\u4e8b\u3067\u77e5\u308a\u307e\u3057\u305f\u3002\u3054\u7d39\u4ecb\u3001\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li><a href=\"http:\/\/hadacchi.com\/wp_blog\/?p=452\" target=\"_blank\">hadacchi blog\u00a0 \u00bb ubuntu 10.04 (8.10\u4ee5\u964d) \u3078 slapd (OpenLDAP) \u3092\u5165\u308c\u3066\u4f7f\u3048\u308b\u3088\u3046\u306b\u3059\u308b\uff0e\u305d\u306e\uff11<\/a><\/li>\n<\/ul>\n<p>\u4e00\u756a\u5148\u306b\u3001LDAP\u306b\u95a2\u3057\u3066\u898b\u3064\u3051\u305f\u306e\u306f\u3001\u6b21\u306e\u8a18\u4e8b\u3060\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u3061\u3087\u3063\u3068\u96e3\u3057\u304b\u3063\u305f\u3067\u3059\u3002\u307e\u3068\u3081\u3066\u3044\u305f\u3060\u3044\u3066\u3001\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li><a href=\"http:\/\/www.server-world.info\/query?os=Ubuntu_10.04&amp;p=ldap\" target=\"_blank\">Ubuntu 10.04 LTS &#8211; LDAP\u30b5\u30fc\u30d0\u30fc &#8211; LDAP\u30b5\u30fc\u30d0\u30fc\u69cb\u7bc9 \uff1a Server World<\/a><\/li>\n<\/ul>\n<p>\u305d\u308c\u3067\u306f\u3001&#8221;<a href=\"https:\/\/help.ubuntu.com\/10.04\/serverguide\/C\/openldap-server.html\" target=\"_blank\">OpenLDAP Server<\/a>&#8220;\u306b\u3057\u305f\u304c\u3063\u3066\u3001\u8a2d\u5b9a\u3092\u3057\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306e\u3088\u3046\u306a\u624b\u9806\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<ol>\n<li>\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/li>\n<li>LDAP\u306e\u57fa\u672c\u8a2d\u5b9a<\/li>\n<li>LDAP\u8a8d\u8a3c\u306e\u8a2d\u5b9a<\/li>\n<\/ol>\n<p>\u5de5\u7a0b1\u3067\u3059\u3002\u307e\u305a\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u3059\u3002<\/p>\n<pre>$ sudo apt-get install slapd ldap-utils<\/pre>\n<p>\u5de5\u7a0b2\u3067\u3059\u3002\u6b21\u306b\u3001LDAP\u306e\u57fa\u672c\u8a2d\u5b9a\u3067\u3059\u3002<\/p>\n<p>\u610f\u5473\u304c\u308f\u304b\u3089\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u3001\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre>sudo ldapadd -Y EXTERNAL -H ldapi:\/\/\/ -f \/etc\/ldap\/schema\/cosine.ldif\r\nsudo ldapadd -Y EXTERNAL -H ldapi:\/\/\/ -f \/etc\/ldap\/schema\/nis.ldif\r\nsudo ldapadd -Y EXTERNAL -H ldapi:\/\/\/ -f \/etc\/ldap\/schema\/inetorgperson.ldif<\/pre>\n<p>\u305d\u306e\u6b21\u306b\u3001&#8221;backend.example.com.ldif&#8221;\u3068\u8a00\u3046\u30d5\u30a1\u30a4\u30eb\u540d\u3067\u3001\u6b21\u306e\u5185\u5bb9\u3092\u4f5c\u308a\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u306e\u5834\u6240\u306f\u3001\u3069\u3053\u3067\u3082\u826f\u3044\u3067\u3059\u3002&#8221;olcRootPW&#8221;\u306b\u66f8\u304f&#8221;secret&#8221;\u306f\u3001LDAP\u30b7\u30b9\u30c6\u30e0\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u306b\u306a\u308a\u307e\u3059\u3002\u5909\u3048\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre># Load dynamic backend modules\r\ndn: cn=module,cn=config\r\nobjectClass: olcModuleList\r\ncn: module\r\nolcModulepath: \/usr\/lib\/ldap\r\nolcModuleload: back_hdb\r\n# Database settings\r\ndn: olcDatabase=hdb,cn=config\r\nobjectClass: olcDatabaseConfig\r\nobjectClass: olcHdbConfig\r\nolcDatabase: {1}hdb\r\nolcSuffix: dc=example,dc=com\r\nolcDbDirectory: \/var\/lib\/ldap\r\nolcRootDN: cn=admin,dc=example,dc=com\r\nolcRootPW: <span style=\"color: #ff0000;\">secret<\/span>\r\nolcDbConfig: set_cachesize 0 2097152 0\r\nolcDbConfig: set_lk_max_objects 1500\r\nolcDbConfig: set_lk_max_locks 1500\r\nolcDbConfig: set_lk_max_lockers 1500\r\nolcDbIndex: objectClass eq\r\nolcLastMod: TRUE\r\nolcDbCheckpoint: 512 30\r\nolcAccess: to attrs=userPassword by dn=\"cn=admin,dc=example,dc=com\" write by anonymous auth by self write by * none\r\nolcAccess: to attrs=shadowLastChange by self write by * read\r\nolcAccess: to dn.base=\"\" by * read\r\nolcAccess: to * by dn=\"cn=admin,dc=example,dc=com\" write by * read<\/pre>\n<p>\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3001\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002<\/p>\n<pre>sudo ldapadd -Y EXTERNAL -H ldapi:\/\/\/ -f backend.example.com.ldif<\/pre>\n<p>\u305d\u308c\u304c\u7d42\u308f\u3063\u305f\u3089\u3001\u6b21\u306e\u30d5\u30a1\u30a4\u30eb\u3092&#8221;frontend.example.com.ldif&#8221;\u3068\u8a00\u3046\u540d\u524d\u3067\u4f5c\u308a\u307e\u3059\u3002\u3053\u308c\u3082\u3001\u3069\u3053\u306b\u7f6e\u3044\u3066\u3082\u826f\u3044\u3067\u3059\u3002\u30d1\u30b9\u30ef\u30fc\u30c9\u3084UID\u306b\u6c17\u3092\u3064\u3051\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<pre># Create top-level object in domain\r\ndn: dc=example,dc=com\r\nobjectClass: top\r\nobjectClass: dcObject\r\nobjectclass: organization\r\no: Example Organization\r\ndc: Example\r\ndescription: LDAP Example\r\n# Admin user.\r\ndn: cn=admin,dc=example,dc=com\r\nobjectClass: simpleSecurityObject\r\nobjectClass: organizationalRole\r\ncn: admin\r\ndescription: LDAP administrator\r\nuserPassword: secret\r\ndn: ou=people,dc=example,dc=com\r\nobjectClass: organizationalUnit\r\nou: people\r\ndn: ou=groups,dc=example,dc=com\r\nobjectClass: organizationalUnit\r\nou: groups\r\ndn: uid=john,ou=people,dc=example,dc=com\r\nobjectClass: inetOrgPerson\r\nobjectClass: posixAccount\r\nobjectClass: shadowAccount\r\nuid: john\r\nsn: Doe\r\ngivenName: John\r\ncn: John Doe\r\ndisplayName: John Doe\r\nuidNumber: <span style=\"color: #ff0000;\">2000<\/span>\r\ngidNumber: 10000\r\nuserPassword: <span style=\"color: #ff0000;\">password<\/span>\r\ngecos: John Doe\r\nloginShell: \/bin\/bash\r\nhomeDirectory: \/home\/john\r\nshadowExpire: -1\r\nshadowFlag: 0\r\nshadowWarning: 7\r\nshadowMin: 8\r\nshadowMax: 999999\r\nshadowLastChange: 10877\r\ntitle: System Administrator\r\npostalAddress:\r\ninitials: JD\r\ndn: cn=example,ou=groups,dc=example,dc=com\r\nobjectClass: posixGroup\r\ncn: example\r\ngidNumber: 10000<\/pre>\n<p>\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u308a\u7d42\u308f\u3063\u305f\u3089\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u3001\u5148\u307b\u3069\u6307\u5b9a\u3057\u305fLDAP\u30b7\u30b9\u30c6\u30e0\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u3059\u3002<\/p>\n<pre>$ sudo ldapadd -x -D cn=admin,dc=example,dc=com -W -f frontend.example.com.ldif\r\nEnter LDAP Password:\r\nadding new entry \"dc=example,dc=com\"\r\nadding new entry \"cn=admin,dc=example,dc=com\"\r\nadding new entry \"ou=people,dc=example,dc=com\"\r\nadding new entry \"ou=groups,dc=example,dc=com\"\r\nadding new entry \"uid=john,ou=people,dc=example,dc=com\"\r\nadding new entry \"cn=example,ou=groups,dc=example,dc=com\"<\/pre>\n<p>ldapsearch\u30b3\u30de\u30f3\u30c9\u3067\u3001\u6b63\u3057\u304f\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u304b\u3001\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre>$ ldapsearch -xLLL -b \"dc=example,dc=com\" uid=john sn givenName cndn: uid=john,ou=people,dc=example,dc=com\r\nsn: Doe\r\ngivenName: John\r\ncn: John Doe<\/pre>\n<p>\u5de5\u7a0b3\u306b\u79fb\u308a\u307e\u3059\u3002\u8a8d\u8a3c\u306e\u8a2d\u5b9a\u3067\u3059\u3002\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre>$ sudo apt-get install libnss-ldap<\/pre>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u9014\u4e2d\u3067\u3001\u8a2d\u5b9a\u5909\u66f4\u753b\u9762\u306b\u5909\u308f\u308a\u307e\u3059\u3002<\/p>\n<p>\u3044\u308d\u3044\u308d\u805e\u304b\u308c\u308b\u306e\u3067\u3001&#8221;example&#8221;, &#8220;com&#8221;\u306b\u5909\u66f4\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>\u30ad\u30e3\u30d7\u30c1\u30e3\u3057\u305f\u3082\u306e\u3092\u8cbc\u308a\u4ed8\u3051\u3066\u304a\u304d\u307e\u3059\u3002\u30af\u30ea\u30c3\u30af\u3067\u62e1\u5927\u3057\u307e\u3059\u3002\u5168\u90e8\u30679\u30b9\u30c6\u30c3\u30d7\u3042\u308b\u306e\u3067\u3059\u304c\u3001\u6700\u521d\u306e1\u30b9\u30c6\u30c3\u30d7\u76ee\u3092\u30ad\u30e3\u30d7\u30c1\u30e3\u3057\u640d\u306a\u3044\u307e\u3057\u305f\u3002<\/p>\n<p><a class=\"mb\" href=\"https:\/\/oichinote.com\/plus\/files\/img\/ldapnss2_2.png\" rel=\"prettyPhoto[LDAP]\" rel=\"_RAclick\" title=\"DN\u306e\u8a2d\u5b9a\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/oichinote.com\/plus\/files\/img\/ldapnss2_2-480x182.png\" border=\"0\" alt=\"libnss-ldap 2\" width=\"480\" height=\"182\" \/><\/a><\/p>\n<p><a class=\"mb\" href=\"https:\/\/oichinote.com\/plus\/files\/img\/ldapnss3_3.png\" rel=\"prettyPhoto[LDAP]\" rel=\"_RAclick\" title=\"LDAP\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u8a2d\u5b9a\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/oichinote.com\/plus\/files\/img\/ldapnss3_3-480x178.png\" border=\"0\" alt=\"libnss-ldap 3\" width=\"480\" height=\"178\" \/><\/a><\/p>\n<p><a class=\"mb\" href=\"https:\/\/oichinote.com\/plus\/files\/img\/ldapnss4.png\" rel=\"prettyPhoto[LDAP]\" rel=\"_RAclick\" title=\"\u30ed\u30fc\u30ab\u30eb\u30c7\u30fc\u30bf\u30d9\u30b9\u7ba1\u7406\u8005\u3092\u4f5c\u308b\u304b?\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/oichinote.com\/plus\/files\/img\/ldapnss4-480x216.png\" border=\"0\" alt=\"libnss-ldap 4\" width=\"480\" height=\"216\" \/><\/a><\/p>\n<p><a class=\"mb\" href=\"https:\/\/oichinote.com\/plus\/files\/img\/ldapnss5.png\" rel=\"prettyPhoto[LDAP]\" rel=\"_RAclick\" title=\"LDAP\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u30ed\u30b0\u30a4\u30f3\u304c\u5fc5\u8981\u304b?\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/oichinote.com\/plus\/files\/img\/ldapnss5-480x188.png\" border=\"0\" alt=\"libnss-ldap 5\" width=\"480\" height=\"188\" \/><\/a><\/p>\n<p><a class=\"mb\" href=\"https:\/\/oichinote.com\/plus\/files\/img\/ldapnss6.png\" rel=\"prettyPhoto[LDAP]\" rel=\"_RAclick\" title=\"LDAP\u306eroot\u30a2\u30ab\u30a6\u30f3\u30c8\u8a2d\u5b9a\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/oichinote.com\/plus\/files\/img\/ldapnss6-480x240.png\" border=\"0\" alt=\"libnss-ldap 6\" width=\"480\" height=\"240\" \/><\/a><\/p>\n<p><a class=\"mb\" href=\"https:\/\/oichinote.com\/plus\/files\/img\/ldapnss7.png\" rel=\"prettyPhoto[LDAP]\" rel=\"_RAclick\" title=\"LDAP\u306eroot\u30d1\u30b9\u30ef\u30fc\u30c9\u8a2d\u5b9a\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/oichinote.com\/plus\/files\/img\/ldapnss7-480x216.png\" border=\"0\" alt=\"libnss-ldap 7\" width=\"480\" height=\"216\" \/><\/a><\/p>\n<p><a class=\"mb\" href=\"https:\/\/oichinote.com\/plus\/files\/img\/ldapnss8.png\" rel=\"prettyPhoto[LDAP]\" rel=\"_RAclick\" title=\"\u7279\u6a29\u306e\u306a\u3044\u30e6\u30fc\u30b6\u30a2\u30ab\u30a6\u30f3\u30c8\u8a2d\u5b9a\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/oichinote.com\/plus\/files\/img\/ldapnss8-480x204.png\" border=\"0\" alt=\"libnss-ldap 8\" width=\"480\" height=\"204\" \/><\/a><\/p>\n<p><a class=\"mb\" href=\"https:\/\/oichinote.com\/plus\/files\/img\/ldapnss9.png\" rel=\"prettyPhoto[LDAP]\" rel=\"_RAclick\" title=\"\u7279\u6a29\u306e\u306a\u3044\u30e6\u30fc\u30b6\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u8a2d\u5b9a\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/oichinote.com\/plus\/files\/img\/ldapnss9-480x154.png\" border=\"0\" alt=\"libnss-ldap 9\" width=\"480\" height=\"154\" \/><\/a><\/p>\n<p>\u3082\u3057\u3001\u5931\u6557\u3057\u305f\u3089\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3084\u308a\u76f4\u305b\u307e\u3059\u3002<\/p>\n<pre>$ sudo dpkg-reconfigure ldap-auth-config<\/pre>\n<p>\u6700\u5f8c\u306b\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u8a8d\u8a3c\u65b9\u5f0f\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<pre>$ sudo pam-auth-update<\/pre>\n<p><a class=\"mb\" href=\"https:\/\/oichinote.com\/plus\/files\/img\/ldappam.png\" rel=\"prettyPhoto\" rel=\"_RAclick\" title=\"\u6709\u52b9\u5316\u3059\u308bPAM\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/oichinote.com\/plus\/files\/img\/ldappam-480x266.png\" border=\"0\" alt=\"LDAP PAM\" width=\"480\" height=\"266\" \/><\/a><\/p>\n<p>\u3053\u308c\u3089\u304c\u7d42\u308f\u3063\u305f\u3089\u3001\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u308a\u307e\u3059\u3002<\/p>\n<pre>$ cd \/home\r\n$ sudo mkdir john\r\n$ sudo chown john.example john<\/pre>\n<p>\u3053\u308c\u3067\u3001LDAP\u306eID&#8221;john&#8221;\u3067\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<p>\u3068\u3053\u308d\u304c\u3001john\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5909\u66f4\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3001\u6b21\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u3059\u3002<\/p>\n<pre>john@lucid:~$ passwd\r\nEnter login(LDAP) password:\r\n\u30d1\u30b9\u30ef\u30fc\u30c9: \u8a8d\u8a3c\u60c5\u5831\u3092\u56de\u5fa9\u3067\u304d\u307e\u305b\u3093\r\npasswd: \u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u5909\u66f4\u3055\u308c\u307e\u305b\u3093\u3067\u3057\u305f\r\njohn@lucid:~$ unset LANG\r\njohn@lucid:~$ passwd\r\nEnter login(LDAP) password:\r\npasswd: Authentication information cannot be recovered\r\npasswd: password unchanged<\/pre>\n<p>\/etc\/pam.d\/common-password\u3092\u66f8\u304d\u63db\u3048\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre>authtok try_first_pass<\/pre>\n<p>\u3068\u306a\u3063\u3066\u3044\u308b\u306e\u3092\u3001authtok\u3092\u6d88\u3057\u307e\u3059\u3002<\/p>\n<pre>try_first_pass<\/pre>\n<p>\u624b\u9806\u306f\u3001\u6b21\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<pre>$ sudo service slapd stop\r\n$ sudo vi \/etc\/pam.d\/common-password\r\n$ sudo service slapd start<\/pre>\n<p>\u6b21\u306e\u60c5\u5831\u3092\u53c2\u8003\u306b\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3057\u305f\u3002Thank you.<\/p>\n<ul>\n<li><a href=\"https:\/\/bugs.launchpad.net\/ubuntu\/+source\/libpam-ldap\/+bug\/329067\" target=\"_blank\">Bug #329067 in libpam-ldap (Ubuntu): \u201cCannot change password on ldap client unless libpam-cracklib also installed\u201d<\/a><\/li>\n<\/ul>\n<p>(\u8ffd\u8a18 2010-12-14 01:18)<\/p>\n<p>\u691c\u7d22\u3057\u3066\u3044\u305f\u3089\u3001\u6b21\u306e\u8a18\u4e8b\u3092\u898b\u3064\u3051\u307e\u3057\u305f\u3002<\/p>\n<ul>\n<li><a href=\"http:\/\/www.dollpaper.com\/info\/464.html\" target=\"_blank\">Ubuntu10.04\u3067OpenLDAP | \u30b5\u30e9\u30c8\u30acIT\u65e5\u8a18<\/a> (\u516c\u5f0f\u30ac\u30a4\u30c9\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u69cb\u9020\u304c\u3001\u308f\u304b\u308a\u3084\u3059\u304f\u8aac\u660e\u3055\u308c\u3066\u3044\u307e\u3059)<\/li>\n<li><a href=\"http:\/\/d.hatena.ne.jp\/zenmaikiko\/20101024\/1287936957\" target=\"_blank\">OpenLDAP\u69cb\u7bc9@Ubuntu10.10 &#8211; \u60c5\u5831\u7cfb\u5b66\u751f\u306e\u30e1\u30e2<\/a> (\u516c\u5f0f\u30ac\u30a4\u30c9\u306e\u7c21\u5358\u306a\u8aac\u660e\u306e\u4ed6\u3001LDAP\u306e\u30b3\u30de\u30f3\u30c9\u304c\u8aac\u660e\u3055\u308c\u3066\u3044\u307e\u3059)<\/li>\n<\/ul>\n[amazonjs asin=\"B01LZURAPK\" locale=\"JP\"]\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u521d\u306b\u3001\u91cd\u5927\u306a\u304a\u77e5\u3089\u305b\u304c\u3042\u308a\u307e\u3059\u3002\u79c1\u306f\u3001LDAP\u306b\u3064\u3044\u3066\u3001\u304d\u3061\u3093\u3068\u7406\u89e3\u3057\u3066\u3044\u307e\u305b\u3093\u3002\u3068\u308a\u3042\u3048\u305a\u3001Ubuntu 10.04\u3067\u3001LDAP\u3067\u4f5c\u3063\u305f\u30e6\u30fc\u30b6\u304c\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u305f\u3060\u3051\u3067\u3059\u3002\u306a\u306e\u3067\u3001\u9593\u9055\u3063\u3066\u3044\u308b\u4e8b\u3092\u66f8\u3044\u3066\u3044\u308b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":21699,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"\u65b0\u3057\u3044\u8a18\u4e8b\u300eUbuntu 10.04\u3067\u3001LDAP\u3067\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b[\u8ffd\u8a18\u3042\u308a]\u300f\u3092\u6295\u7a3f\u3057\u307e\u3057\u305f\u3002\u8aad\u3093\u3067\u3044\u305f\u3060\u3051\u308b\u3068\u5b09\u3057\u3044\u3067\u3059\u3002","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[5],"tags":[],"class_list":["post-1801","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-computer"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/oichinote.com\/plus\/files\/2017\/09\/ldapnss2_2-480x182.png","jetpack-related-posts":[{"id":1803,"url":"https:\/\/oichinote.com\/plus\/2010\/12\/ubuntu-1004ne-1-2.html","url_meta":{"origin":1801,"position":0},"title":"Ubuntu 10.04\u306bnetatalk 2.2alpha4\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb(ACL\u5bfe\u5fdc\u3067\u30b3\u30f3\u30d1\u30a4\u30eb)","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2010\u5e7412\u670814\u65e5","format":false,"excerpt":"netatalk 2.2\u3067\u306f\u3001LDAP\u904b\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306fACL\u304c\u52d5\u4f5c\u3059\u308b\u3068\u306e\u4e8b\u306a\u306e\u3067\u3001ACL\u5bfe\u5fdc\u3092\u8a66\u2026","rel":"","context":"netatalk","block_context":{"text":"netatalk","link":"https:\/\/oichinote.com\/plus\/category\/netatalk"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1850,"url":"https:\/\/oichinote.com\/plus\/2011\/01\/ubuntu-1004neta.html","url_meta":{"origin":1801,"position":1},"title":"Ubuntu 10.04\u306bnetatalk 2.2beta1\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb[\u8ffd\u8a18\u30fb\u8a02\u6b63\u3042\u308a]","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2011\u5e741\u670830\u65e5","format":false,"excerpt":"netatalk 2.2beta1\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f\u3002\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u307e\u3057\u305f\u3002\u4e00\u5fdc\u3001ACL\u5bfe\u5fdc\u3067\u2026","rel":"","context":"netatalk","block_context":{"text":"netatalk","link":"https:\/\/oichinote.com\/plus\/category\/netatalk"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1894,"url":"https:\/\/oichinote.com\/plus\/2011\/03\/ubuntu-1004ne-1.html","url_meta":{"origin":1801,"position":2},"title":"Ubuntu 10.04\u306bnetatalk 2.2beta3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2011\u5e743\u670813\u65e5","format":false,"excerpt":"\u88ab\u707d\u3055\u308c\u305f\u5730\u57df\u306e\u65b9\u306b\u306f\u3001\u7533\u3057\u8a33\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u666e\u6bb5\u901a\u308a\u306bMac\u304c\u4f7f\u3048\u3066\u3044\u307e\u3059\u3002\u305f\u3060\u3001\u96fb\u529b\u4f9b\u7d66\u304c\u5fc3\u914d\u306a\u306e\u2026","rel":"","context":"netatalk","block_context":{"text":"netatalk","link":"https:\/\/oichinote.com\/plus\/category\/netatalk"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1921,"url":"https:\/\/oichinote.com\/plus\/2011\/04\/ubuntu-1004neta.html","url_meta":{"origin":1801,"position":3},"title":"Ubuntu 10.04\u306bnetatalk 2.2beta4\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2011\u5e744\u67089\u65e5","format":false,"excerpt":"netatalk 2.2beta4\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f\u306e\u3067\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002 \u72b6\u6cc1\u306f\u3001beta\u2026","rel":"","context":"netatalk","block_context":{"text":"netatalk","link":"https:\/\/oichinote.com\/plus\/category\/netatalk"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1884,"url":"https:\/\/oichinote.com\/plus\/2011\/03\/ubuntu-1004neta.html","url_meta":{"origin":1801,"position":4},"title":"Ubuntu 10.04\u306bnetatalk 2.2beta2\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2011\u5e743\u67085\u65e5","format":false,"excerpt":"netatalk 2.2beta2\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305f\u3068\u3001HAT\u3055\u3093\u304b\u3089\u30b3\u30e1\u30f3\u30c8\u3092\u3044\u305f\u3060\u304d\u307e\u3057\u305f\u306e\u3067\u3001\u30a4\u2026","rel":"","context":"netatalk","block_context":{"text":"netatalk","link":"https:\/\/oichinote.com\/plus\/category\/netatalk"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2727,"url":"https:\/\/oichinote.com\/plus\/2012\/05\/ubuntu-10-04-netatalk-3-0alpha3-install.html","url_meta":{"origin":1801,"position":5},"title":"Ubuntu 10.04\u306bnetatalk 3.0alpha3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb[\u8ffd\u8a18\u3042\u308a]","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2012\u5e745\u670813\u65e5","format":false,"excerpt":"netatalk 3.0alpha1\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305f\u3068\u601d\u3063\u3066\u3044\u305f\u3089\u3001\u3042\u3063\u3068\u3044\u3046\u9593\u306balpha3\u307e\u3067\u884c\u2026","rel":"","context":"netatalk","block_context":{"text":"netatalk","link":"https:\/\/oichinote.com\/plus\/category\/netatalk"},"img":{"alt_text":"\u5225\u540d\u3067\u63a5\u7d9a","src":"https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2012\/05\/20120513netatalk3-001.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts\/1801","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/comments?post=1801"}],"version-history":[{"count":9,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts\/1801\/revisions"}],"predecessor-version":[{"id":22000,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts\/1801\/revisions\/22000"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/media\/21699"}],"wp:attachment":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/media?parent=1801"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/categories?post=1801"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/tags?post=1801"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}