{"id":18125,"date":"2013-12-25T11:27:09","date_gmt":"2013-12-25T03:27:09","guid":{"rendered":"https:\/\/2blog.ilc.edu.tw\/25793\/2013\/12\/25\/%e8%a7%a3%e6%b1%ba-ldif-%e6%a0%bc%e5%bc%8f%e6%aa%94%e4%b8%ad%e6%9c%89%e4%b8%ad%e6%96%87%e7%84%a1%e6%b3%95%e5%8c%af%e5%85%a5%e7%9a%84%e5%95%8f%e9%a1%8c\/"},"modified":"2013-12-25T11:27:09","modified_gmt":"2013-12-25T03:27:09","slug":"%e8%a7%a3%e6%b1%ba-ldif-%e6%a0%bc%e5%bc%8f%e6%aa%94%e4%b8%ad%e6%9c%89%e4%b8%ad%e6%96%87%e7%84%a1%e6%b3%95%e5%8c%af%e5%85%a5%e7%9a%84%e5%95%8f%e9%a1%8c","status":"publish","type":"post","link":"https:\/\/2blog.ilc.edu.tw\/25793\/2013\/12\/25\/%e8%a7%a3%e6%b1%ba-ldif-%e6%a0%bc%e5%bc%8f%e6%aa%94%e4%b8%ad%e6%9c%89%e4%b8%ad%e6%96%87%e7%84%a1%e6%b3%95%e5%8c%af%e5%85%a5%e7%9a%84%e5%95%8f%e9%a1%8c\/","title":{"rendered":"\u89e3\u6c7a LDIF \u683c\u5f0f\u6a94\u4e2d\u6709\u4e2d\u6587\u7121\u6cd5\u532f\u5165\u7684\u554f\u984c"},"content":{"rendered":"<p>\u7d93\u904e utf8\u00a0\u8f49\u63db\u904e\u7684 LDIF\u00a0\u683c\u5f0f\u6a94\uff0c\u5728\u532f\u5165\u6642\u6703\u51fa\u73fe\u4e0b\u9762\u7684\u932f\u8aa4\u7684\u8a0a\u606f<br \/># <span style=\"color: #ff0000;\">slapadd -l \/root\/ldif\/t850008.ldif<\/span><br \/><span style=\"color: #0000ff;\">The first database does not allow slapadd; using the first available one (2)<\/span><br \/><span style=\"color: #0000ff;\">str2entry: invalid value for attributeType <span style=\"color: #ff0000;\">gecos<\/span> #0 (syntax 1.3.6.1.4.1.1466.115.121.1.26)<\/span><br \/><span style=\"color: #0000ff;\">slapadd: could not parse entry (line=1)<\/span><br \/><span style=\"color: #0000ff;\">_#################### 100.00% eta\u00a0\u00a0 none elapsed\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 none fast!<\/span><br \/><span style=\"color: #0000ff;\">Closing DB&#8230;<\/span><\/p>\n<p>\u770b\u8d77\u4f86\u4f3c\u4e4e\u662f gecos\u00a0\u7684\u554f\u984c[@more@]\u5728\u7db2\u8def\u4e0a\u641c\u5c0b\u4e86\u4e00\u4e0b\uff0c\u4f3c\u4e4e\u9810\u8a2d\u7684 LDAP schema\u00a0\u5728 gecos\u00a0\u7684\u90e8\u5206\u4e0d\u652f\u63f4\u4e2d\u6587<br \/>\u89e3\u6c7a\u65b9\u6cd5\uff1a<br \/>1.\u00a0\u5148\u5099\u4efd\u539f\u6a94 <span style=\"color: #0000ff;\">\/etc\/openldap\/schema\/nis.schema<\/span><br \/># <span style=\"color: #ff0000;\">cp \/etc\/openldap\/schema\/nis.schema \/etc\/openldap\/schema\/nis.schema.bak<\/span><\/p>\n<p>2.\u00a0\u4fee\u6539\u8a2d\u5b9a\u6a94<span style=\"color: #0000ff;\"> \/etc\/openldap\/schema\/nis.schema<\/span><br \/># <span style=\"color: #ff0000;\">vim \/etc\/openldap\/schema\/nis.schema<\/span><br \/>\u628a<br \/><span style=\"color: #0000ff;\">attributetype ( 1.3.6.1.1.1.1.2 NAME &#8216;gecos&#8217;<\/span><br \/><span style=\"color: #0000ff;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 DESC &#8216;The GECOS field; the common name&#8217;<\/span><br \/><span style=\"color: #0000ff;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 EQUALITY caseIgnore<span style=\"color: #ff0000;\">IA5<\/span>Match<\/span><br \/><span style=\"color: #0000ff;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SUBSTR caseIgnore<span style=\"color: #ff0000;\">IA5<\/span>SubstringsMatch<\/span><br \/><span style=\"color: #0000ff;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SYNTAX 1.3.6.1.4.1.1466.115.121.1.<span style=\"color: #ff0000;\">26<\/span> SINGLE-VALUE )<\/span><br \/>\u4fee\u6539\u6210<br \/><span style=\"color: #0000ff;\">attributetype ( 1.3.6.1.1.1.1.2 NAME &#8216;gecos&#8217;<\/span><br \/><span style=\"color: #0000ff;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 DESC &#8216;The GECOS field; the common name&#8217;<\/span><br \/><span style=\"color: #0000ff;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 EQUALITY caseIgnoreMatch<\/span><br \/><span style=\"color: #0000ff;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SUBSTR caseIgnoreSubstringsMatch<\/span><br \/><span style=\"color: #0000ff;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE )<\/span><\/p>\n<p>3.\u00a0\u91cd\u65b0\u532f\u5165<br \/># <span style=\"color: #ff0000;\">slapadd -l \/root\/ldif\/t850008.ldif<\/span><br \/><span style=\"color: #0000ff;\">The first database does not allow slapadd; using the first available one (2)<\/span><br \/><span style=\"color: #0000ff;\">_#################### 100.00% eta\u00a0\u00a0 none elapsed\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 none fast!<\/span><br \/><span style=\"color: #0000ff;\">Closing DB&#8230;<\/span><\/p>\n<p>4.\u00a0\u5982\u679c\u9084\u662f\u4e0d\u884c\u7684\u8a71\uff0c\u5c31\u53ea\u8981\u628a LDIF\u00a0\u4e2d\u7684 gecos\u00a0\u90a3\u4e00\u884c\u522a\u9664\u5373\u53ef\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7d93\u904e utf8\u00a0\u8f49\u63db\u904e\u7684 LDIF\u00a0\u683c\u5f0f\u6a94\uff0c\u5728\u532f\u5165\u6642\u6703\u51fa\u73fe\u4e0b\u9762\u7684\u932f\u8aa4\u7684\u8a0a\u606f# slapadd -l \/root &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/2blog.ilc.edu.tw\/25793\/2013\/12\/25\/%e8%a7%a3%e6%b1%ba-ldif-%e6%a0%bc%e5%bc%8f%e6%aa%94%e4%b8%ad%e6%9c%89%e4%b8%ad%e6%96%87%e7%84%a1%e6%b3%95%e5%8c%af%e5%85%a5%e7%9a%84%e5%95%8f%e9%a1%8c\/\" class=\"more-link\">\u95b1\u8b80\u5168\u6587<span class=\"screen-reader-text\">\u3008\u89e3\u6c7a LDIF \u683c\u5f0f\u6a94\u4e2d\u6709\u4e2d\u6587\u7121\u6cd5\u532f\u5165\u7684\u554f\u984c\u3009<\/span><\/a><\/p>\n","protected":false},"author":55,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[115],"tags":[],"class_list":["post-18125","post","type-post","status-publish","format-standard","hentry","category-c-78460"],"meta_key":{"_encloseme":["1"],"lt_post_id":["467574"]},"_links":{"self":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/18125"}],"collection":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/users\/55"}],"replies":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/comments?post=18125"}],"version-history":[{"count":0,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/18125\/revisions"}],"wp:attachment":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/media?parent=18125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/categories?post=18125"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/tags?post=18125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}