{"id":1718,"date":"2025-06-12T11:04:26","date_gmt":"2025-06-12T03:04:26","guid":{"rendered":"https:\/\/www.o6s.net\/?p=1718"},"modified":"2026-01-06T22:56:08","modified_gmt":"2026-01-06T14:56:08","slug":"openeluer-%e5%ae%89%e8%a3%85-openldap","status":"publish","type":"post","link":"https:\/\/www.o6s.net\/index.php\/2025\/06\/12\/openeluer-%e5%ae%89%e8%a3%85-openldap\/","title":{"rendered":"OpenEluer \u5b89\u88c5 OpenLDAP"},"content":{"rendered":"<h2 style=\"line-height: 34px; margin-top: 35px; margin-bottom: 10px; padding-bottom: 12px; font-size: 22px; border-bottom: 1px solid #ececec; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" data-id=\"heading-0\" data-pm-slice=\"0 0 []\">\u4e00\u3001\u7248\u672c\u4fe1\u606f<\/h2>\n<h3 style=\"line-height: 28px; margin-top: 35px; margin-bottom: 10px; padding-bottom: 5px; font-size: 20px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" data-id=\"heading-1\" data-pm-slice=\"0 0 []\">OpenEluer\u7248\u672c\u4fe1\u606f<\/h3>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"bash\"><code><span class=\"code-snippet__built_in\">cat<\/span>\u00a0\/etc\/os-release<\/code><\/pre>\n<\/section>\n<section style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1719\" src=\"https:\/\/www.o6s.net\/wp-content\/uploads\/2026\/01\/640-b497346a-1.png\" width=\"374\" height=\"121\" srcset=\"https:\/\/www.o6s.net\/wp-content\/uploads\/2026\/01\/640-b497346a-1.png 374w, https:\/\/www.o6s.net\/wp-content\/uploads\/2026\/01\/640-b497346a-1-300x97.png 300w\" sizes=\"auto, (max-width: 374px) 100vw, 374px\" \/><\/section>\n<h3 style=\"line-height: 28px; margin-top: 35px; margin-bottom: 10px; padding-bottom: 5px; font-size: 20px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" data-id=\"heading-2\" data-pm-slice=\"0 0 []\">OpenLDAP\u7248\u672c\u4fe1\u606f 2.4.44<\/h3>\n<p style=\"line-height: inherit; margin-top: 22px; margin-bottom: 22px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\">\u4e0b\u8f7d\u5730\u5740<\/p>\n<h2 style=\"line-height: 34px; margin-top: 35px; margin-bottom: 10px; padding-bottom: 12px; font-size: 22px; border-bottom: 1px solid #ececec; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" data-id=\"heading-3\" data-pm-slice=\"0 0 []\">\u4e8c\u3001\u4fee\u6539yum\u6570\u636e\u6e90<\/h2>\n<h3 style=\"line-height: 28px; margin-top: 35px; margin-bottom: 10px; padding-bottom: 5px; font-size: 20px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" data-id=\"heading-4\" data-pm-slice=\"0 0 []\">\u5907\u4efd\u539f\u6709 YUM \u6e90\u914d\u7f6e<\/h3>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"bash\"><code><span class=\"code-snippet__built_in\">cd<\/span>\u00a0\/etc\/yum.repos.d\/<\/code><code><span class=\"code-snippet__built_in\">mv<\/span>\u00a0openEuler.repo openEuler.repo.bak \u00a0<span class=\"code-snippet__comment\"># \u5907\u4efd\u539f\u6709\u914d\u7f6e<\/span><\/code><\/pre>\n<\/section>\n<h3 style=\"line-height: 28px; margin-top: 35px; margin-bottom: 10px; padding-bottom: 5px; font-size: 20px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" data-id=\"heading-5\" data-pm-slice=\"0 0 []\">\u521b\u5efa\u963f\u91cc\u4e91 YUM \u6e90\u914d\u7f6e\u6587\u4ef6<\/h3>\n<p style=\"line-height: inherit; margin-top: 22px; margin-bottom: 22px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\">\u521b\u5efa\u00a0<code style=\"font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 0.87em; word-break: break-word; border-radius: 2px; overflow-x: auto; background-color: #fff5f5; color: #ff502c; padding: 0.065em 0.4em;\">\/etc\/yum.repos.d\/aliyun-openeuler.repo<\/code>\u00a0\u6587\u4ef6\uff1a<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"bash\"><code>sudo vim \/etc\/yum.repos.d\/aliyun-openeuler.repo<\/code><\/pre>\n<\/section>\n<p><span style=\"color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;\" data-pm-slice=\"0 0 []\">\u586b\u5165\u4ee5\u4e0b\u5185\u5bb9\uff08\u9002\u7528\u4e8e openEuler 22.03 LTS SP4\uff09\uff1a<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"ini\"><code><span class=\"code-snippet__section\">[OS]<\/span><\/code><code><span class=\"code-snippet__attr\">name<\/span>=openEuler-OS<\/code><code><span class=\"code-snippet__attr\">baseurl<\/span>=https:\/\/mirrors.aliyun.com\/openeuler\/openEuler-<span class=\"code-snippet__number\">22.03<\/span>-LTS-SP4\/OS\/<span class=\"code-snippet__variable\">$basearch<\/span>\/<\/code><code><span class=\"code-snippet__attr\">metalink<\/span>=https:\/\/mirrors.aliyun.com\/openeuler\/openEuler-<span class=\"code-snippet__number\">22.03<\/span>-LTS-SP4\/OS\/<span class=\"code-snippet__variable\">$basearch<\/span>\/metalink<\/code><code><span class=\"code-snippet__attr\">enabled<\/span>=<span class=\"code-snippet__number\">1<\/span><\/code><code><span class=\"code-snippet__attr\">gpgcheck<\/span>=<span class=\"code-snippet__number\">1<\/span><\/code><code><span class=\"code-snippet__attr\">gpgkey<\/span>=https:\/\/mirrors.aliyun.com\/openeuler\/openEuler-<span class=\"code-snippet__number\">22.03<\/span>-LTS-SP4\/OS\/<span class=\"code-snippet__variable\">$basearch<\/span>\/RPM-GPG-KEY-openEuler<\/code><code>\r\n<\/code><code><span class=\"code-snippet__section\">[everything]<\/span><\/code><code><span class=\"code-snippet__attr\">name<\/span>=openEuler-everything<\/code><code><span class=\"code-snippet__attr\">baseurl<\/span>=https:\/\/mirrors.aliyun.com\/openeuler\/openEuler-<span class=\"code-snippet__number\">22.03<\/span>-LTS-SP4\/everything\/<span class=\"code-snippet__variable\">$basearch<\/span>\/<\/code><code><span class=\"code-snippet__attr\">metalink<\/span>=https:\/\/mirrors.aliyun.com\/openeuler\/openEuler-<span class=\"code-snippet__number\">22.03<\/span>-LTS-SP4\/everything\/<span class=\"code-snippet__variable\">$basearch<\/span>\/metalink<\/code><code><span class=\"code-snippet__attr\">enabled<\/span>=<span class=\"code-snippet__number\">1<\/span><\/code><code><span class=\"code-snippet__attr\">gpgcheck<\/span>=<span class=\"code-snippet__number\">1<\/span><\/code><code><span class=\"code-snippet__attr\">gpgkey<\/span>=https:\/\/mirrors.aliyun.com\/openeuler\/openEuler-<span class=\"code-snippet__number\">22.03<\/span>-LTS-SP4\/everything\/<span class=\"code-snippet__variable\">$basearch<\/span>\/RPM-GPG-KEY-openEuler<\/code><code>\r\n<\/code><code><span class=\"code-snippet__section\">[EPOL]<\/span><\/code><code><span class=\"code-snippet__attr\">name<\/span>=openEuler-EPOL<\/code><code><span class=\"code-snippet__attr\">baseurl<\/span>=https:\/\/mirrors.aliyun.com\/openeuler\/openEuler-<span class=\"code-snippet__number\">22.03<\/span>-LTS-SP4\/EPOL\/main\/<span class=\"code-snippet__variable\">$basearch<\/span>\/<\/code><code><span class=\"code-snippet__attr\">metalink<\/span>=https:\/\/mirrors.aliyun.com\/openeuler\/openEuler-<span class=\"code-snippet__number\">22.03<\/span>-LTS-SP4\/EPOL\/main\/<span class=\"code-snippet__variable\">$basearch<\/span>\/metalink<\/code><code><span class=\"code-snippet__attr\">enabled<\/span>=<span class=\"code-snippet__number\">1<\/span><\/code><code><span class=\"code-snippet__attr\">gpgcheck<\/span>=<span class=\"code-snippet__number\">1<\/span><\/code><code><span class=\"code-snippet__attr\">gpgkey<\/span>=https:\/\/mirrors.aliyun.com\/openeuler\/openEuler-<span class=\"code-snippet__number\">22.03<\/span>-LTS-SP4\/OS\/<span class=\"code-snippet__variable\">$basearch<\/span>\/RPM-GPG-KEY-openEuler<\/code><code>\r\n<\/code><code><span class=\"code-snippet__section\">[debuginfo]<\/span><\/code><code><span class=\"code-snippet__attr\">name<\/span>=openEuler-debuginfo<\/code><code><span class=\"code-snippet__attr\">baseurl<\/span>=https:\/\/mirrors.aliyun.com\/openeuler\/openEuler-<span class=\"code-snippet__number\">22.03<\/span>-LTS-SP4\/debuginfo\/<span class=\"code-snippet__variable\">$basearch<\/span>\/<\/code><code><span class=\"code-snippet__attr\">metalink<\/span>=https:\/\/mirrors.aliyun.com\/openeuler\/openEuler-<span class=\"code-snippet__number\">22.03<\/span>-LTS-SP4\/debuginfo\/<span class=\"code-snippet__variable\">$basearch<\/span>\/metalink<\/code><code><span class=\"code-snippet__comment\"># \u8c03\u8bd5\u4fe1\u606f\u901a\u5e38\u4e0d\u9700\u8981\uff0c\u53ef\u6309\u9700\u542f\u7528<\/span><\/code><code><span class=\"code-snippet__attr\">enabled<\/span>=<span class=\"code-snippet__number\">0<\/span>\u00a0\u00a0<\/code><code><span class=\"code-snippet__attr\">gpgcheck<\/span>=<span class=\"code-snippet__number\">1<\/span><\/code><code><span class=\"code-snippet__attr\">gpgkey<\/span>=https:\/\/mirrors.aliyun.com\/openeuler\/openEuler-<span class=\"code-snippet__number\">22.03<\/span>-LTS-SP4\/debuginfo\/<span class=\"code-snippet__variable\">$basearch<\/span>\/RPM-GPG-KEY-openEuler<\/code><code>\r\n<\/code><code><span class=\"code-snippet__section\">[source]<\/span><\/code><code><span class=\"code-snippet__attr\">name<\/span>=openEuler-source<\/code><code><span class=\"code-snippet__attr\">baseurl<\/span>=https:\/\/mirrors.aliyun.com\/openeuler\/openEuler-<span class=\"code-snippet__number\">22.03<\/span>-LTS-SP4\/source\/<\/code><code><span class=\"code-snippet__attr\">metalink<\/span>=https:\/\/mirrors.aliyun.com\/openeuler\/openEuler-<span class=\"code-snippet__number\">22.03<\/span>-LTS-SP4\/source\/metalink<\/code><code><span class=\"code-snippet__comment\"># \u6e90\u4ee3\u7801\u901a\u5e38\u4e0d\u9700\u8981\uff0c\u53ef\u6309\u9700\u542f\u7528<\/span><\/code><code><span class=\"code-snippet__attr\">enabled<\/span>=<span class=\"code-snippet__number\">0<\/span>\u00a0\u00a0<\/code><code><span class=\"code-snippet__attr\">gpgcheck<\/span>=<span class=\"code-snippet__number\">1<\/span><\/code><code><span class=\"code-snippet__attr\">gpgkey<\/span>=https:\/\/mirrors.aliyun.com\/openeuler\/openEuler-<span class=\"code-snippet__number\">22.03<\/span>-LTS-SP4\/source\/RPM-GPG-KEY-openEuler<\/code><code>\r\n<\/code><code><span class=\"code-snippet__section\">[update]<\/span><\/code><code><span class=\"code-snippet__attr\">name<\/span>=openEuler-update<\/code><code><span class=\"code-snippet__attr\">baseurl<\/span>=https:\/\/mirrors.aliyun.com\/openeuler\/openEuler-<span class=\"code-snippet__number\">22.03<\/span>-LTS-SP4\/update\/<span class=\"code-snippet__variable\">$basearch<\/span>\/<\/code><code><span class=\"code-snippet__attr\">metalink<\/span>=https:\/\/mirrors.aliyun.com\/openeuler\/openEuler-<span class=\"code-snippet__number\">22.03<\/span>-LTS-SP4\/update\/<span class=\"code-snippet__variable\">$basearch<\/span>\/metalink<\/code><code><span class=\"code-snippet__attr\">enabled<\/span>=<span class=\"code-snippet__number\">1<\/span><\/code><code><span class=\"code-snippet__attr\">gpgcheck<\/span>=<span class=\"code-snippet__number\">1<\/span><\/code><code><span class=\"code-snippet__attr\">gpgkey<\/span>=https:\/\/mirrors.aliyun.com\/openeuler\/openEuler-<span class=\"code-snippet__number\">22.03<\/span>-LTS-SP4\/OS\/<span class=\"code-snippet__variable\">$basearch<\/span>\/RPM-GPG-KEY-openEuler<\/code><code>\r\n<\/code><code><span class=\"code-snippet__section\">[update-source]<\/span><\/code><code><span class=\"code-snippet__attr\">name<\/span>=openEuler-update-source<\/code><code><span class=\"code-snippet__attr\">baseurl<\/span>=https:\/\/mirrors.aliyun.com\/openeuler\/openEuler-<span class=\"code-snippet__number\">22.03<\/span>-LTS-SP4\/update\/source\/<\/code><code><span class=\"code-snippet__attr\">metalink<\/span>=https:\/\/mirrors.aliyun.com\/openeuler\/openEuler-<span class=\"code-snippet__number\">22.03<\/span>-LTS-SP4\/update\/source\/metalink<\/code><code><span class=\"code-snippet__comment\"># \u6e90\u4ee3\u7801\u66f4\u65b0\u901a\u5e38\u4e0d\u9700\u8981\uff0c\u53ef\u6309\u9700\u542f\u7528<\/span><\/code><code><span class=\"code-snippet__attr\">enabled<\/span>=<span class=\"code-snippet__number\">0<\/span>\u00a0\u00a0<\/code><code><span class=\"code-snippet__attr\">gpgcheck<\/span>=<span class=\"code-snippet__number\">1<\/span><\/code><code><span class=\"code-snippet__attr\">gpgkey<\/span>=https:\/\/mirrors.aliyun.com\/openeuler\/openEuler-<span class=\"code-snippet__number\">22.03<\/span>-LTS-SP4\/source\/RPM-GPG-KEY-openEuler<\/code><code>\r\n<\/code><\/pre>\n<\/section>\n<h3 style=\"line-height: 28px; margin-top: 35px; margin-bottom: 10px; padding-bottom: 5px; font-size: 20px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" data-id=\"heading-6\" data-pm-slice=\"0 0 []\">\u6e05\u7406\u5e76\u751f\u6210\u7f13\u5b58<\/h3>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"apache\"><code><span class=\"code-snippet__attribute\">sudo<\/span>\u00a0yum clean\u00a0<span class=\"code-snippet__literal\">all<\/span><\/code><code><span class=\"code-snippet__attribute\">sudo<\/span>\u00a0yum makecache<\/code><\/pre>\n<\/section>\n<h3 style=\"line-height: 28px; margin-top: 35px; margin-bottom: 10px; padding-bottom: 5px; font-size: 20px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" data-id=\"heading-7\" data-pm-slice=\"0 0 []\">\u9a8c\u8bc1\u914d\u7f6e<\/h3>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"nginx\"><code><span class=\"code-snippet__attribute\">sudo<\/span>\u00a0yum repolist<\/code><\/pre>\n<\/section>\n<section><span style=\"color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;\" data-pm-slice=\"0 0 []\">\u6b63\u5e38\u8f93\u51fa\u5e94\u663e\u793a\u963f\u91cc\u4e91\u955c\u50cf\u6e90\u7684\u4ed3\u5e93\u5217\u8868\u3002<\/span><\/section>\n<h2 style=\"line-height: 34px; margin-top: 35px; margin-bottom: 10px; padding-bottom: 12px; font-size: 22px; border-bottom: 1px solid #ececec; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" data-id=\"heading-8\" data-pm-slice=\"0 0 []\">\u4e09\u3001\u5b89\u88c5<strong style=\"font-weight: bold;\">GNU Libtool \u8fd0\u884c\u65f6\u5e93<\/strong><\/h2>\n<h3 style=\"line-height: 28px; margin-top: 35px; margin-bottom: 10px; padding-bottom: 5px; font-size: 20px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" data-id=\"heading-9\"><strong style=\"font-weight: bold;\">\u5b89\u88c5\u00a0<code style=\"font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 0.87em; word-break: break-word; border-radius: 2px; overflow-x: auto; background-color: #fff5f5; color: #ff502c; padding: 0.065em 0.4em;\">libtool-ltdl<\/code><\/strong><\/h3>\n<p style=\"line-height: inherit; margin-top: 22px; margin-bottom: 22px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\"><strong style=\"font-weight: bold;\">\u5b89\u88c5\u8fd0\u884c\u65f6\u5e93<\/strong>\uff1a<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"nginx\"><code><span class=\"code-snippet__attribute\">sudo<\/span>\u00a0yum install -y libtool-ltdl<\/code><\/pre>\n<\/section>\n<section><span style=\"color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;\" data-pm-slice=\"0 0 []\"><strong style=\"font-weight: bold; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" data-pm-slice=\"0 0 []\">\u88c5\u5f00\u53d1\u5e93\uff08\u5982\u9700\u7f16\u8bd1\u4f9d\u8d56\uff09<\/strong><span style=\"color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;\">\uff1a<\/span><\/span><\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"nginx\"><code><span class=\"code-snippet__attribute\">sudo<\/span>\u00a0yum install -y libtool-ltdl-devel<\/code><\/pre>\n<\/section>\n<h3 style=\"line-height: 28px; margin-top: 35px; margin-bottom: 10px; padding-bottom: 5px; font-size: 20px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" data-id=\"heading-10\" data-pm-slice=\"0 0 []\">\u9a8c\u8bc1\u5b89\u88c5<\/h3>\n<p style=\"line-height: inherit; margin-top: 22px; margin-bottom: 22px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\">\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u9a8c\u8bc1\u00a0<code style=\"font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 0.87em; word-break: break-word; border-radius: 2px; overflow-x: auto; background-color: #fff5f5; color: #ff502c; padding: 0.065em 0.4em;\">libtool-ltdl<\/code>\u00a0\u662f\u5426\u6210\u529f\u5b89\u88c5\uff1a<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"bash\"><code><span class=\"code-snippet__comment\"># \u67e5\u770b Libtool \u7248\u672c\uff08\u95f4\u63a5\u9a8c\u8bc1\uff09\u00a0<\/span><\/code><code>ldd --version\u00a0<\/code><code><span class=\"code-snippet__comment\"># \u6216\u76f4\u63a5\u68c0\u67e5\u5e93\u6587\u4ef6\u00a0<\/span><\/code><code><span class=\"code-snippet__built_in\">ls<\/span>\u00a0\/usr\/lib64\/libltdl.so*<\/code><\/pre>\n<\/section>\n<h2 style=\"line-height: 34px; margin-top: 35px; margin-bottom: 10px; padding-bottom: 12px; font-size: 22px; border-bottom: 1px solid #ececec; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" data-id=\"heading-11\" data-pm-slice=\"0 0 []\">\u56db\u3001\u89e3\u538bOpenLDAP<\/h2>\n<h3 style=\"line-height: 28px; margin-top: 35px; margin-bottom: 10px; padding-bottom: 5px; font-size: 20px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" data-id=\"heading-12\" data-pm-slice=\"0 0 []\">\u4e0a\u4f20\u6e90\u7801\u5305 \/opt\/<\/h3>\n<p style=\"line-height: inherit; margin-top: 22px; margin-bottom: 22px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\">\u628a\u4e0b\u8f7d\u7684openldap-2.4.44.tgz\u5b89\u88c5\u5305\u4e0a\u4f20\u5230\u670d\u52a1\u4e2d<\/p>\n<h3 style=\"line-height: 28px; margin-top: 35px; margin-bottom: 10px; padding-bottom: 5px; font-size: 20px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" data-id=\"heading-13\" data-pm-slice=\"0 0 []\">\u89e3\u538b\u6e90\u7801\u5305<\/h3>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"apache\"><code><span class=\"code-snippet__attribute\">tar<\/span>\u00a0-zxvf openldap-<span class=\"code-snippet__number\">2<\/span>.<span class=\"code-snippet__number\">4<\/span>.<span class=\"code-snippet__number\">44<\/span>.tgz<\/code><code><span class=\"code-snippet__attribute\">cd<\/span>\u00a0openldap-<span class=\"code-snippet__number\">2<\/span>.<span class=\"code-snippet__number\">4<\/span>.<span class=\"code-snippet__number\">44<\/span><\/code><\/pre>\n<\/section>\n<h2 style=\"line-height: 34px; margin-top: 35px; margin-bottom: 10px; padding-bottom: 12px; font-size: 22px; border-bottom: 1px solid #ececec; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" data-id=\"heading-14\" data-pm-slice=\"0 0 []\">\u4e94\u3001\u7f16\u8bd1OpenLDAP<\/h2>\n<h3 style=\"line-height: 28px; margin-top: 35px; margin-bottom: 10px; padding-bottom: 5px; font-size: 20px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" data-id=\"heading-15\" data-pm-slice=\"0 0 []\">\u6267\u884c\u7f16\u8bd1\u547d\u4ee4<\/h3>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"bash\"><code>.\/configure --prefix=\/usr\/local\/openLDAP-2.4.44 --enable-modules=<span class=\"code-snippet__built_in\">yes<\/span>\u00a0--enable-rewrite --enable-memberof=<span class=\"code-snippet__built_in\">yes<\/span>\u00a0 --enable-refint=<span class=\"code-snippet__built_in\">yes<\/span>\u00a0--enable-hdb=no --enable-bdb=no --enable-overlays<\/code><code>\r\n<\/code><\/pre>\n<\/section>\n<h4 style=\"line-height: 26px; margin-top: 35px; margin-bottom: 10px; padding-bottom: 5px; font-size: 18px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" data-id=\"heading-16\" data-pm-slice=\"0 0 []\">\u6ce8\u610f\uff1a<\/h4>\n<p style=\"line-height: inherit; margin-top: 22px; margin-bottom: 22px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\">\u7f16\u8bd1\u65f6\u53ef\u4ee5\u4e0d\u7528\u6dfb\u52a0BDB\u6216HDB\u6570\u636e\u5e93\uff0c\u4e0a\u8ff0\u547d\u4ee4\u4e2d\u5df2\u5305\u542b\uff0c\u5177\u4f53\u9700\u8981\u6dfb\u52a0\u5982\u4e0b\u53c2\u6570\uff1a<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"ini\"><code><span class=\"code-snippet__attr\">--enable-hdb<\/span>=<span class=\"code-snippet__literal\">no<\/span>\u00a0--enable-bdb=<span class=\"code-snippet__literal\">no<\/span><\/code><code>\r\n<\/code><\/pre>\n<\/section>\n<h3 style=\"line-height: 28px; margin-top: 35px; margin-bottom: 10px; padding-bottom: 5px; font-size: 20px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" data-id=\"heading-17\" data-pm-slice=\"0 0 []\">\u6267\u884c\u4f9d\u8d56\u68c0\u6d4b\u547d\u4ee4\uff0c\u4f9d\u6b21\u6267\u884c\u4e0b\u8ff0\u547d\u4ee4<\/h3>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"nginx\"><code><span class=\"code-snippet__attribute\">make<\/span>\u00a0depend<\/code><\/pre>\n<\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"go\"><code><span class=\"code-snippet__built_in\">make<\/span><\/code><\/pre>\n<\/section>\n<h3 style=\"line-height: 28px; margin-top: 35px; margin-bottom: 10px; padding-bottom: 5px; font-size: 20px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" data-id=\"heading-18\" data-pm-slice=\"0 0 []\">\u6267\u884c\u6d4b\u8bd5\u547d\u4ee4<\/h3>\n<p style=\"line-height: inherit; margin-top: 22px; margin-bottom: 22px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\">\u8fd9\u4e00\u6b65\u4f1a\u6bd4\u8f83\u8017\u65f6\uff0c\u8010\u5fc3\u7b49\u5f85\u6267\u884c\u5b8c\u6210<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"bash\"><code>make\u00a0<span class=\"code-snippet__built_in\">test<\/span><\/code><\/pre>\n<\/section>\n<h3 style=\"line-height: 28px; margin-top: 35px; margin-bottom: 10px; padding-bottom: 5px; font-size: 20px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" data-id=\"heading-19\" data-pm-slice=\"0 0 []\">\u6267\u884cinstall<\/h3>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"nginx\"><code><span class=\"code-snippet__attribute\">make<\/span>\u00a0install<\/code><\/pre>\n<\/section>\n<h3 style=\"line-height: 28px; margin-top: 35px; margin-bottom: 10px; padding-bottom: 5px; font-size: 20px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" data-id=\"heading-15\" data-pm-slice=\"0 0 []\"><span style=\"color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;\" data-pm-slice=\"0 0 []\">\u8fd9\u4e00\u6b65\u6267\u884c\u6210\u529f\u540e\uff0c\u4f1a\u5728\u2013prefix=\/usr\/local\/openldap-2.4.44 \u547d\u4ee4\u76ee\u5f55\u4e0b\u751f\u6210\u7f16\u8bd1\u540e\u7684\u7a0b\u5e8f\u76ee\u5f55<\/span><\/h3>\n<h2 style=\"line-height: 34px; margin-top: 35px; margin-bottom: 10px; padding-bottom: 12px; font-size: 22px; border-bottom: 1px solid #ececec; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" data-id=\"heading-20\" data-pm-slice=\"0 0 []\">\u516d\u3001\u8bbe\u7f6e\u5feb\u6377\u65b9\u5f0f<\/h2>\n<p style=\"line-height: inherit; margin-top: 22px; margin-bottom: 22px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\">\u5bf9OpenLDAP\u5ba2\u6237\u7aef\uff08bin\uff09\u4e0e\u670d\u52a1\u5668\u7aef\uff08sbin\uff09\u76f8\u5173\u6267\u884c\u6863\u6dfb\u52a0\u8f6f\u94fe\u63a5\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7\u589e\u52a0\u73af\u5883\u53d8\u91cf\u7684\u65b9\u5f0f\u8bbe\u7f6e<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"bash\"><code><span class=\"code-snippet__built_in\">cd<\/span>\u00a0\/usr\/local\/openldap-2.4.44<\/code><code><span class=\"code-snippet__built_in\">ln<\/span>\u00a0-s \/usr\/local\/openldap-2.4.44\/bin\/* \/usr\/local\/bin\/<\/code><code><span class=\"code-snippet__built_in\">ln<\/span>\u00a0-s \/usr\/local\/openldap-2.4.44\/sbin\/* \/usr\/local\/sbin\/<\/code><code>\r\n<\/code><\/pre>\n<\/section>\n<h2 style=\"line-height: 34px; margin-top: 35px; margin-bottom: 10px; padding-bottom: 12px; font-size: 22px; border-bottom: 1px solid #ececec; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" data-id=\"heading-21\" data-pm-slice=\"0 0 []\">\u4e03\u3001\u9a8c\u8bc1<\/h2>\n<h3 style=\"line-height: 28px; margin-top: 35px; margin-bottom: 10px; padding-bottom: 5px; font-size: 20px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" data-id=\"heading-22\">\u751f\u6210\u521d\u59cb\u5bc6\u7801\u5bc6\u94a5<\/h3>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"nginx\"><code><span class=\"code-snippet__attribute\">slappasswd<\/span>\u00a0-s bywx2020<\/code><\/pre>\n<\/section>\n<h3 style=\"line-height: 28px; margin-top: 35px; margin-bottom: 10px; padding-bottom: 5px; font-size: 20px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" data-id=\"heading-15\" data-pm-slice=\"0 0 []\"><span style=\"color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;\" data-pm-slice=\"0 0 []\">{SSHA}bd3Fb\/vIKXjavSwAA8iYsaHTeC8zwOUM\u5c31\u662f\u52a0\u5bc6\u540e\u751f\u6210\u7684\u5bc6\u94a5<\/span><\/h3>\n<h3 style=\"line-height: 28px; margin-top: 35px; margin-bottom: 10px; padding-bottom: 5px; font-size: 20px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" data-id=\"heading-23\" data-pm-slice=\"0 0 []\">\u4fee\u6539\u914d\u7f6e\u6587\u4ef6slapd.conf<\/h3>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"apache\"><code><span class=\"code-snippet__attribute\">vim<\/span>\u00a0\/usr\/local\/openldap-<span class=\"code-snippet__number\">2<\/span>.<span class=\"code-snippet__number\">4<\/span>.<span class=\"code-snippet__number\">44<\/span>\/etc\/openldap\/slapd.conf<\/code><\/pre>\n<\/section>\n<h3 style=\"line-height: 28px; margin-top: 35px; margin-bottom: 10px; padding-bottom: 5px; font-size: 20px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" data-id=\"heading-15\" data-pm-slice=\"0 0 []\"><span style=\"color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;\" data-pm-slice=\"0 0 []\">\u8ffd\u52a0\u5982\u4e0b\u5185\u5bb9\uff1a<\/span><\/h3>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"apache\"><code><span class=\"code-snippet__comment\">#schema\u9ed8\u8ba4\u53ea\u6709core.schema\uff0c\u5404\u7ea7\u9700\u8981\u6dfb\u52a0\uff0c\u8fd9\u91cc\u5c06\u540c\u914d\u7f6e\u6587\u4ef6\u4e00\u4e2a\u76ee\u5f55\u7684schema\u76ee\u5f55\u4e2d\u6709\u7684schema\u6587\u4ef6\u90fd\u52a0\u5230\u914d\u7f6e\u6587\u4ef6\u4e2d;<\/span><\/code><code><span class=\"code-snippet__attribute\">include<\/span>\u00a0\/usr\/local\/openldap-<span class=\"code-snippet__number\">2<\/span>.<span class=\"code-snippet__number\">4<\/span>.<span class=\"code-snippet__number\">44<\/span>\/etc\/openldap\/schema\/collective.schema<\/code><code><span class=\"code-snippet__attribute\">include<\/span>\u00a0\/usr\/local\/openldap-<span class=\"code-snippet__number\">2<\/span>.<span class=\"code-snippet__number\">4<\/span>.<span class=\"code-snippet__number\">44<\/span>\/etc\/openldap\/schema\/corba.schema<\/code><code><span class=\"code-snippet__attribute\">include<\/span>\u00a0\/usr\/local\/openldap-<span class=\"code-snippet__number\">2<\/span>.<span class=\"code-snippet__number\">4<\/span>.<span class=\"code-snippet__number\">44<\/span>\/etc\/openldap\/schema\/cosine.schema<\/code><code><span class=\"code-snippet__attribute\">include<\/span>\u00a0\/usr\/local\/openldap-<span class=\"code-snippet__number\">2<\/span>.<span class=\"code-snippet__number\">4<\/span>.<span class=\"code-snippet__number\">44<\/span>\/etc\/openldap\/schema\/duaconf.schema<\/code><code><span class=\"code-snippet__attribute\">include<\/span>\u00a0\/usr\/local\/openldap-<span class=\"code-snippet__number\">2<\/span>.<span class=\"code-snippet__number\">4<\/span>.<span class=\"code-snippet__number\">44<\/span>\/etc\/openldap\/schema\/dyngroup.schema<\/code><code><span class=\"code-snippet__attribute\">include<\/span>\u00a0\/usr\/local\/openldap-<span class=\"code-snippet__number\">2<\/span>.<span class=\"code-snippet__number\">4<\/span>.<span class=\"code-snippet__number\">44<\/span>\/etc\/openldap\/schema\/inetorgperson.schema<\/code><code><span class=\"code-snippet__attribute\">include<\/span>\u00a0\/usr\/local\/openldap-<span class=\"code-snippet__number\">2<\/span>.<span class=\"code-snippet__number\">4<\/span>.<span class=\"code-snippet__number\">44<\/span>\/etc\/openldap\/schema\/java.schema<\/code><code><span class=\"code-snippet__attribute\">include<\/span>\u00a0\/usr\/local\/openldap-<span class=\"code-snippet__number\">2<\/span>.<span class=\"code-snippet__number\">4<\/span>.<span class=\"code-snippet__number\">44<\/span>\/etc\/openldap\/schema\/misc.schema<\/code><code><span class=\"code-snippet__attribute\">include<\/span>\u00a0\/usr\/local\/openldap-<span class=\"code-snippet__number\">2<\/span>.<span class=\"code-snippet__number\">4<\/span>.<span class=\"code-snippet__number\">44<\/span>\/etc\/openldap\/schema\/nis.schema<\/code><code><span class=\"code-snippet__attribute\">include<\/span>\u00a0\/usr\/local\/openldap-<span class=\"code-snippet__number\">2<\/span>.<span class=\"code-snippet__number\">4<\/span>.<span class=\"code-snippet__number\">44<\/span>\/etc\/openldap\/schema\/openldap.schema<\/code><code><span class=\"code-snippet__attribute\">include<\/span>\u00a0\/usr\/local\/openldap-<span class=\"code-snippet__number\">2<\/span>.<span class=\"code-snippet__number\">4<\/span>.<span class=\"code-snippet__number\">44<\/span>\/etc\/openldap\/schema\/pmi.schema<\/code><code><span class=\"code-snippet__attribute\">include<\/span>\u00a0\/usr\/local\/openldap-<span class=\"code-snippet__number\">2<\/span>.<span class=\"code-snippet__number\">4<\/span>.<span class=\"code-snippet__number\">44<\/span>\/etc\/openldap\/schema\/ppolicy.schema<\/code><code>\r\n<\/code><\/pre>\n<\/section>\n<h3 style=\"line-height: 28px; margin-top: 35px; margin-bottom: 10px; padding-bottom: 5px; font-size: 20px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" data-id=\"heading-15\" data-pm-slice=\"0 0 []\"><span style=\"color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;\" data-pm-slice=\"0 0 []\">\u8ffd\u52a0\u65e5\u5fd7\u6587\u4ef6\u7ea7\u522b\u4e0e\u8def\u5f84<\/span><\/h3>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"apache\"><code><span class=\"code-snippet__attribute\">loglevel<\/span>\u00a0<span class=\"code-snippet__number\">256<\/span>\u00a0<\/code><code><span class=\"code-snippet__attribute\">logfile<\/span>\u00a0\/usr\/local\/openldap-<span class=\"code-snippet__number\">2<\/span>.<span class=\"code-snippet__number\">4<\/span>.<span class=\"code-snippet__number\">44<\/span>\/var\/slapd.log<\/code><\/pre>\n<\/section>\n<h3 style=\"line-height: 28px; margin-top: 35px; margin-bottom: 10px; padding-bottom: 5px; font-size: 20px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" data-id=\"heading-15\" data-pm-slice=\"0 0 []\"><span style=\"color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;\" data-pm-slice=\"0 0 []\"><span style=\"color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;\" data-pm-slice=\"0 0 []\">\u4fee\u6539\u57df\u540d\u53ca\u7ba1\u7406\u5458\u8d26\u6237\u540d;<\/span><\/span><\/h3>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"nginx\"><code><span class=\"code-snippet__attribute\">suffix<\/span>\u00a0\u201cdc=demo,dc=com\u201d\u00a0<\/code><code>rootdn \u201ccn=admin,dc=demo,dc=com\u201d<\/code><\/pre>\n<\/section>\n<h3 style=\"line-height: 28px; margin-top: 35px; margin-bottom: 10px; padding-bottom: 5px; font-size: 20px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" data-id=\"heading-15\" data-pm-slice=\"0 0 []\"><span style=\"color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;\" data-pm-slice=\"0 0 []\"><span style=\"color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;\" data-pm-slice=\"0 0 []\">\u4fee\u6539\u5bc6\u7801\uff0c\u4f7f\u7528\u524d\u9762slappasswd\u751f\u6210\u7684\u5bc6\u6587\u6216\u660e\u6587\u5bc6\u7801<\/span><\/span><\/h3>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"\"><code>rootpw\t\t{SSHA}P4BlRK+eYi234rwWWsYc9ziURbqWXh9B<\/code><\/pre>\n<\/section>\n<h3 style=\"line-height: 28px; margin-top: 35px; margin-bottom: 10px; padding-bottom: 5px; font-size: 20px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" data-id=\"heading-15\" data-pm-slice=\"0 0 []\"><span style=\"color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;\" data-pm-slice=\"0 0 []\"><span style=\"color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;\" data-pm-slice=\"0 0 []\">\u5b8c\u6574\u793a\u4f8b<\/span><\/span><\/h3>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"apache\"><code><span class=\"code-snippet__comment\">#<\/span><\/code><code><span class=\"code-snippet__comment\"># See slapd.conf(5) for details on configuration options.<\/span><\/code><code><span class=\"code-snippet__comment\"># This file should NOT be world readable.<\/span><\/code><code><span class=\"code-snippet__comment\">#<\/span><\/code><code><span class=\"code-snippet__attribute\">include<\/span>\t\t\/usr\/local\/openldap-<span class=\"code-snippet__number\">2<\/span>.<span class=\"code-snippet__number\">4<\/span>.<span class=\"code-snippet__number\">44<\/span>\/etc\/openldap\/schema\/core.schema<\/code><code>\r\n<\/code><code><span class=\"code-snippet__comment\"># Define global ACLs to disable default read access.<\/span><\/code><code>\r\n<\/code><code><span class=\"code-snippet__comment\"># Do not enable referrals until AFTER you have a working directory<\/span><\/code><code><span class=\"code-snippet__comment\"># service AND an understanding of referrals.<\/span><\/code><code><span class=\"code-snippet__comment\">#referral\tldap:\/\/root.openldap.org<\/span><\/code><code>\r\n<\/code><code><span class=\"code-snippet__attribute\">pidfile<\/span>\t\t\/usr\/local\/openldap-<span class=\"code-snippet__number\">2<\/span>.<span class=\"code-snippet__number\">4<\/span>.<span class=\"code-snippet__number\">44<\/span>\/var\/run\/slapd.pid<\/code><code><span class=\"code-snippet__attribute\">argsfile<\/span>\t\/usr\/local\/openldap-<span class=\"code-snippet__number\">2<\/span>.<span class=\"code-snippet__number\">4<\/span>.<span class=\"code-snippet__number\">44<\/span>\/var\/run\/slapd.args<\/code><code>\r\n<\/code><code><span class=\"code-snippet__comment\"># Load dynamic backend modules:<\/span><\/code><code><span class=\"code-snippet__comment\"># modulepath\t\/usr\/local\/openldap-2.4.44\/libexec\/openldap<\/span><\/code><code><span class=\"code-snippet__comment\"># moduleload\tback_mdb.la<\/span><\/code><code><span class=\"code-snippet__comment\"># moduleload\tback_ldap.la<\/span><\/code><code>\r\n<\/code><code><span class=\"code-snippet__comment\"># Sample security restrictions<\/span><\/code><code><span class=\"code-snippet__comment\">#\tRequire integrity protection (prevent hijacking)<\/span><\/code><code><span class=\"code-snippet__comment\">#\tRequire 112-bit (3DES or better) encryption for updates<\/span><\/code><code><span class=\"code-snippet__comment\">#\tRequire 63-bit encryption for simple bind<\/span><\/code><code><span class=\"code-snippet__comment\"># security ssf=1 update_ssf=112 simple_bind=64<\/span><\/code><code>\r\n<\/code><code><span class=\"code-snippet__comment\"># Sample access control policy:<\/span><\/code><code><span class=\"code-snippet__comment\">#\tRoot DSE: allow anyone to read it<\/span><\/code><code><span class=\"code-snippet__comment\">#\tSubschema (sub)entry DSE: allow anyone to read it<\/span><\/code><code><span class=\"code-snippet__comment\">#\tOther DSEs:<\/span><\/code><code><span class=\"code-snippet__comment\">#\t\tAllow self write access<\/span><\/code><code><span class=\"code-snippet__comment\">#\t\tAllow authenticated users read access<\/span><\/code><code><span class=\"code-snippet__comment\">#\t\tAllow anonymous users to authenticate<\/span><\/code><code><span class=\"code-snippet__comment\">#\tDirectives needed to implement policy:<\/span><\/code><code><span class=\"code-snippet__comment\"># access to dn.base=\"\" by * read<\/span><\/code><code><span class=\"code-snippet__comment\"># access to dn.base=\"cn=Subschema\" by * read<\/span><\/code><code><span class=\"code-snippet__comment\"># access to *<\/span><\/code><code><span class=\"code-snippet__comment\">#\tby self write<\/span><\/code><code><span class=\"code-snippet__comment\">#\tby users read<\/span><\/code><code><span class=\"code-snippet__comment\">#\tby anonymous auth<\/span><\/code><code><span class=\"code-snippet__comment\">#<\/span><\/code><code><span class=\"code-snippet__comment\"># if no access controls are present, the default policy<\/span><\/code><code><span class=\"code-snippet__comment\"># allows anyone and everyone to read anything but restricts<\/span><\/code><code><span class=\"code-snippet__comment\"># updates to rootdn. \u00a0(e.g., \"access to * by * read\")<\/span><\/code><code><span class=\"code-snippet__comment\">#<\/span><\/code><code><span class=\"code-snippet__comment\"># rootdn can always read and write EVERYTHING!<\/span><\/code><code>\r\n<\/code><code><span class=\"code-snippet__comment\">#######################################################################<\/span><\/code><code><span class=\"code-snippet__comment\"># MDB database definitions<\/span><\/code><code><span class=\"code-snippet__comment\">#######################################################################<\/span><\/code><code>\r\n<\/code><code><span class=\"code-snippet__attribute\">database<\/span>\tmdb<\/code><code><span class=\"code-snippet__attribute\">maxsize1073741824<\/span><\/code><code><span class=\"code-snippet__attribute\">suffix<\/span><span class=\"code-snippet__string\">\"dc=demo,dc=com\"<\/span><\/code><code><span class=\"code-snippet__attribute\">rootdn<\/span><span class=\"code-snippet__string\">\"cn=admin,dc=demo,dc=com\"<\/span><\/code><code><span class=\"code-snippet__comment\"># Cleartext passwords, especially for the rootdn, should<\/span><\/code><code><span class=\"code-snippet__comment\"># be avoid. \u00a0See slappasswd(8) and slapd.conf(5) for details.<\/span><\/code><code><span class=\"code-snippet__comment\"># Use of strong authentication encouraged.<\/span><\/code><code><span class=\"code-snippet__attribute\">rootpw<\/span>\t\t{SSHA}P4BlRK+eYi234rwWWsYc9ziURbqWXh9B<\/code><code><span class=\"code-snippet__comment\"># The database directory MUST exist prior to running slapd AND\u00a0<\/span><\/code><code><span class=\"code-snippet__comment\"># should only be accessible by the slapd and slap tools.<\/span><\/code><code><span class=\"code-snippet__comment\"># Mode 700 recommended.<\/span><\/code><code><span class=\"code-snippet__attribute\">directory<\/span>\t\/usr\/local\/openldap-<span class=\"code-snippet__number\">2<\/span>.<span class=\"code-snippet__number\">4<\/span>.<span class=\"code-snippet__number\">44<\/span>\/var\/openldap-data<\/code><code><span class=\"code-snippet__comment\"># Indices to maintain<\/span><\/code><code><span class=\"code-snippet__attribute\">index<\/span>\tobjectClass\teq<\/code><code>\r\n<\/code><code>\r\n<\/code><code><span class=\"code-snippet__comment\">#schema\u9ed8\u8ba4\u53ea\u6709core.schema\uff0c\u5404\u7ea7\u9700\u8981\u6dfb\u52a0\uff0c\u8fd9\u91cc\u5c06\u540c\u914d\u7f6e\u6587\u4ef6\u4e00\u4e2a\u76ee\u5f55\u7684schema\u76ee\u5f55\u4e2d\u6709\u7684schema\u6587\u4ef6\u90fd\u52a0\u5230\u914d\u7f6e\u6587\u4ef6\u4e2d;<\/span><\/code><code><span class=\"code-snippet__attribute\">include<\/span>\u00a0\/usr\/local\/openldap-<span class=\"code-snippet__number\">2<\/span>.<span class=\"code-snippet__number\">4<\/span>.<span class=\"code-snippet__number\">44<\/span>\/etc\/openldap\/schema\/collective.schema<\/code><code><span class=\"code-snippet__attribute\">include<\/span>\u00a0\/usr\/local\/openldap-<span class=\"code-snippet__number\">2<\/span>.<span class=\"code-snippet__number\">4<\/span>.<span class=\"code-snippet__number\">44<\/span>\/etc\/openldap\/schema\/corba.schema<\/code><code><span class=\"code-snippet__attribute\">include<\/span>\u00a0\/usr\/local\/openldap-<span class=\"code-snippet__number\">2<\/span>.<span class=\"code-snippet__number\">4<\/span>.<span class=\"code-snippet__number\">44<\/span>\/etc\/openldap\/schema\/cosine.schema<\/code><code><span class=\"code-snippet__attribute\">include<\/span>\u00a0\/usr\/local\/openldap-<span class=\"code-snippet__number\">2<\/span>.<span class=\"code-snippet__number\">4<\/span>.<span class=\"code-snippet__number\">44<\/span>\/etc\/openldap\/schema\/duaconf.schema<\/code><code><span class=\"code-snippet__attribute\">include<\/span>\u00a0\/usr\/local\/openldap-<span class=\"code-snippet__number\">2<\/span>.<span class=\"code-snippet__number\">4<\/span>.<span class=\"code-snippet__number\">44<\/span>\/etc\/openldap\/schema\/dyngroup.schema<\/code><code><span class=\"code-snippet__attribute\">include<\/span>\u00a0\/usr\/local\/openldap-<span class=\"code-snippet__number\">2<\/span>.<span class=\"code-snippet__number\">4<\/span>.<span class=\"code-snippet__number\">44<\/span>\/etc\/openldap\/schema\/inetorgperson.schema<\/code><code><span class=\"code-snippet__attribute\">include<\/span>\u00a0\/usr\/local\/openldap-<span class=\"code-snippet__number\">2<\/span>.<span class=\"code-snippet__number\">4<\/span>.<span class=\"code-snippet__number\">44<\/span>\/etc\/openldap\/schema\/java.schema<\/code><code><span class=\"code-snippet__attribute\">include<\/span>\u00a0\/usr\/local\/openldap-<span class=\"code-snippet__number\">2<\/span>.<span class=\"code-snippet__number\">4<\/span>.<span class=\"code-snippet__number\">44<\/span>\/etc\/openldap\/schema\/misc.schema<\/code><code><span class=\"code-snippet__attribute\">include<\/span>\u00a0\/usr\/local\/openldap-<span class=\"code-snippet__number\">2<\/span>.<span class=\"code-snippet__number\">4<\/span>.<span class=\"code-snippet__number\">44<\/span>\/etc\/openldap\/schema\/nis.schema<\/code><code><span class=\"code-snippet__attribute\">include<\/span>\u00a0\/usr\/local\/openldap-<span class=\"code-snippet__number\">2<\/span>.<span class=\"code-snippet__number\">4<\/span>.<span class=\"code-snippet__number\">44<\/span>\/etc\/openldap\/schema\/openldap.schema<\/code><code><span class=\"code-snippet__attribute\">include<\/span>\u00a0\/usr\/local\/openldap-<span class=\"code-snippet__number\">2<\/span>.<span class=\"code-snippet__number\">4<\/span>.<span class=\"code-snippet__number\">44<\/span>\/etc\/openldap\/schema\/pmi.schema<\/code><code><span class=\"code-snippet__attribute\">include<\/span>\u00a0\/usr\/local\/openldap-<span class=\"code-snippet__number\">2<\/span>.<span class=\"code-snippet__number\">4<\/span>.<span class=\"code-snippet__number\">44<\/span>\/etc\/openldap\/schema\/ppolicy.schema<\/code><code>\r\n<\/code><code><span class=\"code-snippet__attribute\">loglevel<\/span>\u00a0 \u00a0\u00a0<span class=\"code-snippet__number\">256<\/span><\/code><code><span class=\"code-snippet__attribute\">logfile<\/span>\u00a0 \u00a0 \/usr\/local\/openldap-<span class=\"code-snippet__number\">2<\/span>.<span class=\"code-snippet__number\">4<\/span>.<span class=\"code-snippet__number\">44<\/span>\/var\/slapd.log<\/code><code>\r\n<\/code><\/pre>\n<\/section>\n<h4 style=\"line-height: 26px; margin-top: 35px; margin-bottom: 10px; padding-bottom: 5px; font-size: 18px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" data-id=\"heading-24\" data-pm-slice=\"0 0 []\">\u5efa\u7acbopenldap-data\u76ee\u5f55<\/h4>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"bash\"><code><span class=\"code-snippet__built_in\">cd<\/span>\u00a0\/usr\/local\/openldap-2.4.44\/var\/<\/code><code><span class=\"code-snippet__built_in\">mkdir<\/span>\u00a0openldap-data<\/code><\/pre>\n<\/section>\n<h2 style=\"line-height: 34px; margin-top: 35px; margin-bottom: 10px; padding-bottom: 12px; font-size: 22px; border-bottom: 1px solid #ececec; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" data-id=\"heading-25\" data-pm-slice=\"0 0 []\">\u516b\u3001\u542f\u52a8OpenLDAP<\/h2>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"bash\"><code>\/usr\/local\/openldap-2.4.44\/libexec\/slapd -d 256<\/code><\/pre>\n<\/section>\n<h3 style=\"line-height: 28px; margin-top: 35px; margin-bottom: 10px; padding-bottom: 5px; font-size: 20px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" data-id=\"heading-15\" data-pm-slice=\"0 0 []\"><span style=\"color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;\" data-pm-slice=\"0 0 []\"><span style=\"color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;\" data-pm-slice=\"0 0 []\">\u9a8c\u8bc1openldap\u670d\u52a1\u662f\u5426\u6b63\u5e38\u542f\u52a8<\/span><\/span><\/h3>\n<h3 style=\"line-height: 28px; margin-top: 35px; margin-bottom: 10px; padding-bottom: 5px; font-size: 20px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" data-id=\"heading-15\" data-pm-slice=\"0 0 []\"><span style=\"color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;\" data-pm-slice=\"0 0 []\"><span style=\"white-space: pre-wrap; color: #333333; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #f8f8f8; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;\" data-pm-slice=\"0 0 []\">ldapsearch -x -b\u00a0<\/span><span style=\"white-space: pre-wrap; color: #dd1144; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\">&#8221;<\/span><span style=\"white-space: pre-wrap; color: #333333; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #f8f8f8; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;\">\u00a0-s\u00a0<\/span><span style=\"white-space: pre-wrap; color: #333333; font-weight: bold; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\">base<\/span><span style=\"white-space: pre-wrap; color: #dd1144; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\">&#8216;(objectclass=*)&#8217;<\/span><\/span><\/h3>\n<h3 style=\"line-height: 28px; margin-top: 35px; margin-bottom: 10px; padding-bottom: 5px; font-size: 20px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" data-id=\"heading-15\" data-pm-slice=\"0 0 []\"><span style=\"color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;\" data-pm-slice=\"0 0 []\"><span style=\"color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;\" data-pm-slice=\"0 0 []\">\u770b\u5230\u5982\u4e0b\u8f93\u51fa\uff0c\u5219\u8bf4\u660eopenldap\u542f\u52a8\u6210\u529f\uff0c\u4e14\u53ef\u4ee5\u6b63\u5e38\u4f7f\u7528\uff1a<\/span><\/span><\/h3>\n<section style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1720\" src=\"https:\/\/www.o6s.net\/wp-content\/uploads\/2026\/01\/640-02a3eeea-1.png\" width=\"431\" height=\"401\" srcset=\"https:\/\/www.o6s.net\/wp-content\/uploads\/2026\/01\/640-02a3eeea-1.png 431w, https:\/\/www.o6s.net\/wp-content\/uploads\/2026\/01\/640-02a3eeea-1-300x279.png 300w\" sizes=\"auto, (max-width: 431px) 100vw, 431px\" \/><\/section>\n<h2 data-id=\"heading-26\" data-pm-slice=\"0 0 []\">\u4e5d\u3001\u81ea\u542f\u52a8<\/h2>\n<h3 data-id=\"heading-27\">\u521b\u5efa Systemd \u670d\u52a1\u6587\u4ef6<\/h3>\n<p>OpenLDAP \u7684 Systemd \u670d\u52a1\u6587\u4ef6\u9700\u624b\u52a8\u521b\u5efa\uff08\u9ed8\u8ba4\u65e0\u5b98\u65b9\u670d\u52a1\u6587\u4ef6\uff09\uff0c\u8def\u5f84\u5efa\u8bae\u4e3a\u00a0<code>\/etc\/systemd\/system\/slapd.service<\/code>\uff08\u7cfb\u7edf\u7ea7\u670d\u52a1\uff09\u6216\u00a0<code>~\/.config\/systemd\/user\/slapd.service<\/code>\uff08\u7528\u6237\u7ea7\u670d\u52a1\uff0c\u4e0d\u63a8\u8350\uff09\u3002<\/p>\n<p><strong style=\"font-weight: bold; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\">\u64cd\u4f5c\u547d\u4ee4<\/strong><span style=\"color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;\">\uff1a<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"swift\"><code>sudo vim\u00a0<span class=\"code-snippet__regexp\">\/etc\/<\/span>systemd<span class=\"code-snippet__regexp\">\/system\/<\/span>slapd.service<\/code><\/pre>\n<\/section>\n<h4 style=\"line-height: 26px; margin-top: 35px; margin-bottom: 10px; padding-bottom: 5px; font-size: 18px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" data-id=\"heading-28\" data-pm-slice=\"0 0 []\">\u540e\u53f0\u542f\u52a8 OpenLDAP \u7684\u8be6\u7ec6\u6b65\u9aa4\uff08\u4ee5 Systemd \u670d\u52a1\u4e3a\u4f8b\uff09<\/h4>\n<p style=\"line-height: inherit; margin-top: 22px; margin-bottom: 22px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\">\u5728 Linux \u7cfb\u7edf\u4e2d\uff0c\u5c06 OpenLDAP \u4f5c\u4e3a\u540e\u53f0\u670d\u52a1\u8fd0\u884c\u63a8\u8350\u4f7f\u7528\u00a0<strong style=\"font-weight: bold;\">Systemd<\/strong>\u00a0\u7ba1\u7406\uff0c\u53ef\u5b9e\u73b0\u5f00\u673a\u81ea\u542f\u3001\u72b6\u6001\u76d1\u63a7\u7b49\u4fbf\u6377\u64cd\u4f5c\u3002\u4ee5\u4e0b\u662f\u5177\u4f53\u6b65\u9aa4\uff1a<\/p>\n<h5 data-id=\"heading-29\" data-pm-slice=\"0 0 []\">\u521b\u5efa Systemd \u670d\u52a1\u6587\u4ef6<\/h5>\n<p>OpenLDAP \u7684 Systemd \u670d\u52a1\u6587\u4ef6\u9700\u624b\u52a8\u521b\u5efa\uff08\u9ed8\u8ba4\u65e0\u5b98\u65b9\u670d\u52a1\u6587\u4ef6\uff09\uff0c\u8def\u5f84\u5efa\u8bae\u4e3a\u00a0<code>\/etc\/systemd\/system\/slapd.service<\/code>\uff08\u7cfb\u7edf\u7ea7\u670d\u52a1\uff09\u6216\u00a0<code>~\/.config\/systemd\/user\/slapd.service<\/code>\uff08\u7528\u6237\u7ea7\u670d\u52a1\uff0c\u4e0d\u63a8\u8350\uff09\u3002<\/p>\n<p><strong>\u64cd\u4f5c\u547d\u4ee4<\/strong>\uff1a<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"swift\"><code>sudo vim\u00a0<span class=\"code-snippet__regexp\">\/etc\/<\/span>systemd<span class=\"code-snippet__regexp\">\/system\/<\/span>slapd.service<\/code><\/pre>\n<\/section>\n<h5 style=\"line-height: 24px; margin-top: 35px; margin-bottom: 10px; padding-bottom: 5px; font-size: 17px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" data-id=\"heading-30\" data-pm-slice=\"0 0 []\">\u914d\u7f6e\u670d\u52a1\u6587\u4ef6\u5185\u5bb9<\/h5>\n<p style=\"line-height: inherit; margin-top: 22px; margin-bottom: 22px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\">\u6839\u636e OpenLDAP \u7684\u5b89\u88c5\u8def\u5f84\u548c\u914d\u7f6e\u6587\u4ef6\u4f4d\u7f6e\uff0c\u586b\u5199\u4ee5\u4e0b\u5185\u5bb9\uff08\u9700\u6839\u636e\u5b9e\u9645\u8def\u5f84\u8c03\u6574\uff09\uff1a<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"ini\"><code><span class=\"code-snippet__section\">[Unit]<\/span><\/code><code><span class=\"code-snippet__attr\">Description<\/span>=OpenLDAP Server<\/code><code><span class=\"code-snippet__attr\">After<\/span>=network.target \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span class=\"code-snippet__comment\"># \u4f9d\u8d56\u7f51\u7edc\u542f\u52a8\u5b8c\u6210<\/span><\/code><code><span class=\"code-snippet__attr\">Documentation<\/span>=man:slapd(<span class=\"code-snippet__number\">8<\/span>)<\/code><code>\r\n<\/code><code><span class=\"code-snippet__section\">[Service]<\/span><\/code><code><span class=\"code-snippet__attr\">Type<\/span>=forking \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span class=\"code-snippet__comment\"># \u540e\u53f0\u5b88\u62a4\u8fdb\u7a0b\u6a21\u5f0f<\/span><\/code><code><span class=\"code-snippet__comment\">#User=ldap \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 # \u8fd0\u884c LDAP \u670d\u52a1\u7684\u7528\u6237\uff08\u9700\u63d0\u524d\u521b\u5efa\uff09<\/span><\/code><code><span class=\"code-snippet__comment\">#Group=ldap \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0# \u8fd0\u884c LDAP \u670d\u52a1\u7684\u7ec4\uff08\u9700\u63d0\u524d\u521b\u5efa\uff09<\/span><\/code><code><span class=\"code-snippet__comment\">#ExecStart=\/usr\/local\/openldap-2.4.44\/libexec\/slapd -f \/usr\/local\/openldap-2.4.44\/etc\/openldap\/slapd.conf -h \"ldap:\/\/\/ ldaps:\/\/\/\" -d 0<\/span><\/code><code><span class=\"code-snippet__attr\">ExecStart<\/span>=\/usr\/local\/openldap-<span class=\"code-snippet__number\">2.4<\/span>.<span class=\"code-snippet__number\">44<\/span>\/libexec\/slapd -d\u00a0<span class=\"code-snippet__number\">256<\/span><\/code><code><span class=\"code-snippet__attr\">ExecStop<\/span>=\/usr\/local\/openldap-<span class=\"code-snippet__number\">2.4<\/span>.<span class=\"code-snippet__number\">44<\/span>\/libexec\/slapd -k stop<\/code><code>\u00a0\u00a0<span class=\"code-snippet__comment\"># \u505c\u6b62\u547d\u4ee4<\/span><\/code><code><span class=\"code-snippet__attr\">Restart<\/span>=<span class=\"code-snippet__literal\">on<\/span>-failure \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span class=\"code-snippet__comment\"># \u5931\u8d25\u540e\u81ea\u52a8\u91cd\u542f<\/span><\/code><code><span class=\"code-snippet__attr\">RestartSec<\/span>=<span class=\"code-snippet__number\">5<\/span>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0<span class=\"code-snippet__comment\"># \u91cd\u542f\u95f4\u9694\uff085\u79d2\uff09<\/span><\/code><code><span class=\"code-snippet__attr\">WorkingDirectory<\/span>=\/usr\/local\/openldap-<span class=\"code-snippet__number\">2.4<\/span>.<span class=\"code-snippet__number\">44<\/span>\/var\/openldap-data<\/code><code>\u00a0\u00a0<span class=\"code-snippet__comment\"># LDAP \u6570\u636e\u5e93\u5b58\u50a8\u76ee\u5f55\uff08\u6839\u636e\u5b9e\u9645\u8def\u5f84\u8c03\u6574\uff09<\/span><\/code><code>\r\n<\/code><code><span class=\"code-snippet__comment\"># \u53ef\u9009\uff1a\u9650\u5236\u8d44\u6e90\uff08\u5982\u5185\u5b58\u3001CPU\uff09<\/span><\/code><code><span class=\"code-snippet__comment\"># LimitMEMLOCK=infinity<\/span><\/code><code><span class=\"code-snippet__comment\"># LimitNOFILE=65536<\/span><\/code><code>\r\n<\/code><code><span class=\"code-snippet__section\">[Install]<\/span><\/code><code><span class=\"code-snippet__attr\">WantedBy<\/span>=multi-user.target \u00a0 \u00a0<span class=\"code-snippet__comment\"># \u591a\u7528\u6237\u6a21\u5f0f\u4e0b\u542f\u52a8<\/span><\/code><code>\r\n<\/code><\/pre>\n<\/section>\n<p>&nbsp;<\/p>\n<h5 style=\"line-height: 24px; margin-top: 35px; margin-bottom: 10px; padding-bottom: 5px; font-size: 17px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" data-id=\"heading-31\" data-pm-slice=\"0 0 []\"><strong style=\"font-weight: bold;\">\u5173\u952e\u53c2\u6570\u8bf4\u660e<\/strong><\/h5>\n<ul class=\"list-paddingleft-1\" style=\"padding: 0px 0px 0px 28px; margin: 0px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\">\n<li style=\"list-style: inherit; margin-bottom: 0px;\">\n<p style=\"line-height: inherit; margin-top: 22px; margin-bottom: 22px;\"><code style=\"font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 0.87em; word-break: break-word; border-radius: 2px; overflow-x: auto; background-color: #fff5f5; color: #ff502c; padding: 0.065em 0.4em;\">User<\/code>\u00a0\u548c\u00a0<code style=\"font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 0.87em; word-break: break-word; border-radius: 2px; overflow-x: auto; background-color: #fff5f5; color: #ff502c; padding: 0.065em 0.4em;\">Group<\/code>\uff1a\u5efa\u8bae\u521b\u5efa\u4e13\u7528\u7528\u6237\u00a0<code style=\"font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 0.87em; word-break: break-word; border-radius: 2px; overflow-x: auto; background-color: #fff5f5; color: #ff502c; padding: 0.065em 0.4em;\">ldap<\/code>\u00a0\u8fd0\u884c\u670d\u52a1\uff08\u907f\u514d\u4ee5 root \u8fd0\u884c\uff09\uff0c\u547d\u4ee4\uff1a<\/p>\n<\/li>\n<\/ul>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"bash\"><code>sudo useradd -r -s \/sbin\/nologin ldap \u00a0<span class=\"code-snippet__comment\"># \u521b\u5efa\u7cfb\u7edf\u7528\u6237\uff08\u65e0\u767b\u5f55\u6743\u9650\uff09<\/span><\/code><code>sudo groupadd ldap \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0<span class=\"code-snippet__comment\"># \u521b\u5efa\u7528\u6237\u7ec4\uff08\u82e5\u4e0d\u5b58\u5728\uff09<\/span><\/code><code>sudo\u00a0<span class=\"code-snippet__built_in\">chown<\/span>\u00a0-R ldap:ldap \/usr\/local\/openldap-2.4.44\/var\/openldap-data \u00a0<span class=\"code-snippet__comment\"># \u786e\u4fdd\u6570\u636e\u5e93\u76ee\u5f55\u6743\u9650\u6b63\u786e\uff08\u82e5\u6570\u636e\u5e93\u8def\u5f84\u4e3a \/usr\/local\/openldap-2.4.44\/var\/openldap-data\uff09<\/span><\/code><code>\r\n<\/code><\/pre>\n<\/section>\n<ul class=\"list-paddingleft-1\">\n<li><code>ExecStart<\/code>\uff1a\u542f\u52a8\u547d\u4ee4\uff0c\u9700\u6307\u5b9a\uff1a\n<ul class=\"list-paddingleft-1\">\n<li><code>slapd<\/code><br \/>\n<section>\u00a0\u53ef\u6267\u884c\u6587\u4ef6\u8def\u5f84\uff08\u5982\u00a0<code>\/usr\/local\/openldap-2.4.44\/libexec\/slapd<\/code>\uff09\u3002<\/section>\n<\/li>\n<li>\n<section>\u914d\u7f6e\u6587\u4ef6\u8def\u5f84\u00a0<code>-f \/usr\/local\/openldap-2.4.44\/etc\/openldap\/slapd.conf<\/code>\u3002<\/section>\n<\/li>\n<li>\n<section>\u76d1\u542c\u5730\u5740\u00a0<code>-h \"ldap:\/\/\/ ldaps:\/\/\/\"<\/code>\uff08\u540c\u65f6\u76d1\u542c LDAP \u548c LDAPS \u7aef\u53e3\uff09\u3002<\/section>\n<\/li>\n<li>\n<section>\u65e5\u5fd7\u7ea7\u522b\u00a0<code>-d 0<\/code>\uff08<code>0<\/code>\u00a0\u8868\u793a\u4ec5\u8bb0\u5f55\u9519\u8bef\uff0c\u8c03\u8bd5\u65f6\u53ef\u8bbe\u4e3a\u00a0<code>256<\/code>\uff09\u3002<\/section>\n<\/li>\n<\/ul>\n<\/li>\n<li><code>WorkingDirectory<\/code>\uff1aLDAP \u6570\u636e\u5e93\u6587\u4ef6\u5b58\u50a8\u76ee\u5f55\uff08\u5982\u00a0<code>\/usr\/local\/openldap-2.4.44\/var\/openldap-data<\/code>\u00a0\u6216\u81ea\u5b9a\u4e49\u8def\u5f84\uff09\uff0c\u9700\u4e0e\u00a0<code>slapd.conf<\/code>\u00a0\u4e2d\u7684\u00a0<code>directory<\/code>\u00a0\u914d\u7f6e\u4e00\u81f4\u3002<\/li>\n<\/ul>\n<h5 style=\"line-height: 24px; margin-top: 35px; margin-bottom: 10px; padding-bottom: 5px; font-size: 17px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" data-id=\"heading-32\" data-pm-slice=\"0 0 []\"><strong style=\"font-weight: bold;\">\u542f\u52a8\u670d\u52a1\u5e76\u9a8c\u8bc1<\/strong><\/h5>\n<p style=\"line-height: inherit; margin-top: 22px; margin-bottom: 22px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\"><strong style=\"font-weight: bold;\">\u91cd\u65b0\u52a0\u8f7d Systemd \u914d\u7f6e<\/strong>\uff08\u4fee\u6539\u670d\u52a1\u6587\u4ef6\u540e\u9700\u6267\u884c\uff09\uff1a<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"nginx\"><code>\u00a0<span class=\"code-snippet__attribute\">sudo<\/span>\u00a0systemctl daemon-reload<\/code><\/pre>\n<\/section>\n<p><strong style=\"font-weight: bold; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\">\u542f\u52a8 OpenLDAP \u670d\u52a1<\/strong><span style=\"color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;\">\uff1a<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"nginx\"><code><span class=\"code-snippet__attribute\">sudo<\/span>\u00a0systemctl start slapd<\/code><\/pre>\n<\/section>\n<p><strong style=\"font-weight: bold; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\">\u9a8c\u8bc1\u670d\u52a1\u72b6\u6001<\/strong><span style=\"color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;\">\uff1a<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"nginx\"><code><span class=\"code-snippet__attribute\">sudo<\/span>\u00a0systemctl status slapd \u00a0<span class=\"code-snippet__comment\"># \u67e5\u770b\u5b9e\u65f6\u72b6\u6001<\/span><\/code><code>journalctl -u slapd -f \u00a0 \u00a0 \u00a0\u00a0<span class=\"code-snippet__comment\"># \u67e5\u770b\u8be6\u7ec6\u65e5\u5fd7\uff08\u6309 Ctrl+C \u9000\u51fa<\/span><\/code><\/pre>\n<\/section>\n<h3 style=\"line-height: 28px; margin-top: 35px; margin-bottom: 10px; padding-bottom: 5px; font-size: 20px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" data-id=\"heading-15\" data-pm-slice=\"0 0 []\"><span style=\"color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;\" data-pm-slice=\"0 0 []\"><strong style=\"font-weight: bold; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\">\u8bbe\u7f6e\u5f00\u673a\u81ea\u542f<\/strong><span style=\"color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;\">\uff1a<\/span><\/span><\/h3>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"bash\"><code>sudo systemctl\u00a0<span class=\"code-snippet__built_in\">enable<\/span>\u00a0slapd<\/code><\/pre>\n<\/section>\n<h3 style=\"line-height: 28px; margin-top: 35px; margin-bottom: 10px; padding-bottom: 5px; font-size: 20px; color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" data-id=\"heading-15\" data-pm-slice=\"0 0 []\"><span style=\"color: #252933; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;\" data-pm-slice=\"0 0 []\">\u00a0<\/span><\/h3>\n<p style=\"display: none;\">\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u7248\u672c\u4fe1\u606f OpenEluer\u7248\u672c\u4fe1\u606f cat\u00a0\/etc\/os-release OpenLDAP\u7248\u672c\u4fe1\u606f 2 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1717,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-1718","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-openeuler"],"_links":{"self":[{"href":"https:\/\/www.o6s.net\/index.php\/wp-json\/wp\/v2\/posts\/1718","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.o6s.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.o6s.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.o6s.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.o6s.net\/index.php\/wp-json\/wp\/v2\/comments?post=1718"}],"version-history":[{"count":1,"href":"https:\/\/www.o6s.net\/index.php\/wp-json\/wp\/v2\/posts\/1718\/revisions"}],"predecessor-version":[{"id":1721,"href":"https:\/\/www.o6s.net\/index.php\/wp-json\/wp\/v2\/posts\/1718\/revisions\/1721"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.o6s.net\/index.php\/wp-json\/wp\/v2\/media\/1717"}],"wp:attachment":[{"href":"https:\/\/www.o6s.net\/index.php\/wp-json\/wp\/v2\/media?parent=1718"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.o6s.net\/index.php\/wp-json\/wp\/v2\/categories?post=1718"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.o6s.net\/index.php\/wp-json\/wp\/v2\/tags?post=1718"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}