{"id":605,"date":"2013-02-07T16:15:21","date_gmt":"2013-02-07T07:15:21","guid":{"rendered":"http:\/\/systemdev.comsys-blog.com\/?p=605"},"modified":"2013-02-07T16:15:21","modified_gmt":"2013-02-07T07:15:21","slug":"openldap%e3%81%ablinux%e3%83%a6%e3%83%bc%e3%82%b6%e3%83%bc%e3%82%a2%e3%82%ab%e3%82%a6%e3%83%b3%e3%83%88%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%9f%e3%81%91%e3%81%a9%e3%81%9d%e3%81%ae%e4%bb%96%e3%81%ae","status":"publish","type":"post","link":"https:\/\/tamura.jp\/?p=605","title":{"rendered":"OpenLdap\u306bLINUX\u30e6\u30fc\u30b6\u30fc\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u3063\u305f\u3051\u3069\u305d\u306e\u4ed6\u306e\u60c5\u5831\u3082LDAP\u306b\u5165\u308c\u3066\u304a\u304d\u305f\u304b\u3063\u305f\u306e\u3067\u4f5c\u3063\u305fSchema"},"content":{"rendered":"<p>\/etc\/openldap\/schema \u30d5\u30a9\u30eb\u30c0\u30fc\u306b ldapusers.schema \u3092\u4f5c\u6210\u3057\u305f\u3002<\/p>\n<p>[text]<br \/>\nattributetype ( 1.1.2.1.1.500.1<br \/>\n\tNAME &#8216;userName&#8217;<br \/>\n\tDESC &#8216;jp.compsys user name UTF8&#8217;<br \/>\n\tEQUALITY caseIgnoreMatch<br \/>\n\tSUBSTR caseIgnoreSubstringsMatch        &lt;&#8212;- filter \u306e\u90e8\u5206\u6587\u5b57\u5217\u691c\u7d22\u3059\u308b\u305f\u3081\u306b\u306f\u5fc5\u8981\u304b\uff1f\uff01<br \/>\n\tSYNTAX 1.3.6.1.4.1.1466.115.121.1.15{200} )<\/p>\n<p>attributetype ( 1.1.2.1.1.500.2<br \/>\n\tNAME &#039;mailAddress&#039;<br \/>\n\tDESC &#039;jp.compsys email address&#039;<br \/>\n\tEQUALITY caseIgnoreIA5Match<br \/>\n\tSUBSTR caseIgnoreSubstringsMatch<br \/>\n\tSYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} )<\/p>\n<p>attributetype ( 1.1.2.1.1.500.3<br \/>\n\tNAME &#039;mailAddressMobile&#039;<br \/>\n\tDESC &#039;jp.compsys mobile email address&#039;<br \/>\n\tEQUALITY caseIgnoreIA5Match<br \/>\n\tSUBSTR caseIgnoreSubstringsMatch<br \/>\n\tSYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} )<\/p>\n<p>objectclass ( 1.1.2.1.1.100.1<br \/>\n\tNAME &#039;personalInfo&#039;<br \/>\n\tDESC &#039;jp.compsys personal information&#039;<br \/>\n\tSUP top AUXILIARY<br \/>\n\tMAY\t( userName $ mailAddress $ mailAddressMobile ) )<\/p>\n<p>[\/text]<\/p>\n<p>\/etc\/openldap\/slapd.conf \u306bldapusers.schema \u3092\u8ffd\u52a0\u3059\u308b\u3002\u4fee\u6b63\u3057\u305f\u3089 slapd \u3092\u518d\u8d77\u52d5\u3059\u308b\u3002<br \/>\n[text]<br \/>\ninclude\t\t\/etc\/openldap\/schema\/nis.schema<br \/>\ninclude\t\t\/etc\/openldap\/schema\/openldap.schema<br \/>\ninclude\t\t\/etc\/openldap\/schema\/ppolicy.schema<br \/>\ninclude\t\t\/etc\/openldap\/schema\/collective.schema<br \/>\ninclude\t\t\/etc\/openldap\/schema\/ldapusers.schema    &lt;&#8212;&#8211;\u3053\u3053<br \/>\n[\/text]<\/p>\n<p>java\u3067\u4f7f\u3046\u3068\u304d\u306f<br \/>\n[text]<br \/>\n \/\/ objectClass(\u5fc5\u9808)<br \/>\n Attribute attrObjClass = new BasicAttribute(&#8220;objectClass&#8221;);<br \/>\n attrObjClass.add(0, &#8220;top&#8221;);<br \/>\n attrObjClass.add(1, &#8220;account&#8221;);<br \/>\n attrObjClass.add(2, &#8220;posixAccount&#8221;);<br \/>\n attrObjClass.add(3, &#8220;personalInfo&#8221;);<br \/>\n attrs.put(attrObjClass);<br \/>\n[\/text]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/etc\/openldap\/schema \u30d5\u30a9\u30eb\u30c0\u30fc\u306b ldapusers.schema \u3092\u4f5c\u6210\u3057\u305f\u3002 [text] attributetype ( 1.1.2.1.1.500.1 NAME &#8216;userNam [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,13,18,21],"tags":[],"class_list":["post-605","post","type-post","status-publish","format-standard","hentry","category-centos6","category-java","category-ldap","category-openldap"],"_links":{"self":[{"href":"https:\/\/tamura.jp\/index.php?rest_route=\/wp\/v2\/posts\/605","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tamura.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tamura.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tamura.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tamura.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=605"}],"version-history":[{"count":0,"href":"https:\/\/tamura.jp\/index.php?rest_route=\/wp\/v2\/posts\/605\/revisions"}],"wp:attachment":[{"href":"https:\/\/tamura.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=605"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tamura.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=605"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tamura.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=605"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}