{"id":30835,"date":"2025-04-21T04:41:37","date_gmt":"2025-04-20T20:41:37","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/30835.html"},"modified":"2025-04-21T04:41:37","modified_gmt":"2025-04-20T20:41:37","slug":"ubuntu-22-04-openldap%e7%8e%af%e5%a2%83%e4%b8%8e%e8%af%95%e7%94%a8%ef%bc%88%e6%9c%8d%e5%8a%a1%e5%99%a8lam%e5%ae%a2%e6%88%b7%e7%ab%af%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/30835.html","title":{"rendered":"Ubuntu 22.04 - OpenLDAP\u73af\u5883\u4e0e\u8bd5\u7528\uff08\u670d\u52a1\u5668+LAM+\u5ba2\u6237\u7aef\uff09"},"content":{"rendered":"<p>csdn\u4f60\u2026\u600e\u4e48\u4e0d\u81ea\u52a8\u4fdd\u5b58\u4e86\u5f88\u5d29\u6e83\u554a\u554a\u554a\u554a&#xff0c;\u6211\u8bb0\u5f97\u53d1\u73b0\u6ca1\u4fdd\u5b58\u4e4b\u540e\u6211\u53c8\u6539\u4e86\u4e00\u904d\u7136\u540e\u4fdd\u5b58\u4e86&#xff0c;\u600e\u4e48\u73b0\u5728\u53c8\u6ca1\u4e86\u554a\u554a\u554a\u554a&#xff0c;\u8fc7\u4e86\u8fd9\u4e48\u4e45\u6211\u90fd\u4e0d\u8bb0\u5f97\u4e86\u554a\u554a\u554a\u554a\u554a<\/p>\n<\/p>\n<h4>\u6587\u7ae0\u76ee\u5f55<\/h4>\n<ul>\n<li>\u53c2\u8003<\/li>\n<li>\u670d\u52a1\u5668<\/li>\n<li>\n<ul>\n<li>\u5b89\u88c5\u524d<\/li>\n<li>\u5b89\u88c5<\/li>\n<li>\u914d\u7f6eslapd<\/li>\n<li>\u670d\u52a1\u7aef\u4e3b\u673a\u9a8c\u8bc1<\/li>\n<li>\u5f00\u542f\u65e5\u5fd7<\/li>\n<\/ul>\n<\/li>\n<li>\u64cd\u4f5c<\/li>\n<li>\n<ul>\n<li>\u6dfb\u52a0\u7528\u6237\u548c\u7ec4\u7684\u57fa\u672c DN<\/li>\n<\/ul>\n<\/li>\n<li>\u8d26\u6237\u7ba1\u7406\u5668<\/li>\n<li>\n<ul>\n<li>\u5b89\u88c5<\/li>\n<li>\u914d\u7f6e<\/li>\n<li>\n<ul>\n<li>\u901a\u7528\u8bbe\u7f6e<\/li>\n<li>\u8d26\u6237\u7c7b\u578b<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u5ba2\u6237\u7aef<\/li>\n<li>\n<ul>\n<li>\u5b89\u88c5<\/li>\n<li>\u914d\u7f6e<\/li>\n<li>\u6d4b\u8bd5<\/li>\n<\/ul>\n<\/li>\n<li>debug<\/li>\n<li>\n<ul>\n<li>\n<ul>\n<li>\u65e5\u5fd7&#xff08;\u5176\u5b9e\u4e0d\u7528\u6539&#xff09;<\/li>\n<\/ul>\n<\/li>\n<li>\u57df\u540d\u95ee\u9898<\/li>\n<li>\n<ul>\n<li>~~\u9759\u6001ip~~<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<hr \/>\n<h2>\u53c2\u8003<\/h2>\n<p>\u5728 Ubuntu 22.04|20.04|18.04 \u4e0a\u5b89\u88c5 OpenLDAP \u548c phpLDAPadmin \u5728 Ubuntu 22.04|20.04|18.04|16.04 \u4e0a\u914d\u7f6e LDAP \u5ba2\u6237\u7aef \u5982\u4f55\u5728 Ubuntu 22.04 \u4e0a\u5b89\u88c5 OpenLDAP&#xff08;\u8f6c\u8f7d&#xff09;<\/p>\n<hr \/>\n<h2>\u670d\u52a1\u5668<\/h2>\n<h3>\u5b89\u88c5\u524d<\/h3>\n<p>\u8bbe\u7f6e\u60a8\u7684\u7cfb\u7edf\u4e3b\u673a\u540d\u5e76\u5c06\u5176\u6dfb\u52a0\u5230\u6587\u4ef6\/etc\/hosts\u3002<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">vim<\/span> \/etc\/hosts<\/p>\n<p>\u5c06 ldap.example.com \u66ff\u6362\u4e3a\u60a8\u6b63\u786e\u7684\u4e3b\u673a\u540d\/\u6709\u6548\u57df\u540d\u3002<\/p>\n<p><span class=\"token number\">192.168<\/span>.18.50 ldap.example.com<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420204129-68055bf91df8d.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u5b89\u88c5<\/h3>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt-get<\/span> update<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt-get<\/span> <span class=\"token function\">install<\/span> slapd ldap-utils<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420204129-68055bf93de1c.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/>\u5bc6\u7801&#xff1a;OpenLDAP<\/p>\n<h3>\u914d\u7f6eslapd<\/h3>\n<p><span class=\"token function\">sudo<\/span> dpkg-reconfigure slapd<br \/>\n<span class=\"token comment\"># Omit OpenLDAP server configuration?    NO<\/span><br \/>\n<span class=\"token comment\"># DNS domain name: mint.com<\/span><br \/>\n<span class=\"token comment\"># Organization name: ldap0<\/span><br \/>\n<span class=\"token comment\"># Administrator password: 123456<\/span><br \/>\n<span class=\"token comment\"># Confirm password: 123456<\/span><br \/>\n<span class=\"token comment\"># Do you want the database to be removed when slapd is purged? YES<\/span><br \/>\n<span class=\"token comment\"># Move old database? YES<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420204129-68055bf99490d.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/>slapcat\u8f93\u51fa SLAPD \u6570\u636e\u5e93\u5185\u5bb9\u6765\u786e\u8ba4\u5b89\u88c5\u662f\u5426\u6210\u529f\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420204129-68055bf9d501c.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u7f16\u8f91\u914d\u7f6e\u6587\u4ef6 \/etc\/ldap\/ldap.conf&#xff0c;\u53d6\u6d88\u6ce8\u91ca\u884c \\\\BASE\\\\ \u548c \\\\URI\\\\ \u5e76\u8f93\u5165\u60a8\u7684 OpenLDAP \u670d\u52a1\u5668\u7684\u57df\u540d\u3002<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">vim<\/span> \/etc\/ldap\/ldap.conf<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420204130-68055bfa2944e.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u91cd\u65b0\u542f\u52a8 slapd\u670d\u52a1\u6765\u5e94\u7528\u66f4\u6539<\/p>\n<p><span class=\"token function\">sudo<\/span> systemctl restart slapd<br \/>\n<span class=\"token function\">sudo<\/span> systemctl status slapd<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420204130-68055bfa4f94b.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/>\u9488\u5bf9\u8fd9\u4e2a\u95ee\u9898&#xff0c;\u53c2\u8003&#xff1a;LDAP connection seems to keep failing \u65b9\u6cd5\u4e00&#xff1a;\u5c06\/etc\/ldap\/ldap.conf \u4e2d\u7684ldapi:\/\/\u6539\u4e3aldap:\/\/ \u539f\u7406&#xff1a;\u5728 Ubuntu \u7cfb\u7edf\u4e2d&#xff0c;LDAP \u5ba2\u6237\u7aef\u914d\u7f6e\u901a\u5e38\u4f4d\u4e8e \/etc\/ldap\/ldap.conf \u6587\u4ef6\u4e2d\u3002ldapi:\/\/ \u662f\u7528\u4e8e\u672c\u5730 Unix \u5957\u63a5\u5b57\u7684 LDAP URI&#xff0c;\u800c ldap:\/\/ \u662f\u7528\u4e8e TCP\/IP \u7f51\u7edc\u8fde\u63a5\u7684 LDAP URI\u3002 \u5bf9\u6211\u6ca1\u7528&#xff0c;\u6211\u672c\u6765\u5c31\u662fldap:\/\/ \u65b9\u6cd5\u4e8c&#xff1a;\u5b89\u88c5libnss-ldapd<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt-get<\/span> update<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> libnss-ldapd<\/p>\n<p>\u539f\u7406&#xff1a;removes libnss-ldap and installs nscd and nslcd \u7136\u540e\u518dsudo systemctl status slapd&#xff0c;\u4f3c\u4e4e\u6210\u529f\u4e86 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420204131-68055bfb1038c.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u670d\u52a1\u7aef\u4e3b\u673a\u9a8c\u8bc1<\/h3>\n<p>ldapsearch\u662f\u4e00\u4e2a\u7528\u4e8e\u641c\u7d22\u548c\u67e5\u8be2LDAP\u76ee\u5f55\u7684\u5de5\u5177\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u4f7f\u7528ldapsearch\u8fdb\u884c\u67e5\u8be2\u9a8c\u8bc1\u7684\u793a\u4f8b&#xff1a;<\/p>\n<p><span class=\"token comment\"># ldapsearch -x -H ldap:\/\/\u670d\u52a1\u5668\u5730\u5740|hosts\u4e3b\u673a\u540d|\u57df\u540d -D &#034;cn&#061;\u7ba1\u7406\u5458,dc&#061;\u57df\u540d,dc&#061;\u9876\u7ea7\u57df&#034; -w \u5bc6\u7801 -b &#034;dc&#061;\u57df\u540d,dc&#061;\u9876\u7ea7\u57df&#034; &#034;(objectClass&#061;\\\\*)&#034;<\/span><br \/>\nldapsearch <span class=\"token parameter variable\">-H<\/span> ldap:\/\/127.0.0.1 <span class=\"token parameter variable\">-x<\/span>  <span class=\"token parameter variable\">-D<\/span> <span class=\"token string\">&#039;cn&#061;admin,dc&#061;mint,dc&#061;com&#039;<\/span> <span class=\"token parameter variable\">-w<\/span> <span class=\"token string\">&#039;123456&#039;<\/span> <span class=\"token parameter variable\">-b<\/span> <span class=\"token string\">&#039;dc&#061;mint,dc&#061;com&#039;<\/span> <span class=\"token string\">&#039;(objectClass&#061;*)&#039;<\/span> <\/p>\n<p>\u6216<\/p>\n<p>ldapsearch <span class=\"token parameter variable\">-Q<\/span> <span class=\"token parameter variable\">-LLL<\/span> <span class=\"token parameter variable\">-Y<\/span> EXTERNAL <span class=\"token parameter variable\">-H<\/span> ldapi:\/\/\/<\/p>\n<p>\u8fd9\u91cc\u56e0\u4e3a\u6211\u4e4b\u524d\u641e\u8fc7\u52a0\u7ec4\u52a0\u7528\u6237\u4ec0\u4e48\u7684&#xff08;\u4f46\u662f\u8bb0\u5f55\u5168\u4e22\u4e86&#xff09;&#xff0c;\u6240\u4ee5\u8fd8\u6709\u522b\u7684\u4fe1\u606f <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420204131-68055bfbb98af.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u5f00\u542f\u65e5\u5fd7<\/h3>\n<p>\u914d\u7f6e\u6587\u4ef6&#xff1a;\/etc\/ldap\/slapd.d<\/p>\n<p>\u5982\u679c\u4f60\u641c\u7d22OpenLDAP\u7684\u5b89\u88c5\u6307\u5357&#xff0c;\u5f88\u4e0d\u5e78\u5730\u544a\u8bc9\u4f60&#xff0c;\u7f51\u4e0a\u4e0d\u7ba1\u4e2d\u6587\u7684\u82f1\u6587\u7684&#xff0c;90%\u90fd\u662f\u9519\u7684&#xff0c;\u5b83\u4eec\u90fd\u8fd8\u6d3b\u5728\u4e0a\u4e2a\u4e16\u7eaa&#xff0c;\u5b83\u4eec\u4f1a\u544a\u8bc9\u4f60\u8981\u53bb\u4fee\u6539\u4e00\u4e2a\u53eb\u505aslapd.conf\u7684\u6587\u4ef6&#xff0c;\u57fa\u672c\u4e0a\u770b\u5230\u8fd9\u91cc&#xff0c;\u4f60\u5c31\u4e0d\u7528\u5f80\u4e0b\u770b\u4e86&#xff0c;\u8fd9\u4e2a\u6587\u4ef6\u65e9\u5c31\u88ab\u629b\u5f03&#xff0c;\u65b0\u7248\u7684OpenLDAP\u91cc\u6839\u672c\u5c31\u6ca1\u6709\u8fd9\u4e2a\u6587\u4ef6&#xff01;\u53d6\u800c\u4ee3\u4e4b\u7684\u662fslapd.d\u7684\u6587\u4ef6\u5939 ( \u6211\u82b1\u4e86\u4e00\u4e2a\u4e94\u4e00\u7ec8\u4e8e\u641e\u61c2\u4e86OpenLDAP)<\/p>\n<p>slapd.d\u7684\u76f8\u5173\u5185\u5bb9\u592a\u5c11\u4e86\u2026<\/p>\n<p>\u901a\u8fc7\u4fee\u6539cn&#061;config\u7684LDIF\u6587\u4ef6\u6765\u8bbe\u7f6e\u65e5\u5fd7\u7ea7\u522b\u3002\u8bbe\u7f6e\u65e5\u5fd7\u7ea7\u522b\u4e3a256&#xff08;\u8fd9\u4e2a\u65e5\u5fd7\u7ea7\u522b\u770b\u5230\u4e86\u5f88\u591a\u4e0d\u540c\u7248\u672c\u7684\u6570\u5b57&#xff0c;\u4e0d\u77e5\u9053\u6709\u4ec0\u4e48\u533a\u522b&#xff0c;\u5148\u8fd9\u6837\u7528\u7740&#xff09;&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420204132-68055bfc24fec.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u914d\u7f6e\u65e5\u5fd7\u6587\u4ef6\u7684\u5b58\u50a8\u4f4d\u7f6e\u3002\u521b\u5efa\u6216\u7f16\u8f91\/etc\/rsyslog.d\/10-slapd.conf\u6587\u4ef6&#xff0c;\u6dfb\u52a0&#xff1a;<\/p>\n<p>$template slapdtmpl,&#034;[%$DAY%-%$MONTH%-%$YEAR% %timegenerated:12:19:date-rfc3339%] %app-name% %syslogseverity-text% %msg%\\\\n&#034;<br \/>\nlocal4.*    \/var\/log\/slapd.log;slapdtmpl<\/p>\n<p>\u5c06OpenLDAP\u7684\u65e5\u5fd7\u5b58\u50a8\u5230\/var\/log\/slapd.log\u6587\u4ef6\u4e2d<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420204132-68055bfc74b13.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420204132-68055bfca6741.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u5b8c\u6210\u540e\u91cd\u542frsyslog\u670d\u52a1\u548cslapd\u670d\u52a1<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">service<\/span> rsyslog restart<br \/>\n<span class=\"token function\">sudo<\/span> systemctl restart slapd<\/p>\n<p>\u67e5\u770b\u65e5\u5fd7\u6587\u4ef6 \u53ef\u4ee5\u4f7f\u7528cat\u547d\u4ee4&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">cat<\/span> \/var\/log\/slapd.log<\/p>\n<p>\u6216\u8005\u4f7f\u7528tail\u547d\u4ee4\u5b9e\u65f6\u67e5\u770b\u65e5\u5fd7&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">tail<\/span> <span class=\"token parameter variable\">-f<\/span> \/var\/log\/slapd.log<\/p>\n<p>\u6211\u4f7f\u7528\u4e86tail&#xff0c;\u53e6\u5916\u5f00\u4e86\u4e2a\u7ec8\u7aef\u8fdb\u884cldapsearch&#xff0c;\u53ef\u4ee5\u770b\u5230search\u540e\u65e5\u5fd7\u6709\u589e\u52a0\u5185\u5bb9 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420204132-68055bfcf05ec.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h2>\u64cd\u4f5c<\/h2>\n<p>\u4e4b\u524d\u505a\u4e86\u4f46\u662f\u4e22\u5931\u7684&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420204133-68055bfd907d0.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420204133-68055bfde09b7.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420204134-68055bfe3ec7a.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u6dfb\u52a0\u7528\u6237\u548c\u7ec4\u7684\u57fa\u672c DN<\/h3>\n<p>\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a basedn.ldif \u7684\u6587\u4ef6&#xff08;\u6211\u5728\/mint\/ldap\u76ee\u5f55\u4e0b\u521b\u5efa&#xff09;&#xff0c;\u5176\u4e2d\u5305\u542b\u4ee5\u4e0b\u5185\u5bb9&#xff1a;<\/p>\n<p>dn: ou&#061;people,dc&#061;example,dc&#061;com<br \/>\nobjectClass: organizationalUnit<br \/>\nou: people<\/p>\n<p>dn: ou&#061;groups,dc&#061;example,dc&#061;com<br \/>\nobjectClass: organizationalUnit<br \/>\nou: groups<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420204134-68055bfe90444.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u901a\u8fc7\u8fd0\u884c\u547d\u4ee4\u6dfb\u52a0\u6587\u4ef6&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> ldapadd <span class=\"token parameter variable\">-x<\/span> <span class=\"token parameter variable\">-D<\/span> <span class=\"token assign-left variable\">cn<\/span><span class=\"token operator\">&#061;<\/span>admin,dc<span class=\"token operator\">&#061;<\/span>mint,dc<span class=\"token operator\">&#061;<\/span>com <span class=\"token parameter variable\">-W<\/span> <span class=\"token parameter variable\">-f<\/span> basedn.ldif<\/p>\n<hr \/>\n<h2>\u8d26\u6237\u7ba1\u7406\u5668<\/h2>\n<h3>\u5b89\u88c5<\/h3>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> ldap-account-manager<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420204134-68055bfebabd0.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/>\u5b89\u88c5\u5b8c\u6210\u540e&#xff0c;\u6253\u5f00\u6d4f\u89c8\u5668&#xff0c;\u8bbf\u95ee\u670d\u52a1\u5668IP\u5730\u5740\u540e\u8ddfURL\u8def\u5f84\/lam&#xff08;\u5373http:\/\/192.168.5.25\/lam&#xff09;\u3002\u4f60\u5e94\u8be5\u5f97\u5230LDAP \u5e10\u6237\u7ba1\u7406\u5458 (LAM) \u7684\u767b\u5f55\u9875\u9762\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420204135-68055bff094ad.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u914d\u7f6e<\/h3>\n<h4>\u901a\u7528\u8bbe\u7f6e<\/h4>\n<p>\u70b9\u51fb\u53f3\u4e0a\u89d2lam\u914d\u7f6e <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420204135-68055bffb66fa.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/>\u70b9\u7f16\u8f91\u670d\u52a1\u5668\u914d\u7f6e\u6587\u4ef6 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420204135-68055bffd6f86.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/>\u8f93\u5165\u5bc6\u7801lam&#xff0c;\u70b9\u51fb\u786e\u5b9a <img decoding=\"async\" src=\"2025-04-213vqkfrk4ugr.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/>\u5de5\u5177\u8bbe\u7f6e\u91cc\u8bbe\u7f6e\u4e3bDN&#xff0c;\u767b\u5f55\u65b9\u6cd5\u9009\u62e9\u56fa\u5b9a\u5217\u8868&#xff08;fixed list&#xff09;&#xff0c;\u8bbe\u7f6eadmin\u7528\u6237&#xff0c;\u7136\u540e\u70b9\u51fb\u4fdd\u5b58 <img decoding=\"async\" src=\"2025-04-21rlgmkelhwpj.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>\u8d26\u6237\u7c7b\u578b<\/h4>\n<p>\u518d\u6b21\u8fdb\u5165lam\u914d\u7f6e-\u7f16\u8f91\u670d\u52a1\u5668\u914d\u7f6e\u6587\u4ef6&#xff0c;\u5230\u201c\u5e10\u6237\u7c7b\u578b\u201d\u9875\u9762\u4ee5\u8bbe\u7f6e OpenLDAP \u670d\u52a1\u5668\u7684\u9ed8\u8ba4\u7ec4\u3002 \u5728\u201c\u7528\u6237\u201d\u90e8\u5206&#xff0c;\u5c06 LDAP \u540e\u7f00\u8f93\u5165\u4e3a ou&#061;People,dc&#061;localdomain,dc&#061;com \u3002 \u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d&#xff0c;\u6240\u6709\u7528\u6237\u90fd\u5e94\u8be5\u5728 People \u4e0a\u53ef\u7528\u3002 \u5728\u201c\u7ec4\u201d\u90e8\u5206&#xff0c;\u8f93\u5165 LDAP \u540e\u7f00\u4e3a ou&#061;Groups,dc&#061;localdomain,dc&#061;com \u3002\u5728\u6b64\u793a\u4f8b\u4e2d&#xff0c;\u6240\u6709\u7ec4\u90fd\u5e94\u5728\u57fa\u672c\u7ec4 Groups \u4e2d\u53ef\u7528\u3002 <img decoding=\"async\" src=\"2025-04-215upuemv0e0m.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/>\u4fdd\u5b58\u540e\u56de\u5230\u767b\u5f55\u9875&#xff0c;\u7528\u6237\u53d8\u6210\u4e86admin&#xff0c;\u8f93\u5165\u5bc6\u7801123456\u767b\u5f55<\/p>\n<p><img decoding=\"async\" src=\"2025-04-21mdj0ga0qqrq.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<hr \/>\n<h2>\u5ba2\u6237\u7aef<\/h2>\n<p>\u672c\u6765\u770b\u5f88\u591a\u4eba\u7528phpLDAPadmin&#xff0c;\u5b89\u88c5\u4e4b\u540e\u51fa\u73b0\u65e0\u6cd5\u4f7f\u7528\u7684\u95ee\u9898&#xff0c;\u67e5\u8d44\u6599\u53d1\u73b0\u662fphp\u7248\u672c\u95ee\u9898&#xff0c;\u7ed5\u4e0d\u5f00 <img decoding=\"async\" src=\"2025-04-21gqla2z2uebg.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u51fa\u81ea\u5728 Ubuntu 22.04|20.04|18.04 \u4e0a\u5b89\u88c5 OpenLDAP \u548c phpLDAPadmin&#xff08;\u4e0d\u662f\u6709\u95ee\u9898\u5c31\u522b\u6559\u6211\u5b89\u88c5\u554a&#xff01;&#xff09; \u6240\u4ee5\u51b3\u5b9a\u542c\u4ece\u5efa\u8bae\u5b89\u88c5LDAP\u5ba2\u6237\u7ba1\u7406\u5668\u4e86&#xff0c;\u5b89\u88c5phpLDAPadmin\u7684\u8fc7\u7a0b\u672c\u6765\u6709\u8bb0\u5f55\u7684\u65e2\u7136\u4e22\u4e86\u5c31\u7b97\u4e86<\/p>\n<p>\u53c2\u8003&#xff1a;\u5728 Ubuntu 22.04|20.04|18.04|16.04 \u4e0a\u914d\u7f6e LDAP \u5ba2\u6237\u7aef<\/p>\n<h3>\u5b89\u88c5<\/h3>\n<p>\u5c06 LDAP \u670d\u52a1\u5668\u5730\u5740\u6dfb\u52a0\u5230 \/etc\/hosts \u6587\u4ef6\u4e2d\u3002<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">vim<\/span> \/etc\/hosts<\/p>\n<p>192.168.18.50 ldap.mint.com \u524d\u9762\u662f\u670d\u52a1\u5668ip&#xff0c;\u540e\u9762\u57df\u540d <img decoding=\"async\" src=\"2025-04-2154uslexy4yp.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u5b89\u88c5\u547d\u4ee4&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token parameter variable\">-y<\/span> <span class=\"token function\">install<\/span> libnss-ldap libpam-ldap ldap-utils<\/p>\n<p><img decoding=\"async\" src=\"2025-04-21000xidmewtk.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u8bbe\u7f6e LDAP URI &#8211; \u53ef\u4ee5\u662f IP \u5730\u5740\u6216\u4e3b\u673a\u540d <img decoding=\"async\" src=\"2025-04-21shqu32qm2rv.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/>\u8bbe\u7f6e\u641c\u7d22\u5e93\u7684\u4e13\u6709\u540d\u79f0 <img decoding=\"async\" src=\"2025-04-21ry3fvqwnbsy.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/>\u9009\u62e9 LDAP \u7248\u672c 3 \u4e3a\u8bbe\u4e3a\u672c\u5730\u6839\u6570\u636e\u5e93\u7ba1\u7406\u5458\u9009\u62e9\u662f <img decoding=\"async\" src=\"2025-04-21s0m53q2xak4.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> LDAP \u6570\u636e\u5e93\u662f\u5426\u9700\u8981\u767b\u5f55&#xff1f;\u56de\u7b54\u5426 \u4e3a root \u8bbe\u7f6e LDAP \u5e10\u6237&#xff0c;\u4f8b\u5982 cn&#061;admin,cd&#061;example,cn&#061;com <img decoding=\"async\" src=\"2025-04-2123hqfeldp30.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u8bbe\u7f6e LDAP root \u5e10\u6237\u5bc6\u7801&#xff1a;123456<\/p>\n<h3>\u914d\u7f6e<\/h3>\n<p>\u5b89\u88c5\u540e&#xff0c;\u7f16\u8f91 \/etc\/nsswitch.conf \u5e76\u5c06 ldap \u8eab\u4efd\u9a8c\u8bc1\u6dfb\u52a0\u5230 passwd \u548c group \u884c\u3002<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">vim<\/span> \/etc\/nsswitch.conf<\/p>\n<p><img decoding=\"async\" src=\"2025-04-21mpitnnwqq15.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u4fee\u6539\u6587\u4ef6\/etc\/pam.d\/common-password\u3002\u5220\u9664\u7b2c 26 \u884c\u7684 use_authtok<\/p>\n<p>\u5728 Ubuntu \u7cfb\u7edf\u4e2d&#xff0c;\/etc\/pam.d\/common-password \u6587\u4ef6\u662f PAM&#xff08;Pluggable Authentication Modules&#xff09;\u914d\u7f6e\u6587\u4ef6\u4e4b\u4e00&#xff0c;\u7528\u4e8e\u5b9a\u4e49\u5bc6\u7801\u8ba4\u8bc1\u7684\u76f8\u5173\u7b56\u7565\u3002use_authtok \u662f PAM \u6a21\u5757\u4e2d\u7684\u4e00\u4e2a\u9009\u9879&#xff0c;\u7528\u4e8e\u6307\u5b9a\u662f\u5426\u4f7f\u7528\u524d\u4e00\u4e2a\u6a21\u5757\u63d0\u4f9b\u7684\u8ba4\u8bc1\u4ee4\u724c&#xff08;\u901a\u5e38\u662f\u5bc6\u7801&#xff09;\u3002<\/p>\n<p><img decoding=\"async\" src=\"2025-04-21schezwdevgz.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u901a\u8fc7\u5c06\u4ee5\u4e0b\u884c\u6dfb\u52a0\u5230\u6587\u4ef6 \/etc\/pam.d\/common-session \u7684\u672b\u5c3e&#xff0c;\u53ef\u4ee5\u5728\u9996\u6b21\u767b\u5f55\u65f6\u521b\u5efa\u4e3b\u76ee\u5f55<\/p>\n<p>session optional pam_mkhomedir.so skel&#061;\/etc\/skel umask&#061;077<\/p>\n<p><img decoding=\"async\" src=\"2025-04-21llgmigxj5kp.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u6d4b\u8bd5<\/h3>\n<p>\u901a\u8fc7\u5207\u6362\u5230 LDAP \u4e0a\u7684\u7528\u6237\u5e10\u6237\u8fdb\u884c\u6d4b\u8bd5<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">su<\/span> &#8211; mouse<br \/>\n<span class=\"token function\">id<\/span><\/p>\n<p><img decoding=\"async\" src=\"2025-04-21dmpcno0ybm4.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/>su: user mouse does not exist or the user entry does not contain all the required fields<\/p>\n<p>\u63d0\u793a\u7528\u6237\u4e0d\u5b58\u5728<\/p>\n<p>getent <span class=\"token function\">passwd<\/span> mouse<\/p>\n<p>\u6ca1\u6709\u8fd4\u56de\u7ed3\u679c\u8bf4\u660e\u7cfb\u7edf\u65e0\u6cd5\u89e3\u6790\u8be5\u7528\u6237&#xff0c;\u8bd5\u4e86\u4e00\u4e9b\u5e38\u89c1\u65b9\u6cd5\u8fd8\u6ca1\u5f04\u597d&#xff0c;\u5148\u8fd9\u6837\u5427<\/p>\n<hr \/>\n<p>\u56de\u6765\u529b&#xff01;\u89e3\u51b3\u4e00\u4e0b\u8fd9\u4e2a\u95ee\u9898<\/p>\n<h2>debug<\/h2>\n<p>\u7528nc\u547d\u4ee4\u6d4b\u8bd5\u80fd\u5426\u8fde\u5230\u670d\u52a1\u5668<\/p>\n<p><span class=\"token function\">nc<\/span> <span class=\"token parameter variable\">-zv<\/span> <span class=\"token function\">ip<\/span> <span class=\"token number\">389<\/span> <\/p>\n<p><img decoding=\"async\" src=\"2025-04-21glc1hddcpu1.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/>\u67e5\u770b\u670d\u52a1\u5668ip\u5df2\u7ecf\u4e0d\u662f\u90a3\u4e2a\u4e86\u6240\u4ee5\u8fde\u4e0d\u4e0a&#xff0c;\u6539\u6210\u771f\u5b9eip\u5c31\u8fde\u4e0a\u4e86<\/p>\n<p>\u4f7f\u7528ldapsearch\u76f4\u63a5\u67e5\u8be2\u7528\u6237<\/p>\n<p>ldapsearch <span class=\"token parameter variable\">-x<\/span> <span class=\"token parameter variable\">-H<\/span> ldap:\/\/192.168.18.50 <span class=\"token parameter variable\">-b<\/span> <span class=\"token string\">&#034;dc&#061;mint,dc&#061;com&#034;<\/span> <span class=\"token string\">&#034;(uid&#061;mouse)&#034;<\/span><\/p>\n<p>\u6709\u7ed3\u679c&#xff0c;\u80fd\u6b63\u5e38\u8bbf\u95eeLDAP\u670d\u52a1 \u8f93\u51fa\u7ed3\u679c\u4e5f\u53ef\u4ee5\u68c0\u67e5POSIX\u5c5e\u6027\u662f\u5426\u5b8c\u6574&#xff0c;POSIX\u5c5e\u6027\u4e00\u822c\u5305\u62ec\u5305\u62ec uidNumber\u3001gidNumber\u3001homeDirectory \u548c loginShell&#xff0c;\u8fd9\u91cc\u90fd\u6709\u7684 <img decoding=\"async\" src=\"2025-04-21hszpzz3tusg.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/>\u68c0\u67e5 nslcd \u914d\u7f6e<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">vim<\/span> \/etc\/nslcd.conf<\/p>\n<p>\u5173\u952e\u914d\u7f6e\u9879&#xff1a;<\/p>\n<p>uri ldap:\/\/ldap.mint.com<br \/>\nbase dc&#061;mint,dc&#061;com<br \/>\nbinddn cn&#061;admin,dc&#061;mint,dc&#061;com<br \/>\nbindpw 123456<br \/>\nssl no  # \u5982\u679c\u672a\u542f\u7528 TLS<br \/>\ntls_reqcert allow  # \u5141\u8bb8\u81ea\u7b7e\u540d\u8bc1\u4e66&#xff08;\u5982\u6709\u9700\u8981&#xff09;<\/p>\n<p>\u53d1\u73b0\u8fd9\u91cc\u7f3a\u4e86\u4e0d\u5c11\u554a\u8865\u4e0a&#xff0c;\u6682\u65f6\u6539\u6210\u8fd9\u6837 &#xff08;\u540e\u6765\u53d1\u73b0\u8fd9\u91cc\u6253\u6210ssl on\u4e86\u2026\u4eba\u600e\u4e48\u80fd\u8fd9\u4e48\u7c97\u5fc3\u5927\u610f&#xff09; <img decoding=\"async\" src=\"2025-04-21mlotbw0kley.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u4fdd\u5b58\u540e\u9700\u8981\u91cd\u542fnslcd\u670d\u52a1<\/p>\n<p><span class=\"token function\">sudo<\/span> systemctl restart nslcd<\/p>\n<p>\u518d\u8bd5\u8fd8\u662f\u6ca1\u7528&#xff0c;\u7ee7\u7eed&#xff01;<\/p>\n<h4>\u65e5\u5fd7&#xff08;\u5176\u5b9e\u4e0d\u7528\u6539&#xff09;<\/h4>\n<p>\u542f\u7528\u8c03\u8bd5\u65e5\u5fd7&#xff0c;\u4fee\u6539 \/etc\/nslcd.conf \u589e\u52a0\u65e5\u5fd7\u7ea7\u522b&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">vim<\/span> \/etc\/nslcd.conf<\/p>\n<p>loglevel 1  # \u65e5\u5fd7\u7ea7\u522b 0-5&#xff0c;5 \u4e3a\u6700\u8be6\u7ec6<br \/>\nlog \/var\/log\/nslcd.log<\/p>\n<p>\u91cd\u542f\u670d\u52a1\u5e76\u67e5\u770b\u65e5\u5fd7&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> systemctl restart nslcd<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">tail<\/span> <span class=\"token parameter variable\">-f<\/span> \/var\/log\/nslcd.log<\/p>\n<p><img decoding=\"async\" src=\"2025-04-214upl3xytr2x.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/>\u5982\u679c\u62a5\u9519\u7684\u8bdd\u53ef\u4ee5\u8fd9\u6837\u67e5\u770b\u8be6\u7ec6\u4fe1\u606f<\/p>\n<p>systemctl status nslcd.service<br \/>\njournalctl <span class=\"token parameter variable\">-xeu<\/span> nslcd.service<\/p>\n<p>\u6bd4\u5982\u8bf4\u7b2c\u4e00\u6761\u547d\u4ee4&#xff0c;\u5728\u8fd9\u91cc\u53ef\u4ee5\u770b\u5230\u662f\/etc\/nslcd.conf\u7b2c37\u884c\u7684loglevel\u65e0\u6cd5\u53d1\u8bc6\u522b <img decoding=\"async\" src=\"2025-04-21xtgdc4zokuu.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/>\u56e0\u4e3a\u4e0d\u540c\u7248\u672cnslcd\u53ef\u80fd\u7528\u7684\u53c2\u6570\u4e0d\u540c\u2026\u5148\u786e\u5b9a\u4e00\u4e0b\u7248\u672c<\/p>\n<p>nslcd <span class=\"token parameter variable\">&#8211;version<\/span><\/p>\n<p>nss-pam-ldapd 0.9.12&#xff0c;\u4f46\u662f\u6211\u4e5f\u4e0d\u77e5\u9053\u600e\u4e48\u641c\u4ed6\u53c2\u6570\u2026 <img decoding=\"async\" src=\"2025-04-213ytmuyhl2x1.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/>\u901a\u8fc7 man \u624b\u518c\u83b7\u53d6 nslcd.conf \u7684\u53c2\u6570\u8bf4\u660e&#xff1a;<\/p>\n<p><span class=\"token function\">man<\/span> nslcd.conf<\/p>\n<p>\u770b\u5230log\u662f\u8fd9\u4e2a\u5f62\u5f0f\u7684 <img decoding=\"async\" src=\"2025-04-21trzzisgdth5.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/>\u53c2\u6570\u5f62\u5f0f&#xff1a;log SCHEME LEVEL SCHEME&#xff1a;\u6307\u5b9a\u65e5\u5fd7\u8bb0\u5f55\u7684\u65b9\u5f0f&#xff0c;\u53ef\u4ee5\u662f\u4ee5\u4e0b\u9009\u9879\u4e4b\u4e00&#xff1a;<\/p>\n<ul>\n<li>none&#xff1a;\u4e0d\u8bb0\u5f55\u65e5\u5fd7\u3002<\/li>\n<li>syslog&#xff1a;\u5c06\u65e5\u5fd7\u53d1\u9001\u5230\u7cfb\u7edf\u65e5\u5fd7&#xff08;\u9ed8\u8ba4\u65b9\u5f0f&#xff09;\u3002<\/li>\n<li>absolute file name&#xff1a;\u6307\u5b9a\u4e00\u4e2a\u7edd\u5bf9\u8def\u5f84\u7684\u6587\u4ef6&#xff0c;\u5c06\u65e5\u5fd7\u5199\u5165\u8be5\u6587\u4ef6\u3002<\/li>\n<\/ul>\n<p>LEVEL&#xff1a;\u53ef\u9009\u53c2\u6570&#xff0c;\u6307\u5b9a\u65e5\u5fd7\u7ea7\u522b\u3002\u65e5\u5fd7\u7ea7\u522b\u51b3\u5b9a\u4e86\u8bb0\u5f55\u54ea\u4e9b\u7ea7\u522b\u7684\u6d88\u606f\u3002\u53ef\u9009\u503c\u5305\u62ec&#xff1a;<\/p>\n<ul>\n<li>crit&#xff1a;\u4ec5\u8bb0\u5f55\u5173\u952e\u9519\u8bef\u3002<\/li>\n<li>error&#xff1a;\u8bb0\u5f55\u9519\u8bef\u4fe1\u606f\u3002<\/li>\n<li>warning&#xff1a;\u8bb0\u5f55\u8b66\u544a\u4fe1\u606f\u3002<\/li>\n<li>notice&#xff1a;\u8bb0\u5f55\u91cd\u8981\u901a\u77e5\u3002<\/li>\n<li>info&#xff1a;\u8bb0\u5f55\u4e00\u822c\u4fe1\u606f&#xff08;\u9ed8\u8ba4\u7ea7\u522b&#xff09;\u3002<\/li>\n<li>debug&#xff1a;\u8bb0\u5f55\u8c03\u8bd5\u4fe1\u606f&#xff0c;\u5305\u542b\u6700\u8be6\u7ec6\u7684\u6d88\u606f\u3002<\/li>\n<\/ul>\n<p>\u4e5f\u5c31\u662f\u8bf4\u73b0\u5728\u5e94\u8be5\u662f\u9ed8\u8ba4\u7684log syslog info&#xff0c;\u8bb0\u5f55\u4e00\u822c\u4fe1\u606f\u5230\u7cfb\u7edf\u65e5\u5fd7&#xff0c;\u611f\u89c9\u6ca1\u5fc5\u8981\u6539&#xff0c;\u628a\u52a0\u7684log\u90a3\u51e0\u53e5\u5220\u6389&#xff0c;\u53bb\u7cfb\u7edf\u65e5\u5fd7\u770b\u770b\u5427 \u90a3\u7cfb\u7edf\u65e5\u5fd7\u5728\u54ea\u5462 \u5e38\u89c1\u7684\u7cfb\u7edf\u65e5\u5fd7\u6587\u4ef6&#xff1a;<\/p>\n<p>\/var\/log\/syslog&#xff1a;\u5728\u4f7f\u7528 syslogd \u6216 rsyslogd \u7684\u7cfb\u7edf\u4e2d&#xff0c;\u8fd9\u662f\u4e3b\u8981\u7684\u7cfb\u7edf\u65e5\u5fd7\u6587\u4ef6\u3002<br \/>\n\/var\/log\/messages&#xff1a;\u5728\u4e00\u4e9b\u7cfb\u7edf\u4e2d&#xff0c;\u8fd9\u6587\u4ef6\u5305\u542b\u4e00\u822c\u7cfb\u7edf\u6d88\u606f\u3002<br \/>\n\/var\/log\/daemon.log&#xff1a;\u7528\u4e8e\u8bb0\u5f55\u5b88\u62a4\u8fdb\u7a0b\u7684\u65e5\u5fd7\u4fe1\u606f\u3002<br \/>\n\/var\/log\/auth.log&#xff1a;\u7528\u4e8e\u8bb0\u5f55\u8ba4\u8bc1\u76f8\u5173\u7684\u65e5\u5fd7\u4fe1\u606f&#xff08;\u5982\u7528\u6237\u767b\u5f55\u3001su\u547d\u4ee4\u7b49&#xff09;\u3002<\/p>\n<p>\u600e\u4e48\u67e5\u770b&#xff1a; \u4f7f\u7528 tail \u547d\u4ee4 \u67e5\u770b\u65e5\u5fd7\u6587\u4ef6\u7684\u672b\u5c3e\u90e8\u5206&#xff08;\u5b9e\u65f6\u66f4\u65b0&#xff09;&#xff1a;<\/p>\n<p><span class=\"token function\">tail<\/span> <span class=\"token parameter variable\">-f<\/span> \/var\/log\/syslog<\/p>\n<p>\u4f7f\u7528 journalctl&#xff08;\u9002\u7528\u4e8e\u4f7f\u7528 systemd \u7684\u7cfb\u7edf&#xff09; \u67e5\u770b\u7279\u5b9a\u670d\u52a1\u7684\u65e5\u5fd7&#xff08;\u4f8b\u5982 nslcd&#xff09;&#xff1a;<\/p>\n<p>journalctl <span class=\"token parameter variable\">-u<\/span> nslcd.service<\/p>\n<p>\u6240\u4ee5\u8981\u67e5\u770bnscld\u7684\u65e5\u5fd7\u53ef\u4ee5\u7528<\/p>\n<p><span class=\"token function\">tail<\/span> <span class=\"token parameter variable\">-f<\/span> \/var\/log\/syslog<\/p>\n<p>\u5f00\u7740\u8fd9\u4e2a\u7ec8\u7aef\u4e0d\u8981\u9000\u51fatail&#xff0c;\u65b0\u5f00\u4e00\u4e2a\u7ec8\u7aef\u6267\u884csu&#xff0c;\u67e5\u770b\u6700\u65b0\u7684\u65e5\u5fd7 <img decoding=\"async\" src=\"2025-04-21qojvv23egrd.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/>\u770b\u4e86\u4e00\u773c\u4e4b\u540e\u60f3\u8d77\u6765\u914d\u7f6e\u6587\u4ef6\u91cc\u8981\u6539ip\u2026\u628a\/etc\/nslcd.conf\u91cc\u670d\u52a1\u5668uri\u6539\u6210\u771f\u5b9eip\u7136\u540e\u91cd\u542fnslcd\u670d\u52a1&#xff0c;\u518dsu\u8bd5\u8bd5&#xff0c;\u67e5\u770bsyslog\u65e5\u5fd7&#xff1a; <img decoding=\"async\" src=\"2025-04-21e5pebrp31gn.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/>slapd\u7684&#xff1a; <img decoding=\"async\" src=\"2025-04-21gzmoddxlpk3.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/>TLS\u63e1\u624b\u5931\u8d25&#xff0c;\u80fd\u662f\u8bc1\u4e66\u914d\u7f6e\u9519\u8bef\u6216\u52a0\u5bc6\u534f\u8bae\u4e0d\u517c\u5bb9\u3002\u7136\u540e\u518d\u6392\u67e5\u4e86\u4e00\u904d&#xff0c;\u53d1\u73b0\u662fnslcd.conf\u91cc\u5199\u4e86ssl on&#xff0c;\u5173\u6389ssl\u4e4b\u540e\u5c31\u6210\u529f\u4e86 <img decoding=\"async\" src=\"2025-04-21faqzxf0n35t.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/>\u53ef\u4ee5\u4f7f\u7528exit\u6216\u8005Ctrl &#043; D\u9000\u51fa<\/p>\n<p>\u597d\u73b0\u5728\u6765\u7814\u7a76\u4e00\u4e0b\u5f00ssl\u600e\u4e48\u641e <img decoding=\"async\" src=\"2025-04-21bvt04stalsg.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/>\u8bc1\u4e66\u8def\u5f84&#xff1a;\/etc\/ssl\/certs\/ca-certificates.crt \u4fee\u6539\u8bc1\u4e66\u6743\u9650<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">chmod<\/span> <span class=\"token number\">644<\/span> \/etc\/ssl\/certs\/ca-certificates.crt<\/p>\n<p>\u4e0d\u662f&#xff0c;\u600e\u4e48\u5c31\u80fd\u7528\u4e86&#xff1f;&#xff1f; <img decoding=\"async\" src=\"2025-04-21xvyfe1hwhyu.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u90a3\u603b\u4e4b\u73b0\u5728\u95ee\u9898\u662f\u89e3\u51b3\u4e86\u5148\u8fd9\u6837\u5427\u7d2f\u4e86<\/p>\n<h3>\u57df\u540d\u95ee\u9898<\/h3>\n<p>\u53d1\u73b0\u670d\u52a1\u5668ip\u53d8\u4e86&#xff0c;\u6240\u4ee5\u57df\u540d\u5931\u6548\u4e86 \u76ee\u524d\u641e\u4e0d\u4e86\u6240\u4ee5\u53ea\u80fd\u6bcf\u6b21\u624b\u52a8\u6362ip\u4e86&#xff08;<\/p>\n<h4>\u9759\u6001ip<\/h4>\n<p>\u641e\u4e0d\u4e86\u554a\u5728\u5b66\u6821&#xff08;X \u5c1d\u8bd5\u641e\u4e00\u4e0b \u786e\u8ba4\u5f53\u524d\u7f51\u7edc\u63a5\u53e3\u540d\u79f0<\/p>\n<p><span class=\"token function\">ip<\/span> a<\/p>\n<p>\u7b2c\u4e00\u4e2a\u662flo&#xff0c;\u73af\u56de\u63a5\u53e3&#xff0c;\u770b\u5230\u7b2c\u4e8c\u4e2a&#xff0c;\u7f51\u7edc\u63a5\u53e3\u662fens33 <img decoding=\"async\" src=\"2025-04-21c00dyp0kc0u.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/>\u7f16\u8f91\/etc\/netplan\u4e0b\u7684yaml\u6587\u4ef6&#xff0c;\u6211\u8fd9\u662f01-network-manager-all.yaml \u8fd9\u91cc\u8bb0\u4e00\u4e0b\u521d\u59cb\u7684\u914d\u7f6e\u9632\u6b62\u6539\u574f\u4e86<\/p>\n<p><span class=\"token comment\"># Let NetworkManager manage all devices on this system<\/span><br \/>\n<span class=\"token key atrule\">network<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">version<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">2<\/span><br \/>\n  <span class=\"token key atrule\">renderer<\/span><span class=\"token punctuation\">:<\/span> NetworkManager<\/p>\n<p>\u4fee\u6539\u6210<\/p>\n<p><span class=\"token key atrule\">network<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">version<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">2<\/span><br \/>\n  <span class=\"token key atrule\">renderer<\/span><span class=\"token punctuation\">:<\/span> NetworkManager  <span class=\"token comment\"># \u4f7f\u7528 NetworkManager \u7ba1\u7406\u7f51\u7edc<\/span><br \/>\n  <span class=\"token key atrule\">ethernets<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token key atrule\">ens33<\/span><span class=\"token punctuation\">:<\/span>  <span class=\"token comment\"># \u7f51\u5361\u540d\u79f0<\/span><br \/>\n      <span class=\"token key atrule\">dhcp4<\/span><span class=\"token punctuation\">:<\/span> no  <span class=\"token comment\"># \u7981\u7528 DHCP<\/span><br \/>\n      <span class=\"token key atrule\">addresses<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token punctuation\">&#8211;<\/span> 192.168.18.50\/24  <span class=\"token comment\"># \u9759\u6001 IP \u548c\u5b50\u7f51\u63a9\u7801&#xff08;CIDR \u683c\u5f0f&#xff09;<\/span><br \/>\n      <span class=\"token key atrule\">routes<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token punctuation\">&#8211;<\/span> <span class=\"token key atrule\">to<\/span><span class=\"token punctuation\">:<\/span> default<br \/>\n          <span class=\"token key atrule\">via<\/span><span class=\"token punctuation\">:<\/span> 192.168.18.1  <span class=\"token comment\"># \u7f51\u5173\u5730\u5740<\/span><br \/>\n      <span class=\"token key atrule\">nameservers<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token key atrule\">addresses<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">[<\/span>8.8.8.8<span class=\"token punctuation\">,<\/span> 1.1.1.1<span class=\"token punctuation\">]<\/span>  <span class=\"token comment\"># DNS \u670d\u52a1\u5668<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb997\u6b21\uff0c\u70b9\u8d5e16\u6b21\uff0c\u6536\u85cf10\u6b21\u3002csdn\u4f60\u2026\u600e\u4e48\u4e0d\u81ea\u52a8\u4fdd\u5b58\u4e86\u5f88\u5d29\u6e83\u554a\u554a\u554a\u554a\uff0c\u6211\u8bb0\u5f97\u53d1\u73b0\u6ca1\u4fdd\u5b58\u4e4b\u540e\u6211\u53c8\u6539\u4e86\u4e00\u904d\u7136\u540e\u4fdd\u5b58\u4e86\uff0c\u600e\u4e48\u73b0\u5728\u53c8\u6ca1\u4e86\u554a\u554a\u554a\u554a\uff0c\u8fc7\u4e86\u8fd9\u4e48\u4e45\u6211\u90fd\u4e0d\u8bb0\u5f97\u4e86\u554a\u554a\u554a\u554a\u554a\u3002_ubuntu openldap<\/p>\n","protected":false},"author":2,"featured_media":30815,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[1494,58,103,43],"topic":[],"class_list":["post-30835","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-ldap","tag-linux","tag-ubuntu","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Ubuntu 22.04 - OpenLDAP\u73af\u5883\u4e0e\u8bd5\u7528\uff08\u670d\u52a1\u5668+LAM+\u5ba2\u6237\u7aef\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/30835.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Ubuntu 22.04 - OpenLDAP\u73af\u5883\u4e0e\u8bd5\u7528\uff08\u670d\u52a1\u5668+LAM+\u5ba2\u6237\u7aef\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb997\u6b21\uff0c\u70b9\u8d5e16\u6b21\uff0c\u6536\u85cf10\u6b21\u3002csdn\u4f60\u2026\u600e\u4e48\u4e0d\u81ea\u52a8\u4fdd\u5b58\u4e86\u5f88\u5d29\u6e83\u554a\u554a\u554a\u554a\uff0c\u6211\u8bb0\u5f97\u53d1\u73b0\u6ca1\u4fdd\u5b58\u4e4b\u540e\u6211\u53c8\u6539\u4e86\u4e00\u904d\u7136\u540e\u4fdd\u5b58\u4e86\uff0c\u600e\u4e48\u73b0\u5728\u53c8\u6ca1\u4e86\u554a\u554a\u554a\u554a\uff0c\u8fc7\u4e86\u8fd9\u4e48\u4e45\u6211\u90fd\u4e0d\u8bb0\u5f97\u4e86\u554a\u554a\u554a\u554a\u554a\u3002_ubuntu openldap\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/30835.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-20T20:41:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420204129-68055bf91df8d.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/30835.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/30835.html\",\"name\":\"Ubuntu 22.04 - OpenLDAP\u73af\u5883\u4e0e\u8bd5\u7528\uff08\u670d\u52a1\u5668+LAM+\u5ba2\u6237\u7aef\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-20T20:41:37+00:00\",\"dateModified\":\"2025-04-20T20:41:37+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/30835.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/30835.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/30835.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ubuntu 22.04 - OpenLDAP\u73af\u5883\u4e0e\u8bd5\u7528\uff08\u670d\u52a1\u5668+LAM+\u5ba2\u6237\u7aef\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Ubuntu 22.04 - OpenLDAP\u73af\u5883\u4e0e\u8bd5\u7528\uff08\u670d\u52a1\u5668+LAM+\u5ba2\u6237\u7aef\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/30835.html","og_locale":"zh_CN","og_type":"article","og_title":"Ubuntu 22.04 - OpenLDAP\u73af\u5883\u4e0e\u8bd5\u7528\uff08\u670d\u52a1\u5668+LAM+\u5ba2\u6237\u7aef\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb997\u6b21\uff0c\u70b9\u8d5e16\u6b21\uff0c\u6536\u85cf10\u6b21\u3002csdn\u4f60\u2026\u600e\u4e48\u4e0d\u81ea\u52a8\u4fdd\u5b58\u4e86\u5f88\u5d29\u6e83\u554a\u554a\u554a\u554a\uff0c\u6211\u8bb0\u5f97\u53d1\u73b0\u6ca1\u4fdd\u5b58\u4e4b\u540e\u6211\u53c8\u6539\u4e86\u4e00\u904d\u7136\u540e\u4fdd\u5b58\u4e86\uff0c\u600e\u4e48\u73b0\u5728\u53c8\u6ca1\u4e86\u554a\u554a\u554a\u554a\uff0c\u8fc7\u4e86\u8fd9\u4e48\u4e45\u6211\u90fd\u4e0d\u8bb0\u5f97\u4e86\u554a\u554a\u554a\u554a\u554a\u3002_ubuntu openldap","og_url":"https:\/\/www.wsisp.com\/helps\/30835.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-20T20:41:37+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420204129-68055bf91df8d.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/30835.html","url":"https:\/\/www.wsisp.com\/helps\/30835.html","name":"Ubuntu 22.04 - OpenLDAP\u73af\u5883\u4e0e\u8bd5\u7528\uff08\u670d\u52a1\u5668+LAM+\u5ba2\u6237\u7aef\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-20T20:41:37+00:00","dateModified":"2025-04-20T20:41:37+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/30835.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/30835.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/30835.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Ubuntu 22.04 - OpenLDAP\u73af\u5883\u4e0e\u8bd5\u7528\uff08\u670d\u52a1\u5668+LAM+\u5ba2\u6237\u7aef\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/30835","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=30835"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/30835\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/30815"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=30835"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=30835"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=30835"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=30835"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}