{"id":950563,"date":"2024-12-27T00:39:42","date_gmt":"2024-12-26T16:39:42","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/950563.html"},"modified":"2024-12-27T00:39:45","modified_gmt":"2024-12-26T16:39:45","slug":"%e5%a6%82%e4%bd%95%e5%ae%89%e8%a3%85python-ldap","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/950563.html","title":{"rendered":"\u5982\u4f55\u5b89\u88c5python ldap"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25085120\/37c53ff4-1f6d-4a7d-bd4a-a7a37c3fabc3.webp\" alt=\"\u5982\u4f55\u5b89\u88c5python ldap\" \/><\/p>\n<p><p> <strong>\u5b89\u88c5Python LDAP\u9700\u8981\u786e\u4fdd\u60a8\u7684\u7cfb\u7edf\u6ee1\u8db3\u4e00\u4e9b\u57fa\u672c\u8981\u6c42\u3001\u6b63\u786e\u5b89\u88c5\u5fc5\u8981\u7684\u4f9d\u8d56\u9879\u3001\u4f7f\u7528\u9002\u5f53\u7684Python\u5305\u7ba1\u7406\u5de5\u5177\u5b89\u88c5\u4ee5\u53ca\u8fdb\u884c\u914d\u7f6e\u3002\u5b89\u88c5\u8fc7\u7a0b\u901a\u5e38\u5305\u62ec\u4ee5\u4e0b\u6b65\u9aa4\uff1a\u786e\u4fdd\u64cd\u4f5c\u7cfb\u7edf\u652f\u6301\u3001\u5b89\u88c5\u4f9d\u8d56\u5e93\u3001\u4f7f\u7528pip\u5b89\u88c5\u3001\u914d\u7f6e\u73af\u5883<\/strong>\u3002\u5728\u8fd9\u4e9b\u6b65\u9aa4\u4e2d\uff0c\u5b89\u88c5\u4f9d\u8d56\u5e93\u662f\u5173\u952e\uff0c\u56e0\u4e3aPython LDAP\u4f9d\u8d56\u4e8eOpenLDAP\u548c\u5176\u4ed6\u5e93\u7684\u6b63\u786e\u914d\u7f6e\u3002\u4ee5\u4e0b\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5b8c\u6210\u8fd9\u4e9b\u6b65\u9aa4\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u786e\u4fdd\u64cd\u4f5c\u7cfb\u7edf\u652f\u6301<\/p>\n<\/p>\n<p><p>\u5728\u5b89\u88c5Python LDAP\u4e4b\u524d\uff0c\u9996\u5148\u786e\u4fdd\u60a8\u7684\u64cd\u4f5c\u7cfb\u7edf\u652f\u6301Python\u548cLDAP\u5e93\u3002\u5927\u591a\u6570\u73b0\u4ee3\u64cd\u4f5c\u7cfb\u7edf\uff0c\u5982Linux\u3001macOS\u548cWindows\uff0c\u90fd\u652f\u6301\u8fd9\u4e9b\u5de5\u5177\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u64cd\u4f5c\u7cfb\u7edf\u66f4\u65b0<\/strong><br \/>\u786e\u4fdd\u60a8\u7684\u64cd\u4f5c\u7cfb\u7edf\u662f\u6700\u65b0\u7684\uff0c\u4ee5\u907f\u514d\u5df2\u77e5\u7684\u6f0f\u6d1e\u548c\u517c\u5bb9\u6027\u95ee\u9898\u3002\u901a\u5e38\uff0c\u8fd9\u5305\u62ec\u66f4\u65b0\u8f6f\u4ef6\u5305\u548c\u7cfb\u7edf\u7ec4\u4ef6\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>Python\u5b89\u88c5<\/strong><br \/>\u786e\u4fdd\u60a8\u7684\u7cfb\u7edf\u4e0a\u5b89\u88c5\u4e86Python 3.x\u7248\u672c\uff0c\u56e0\u4e3aPython 2.x\u5df2\u7ecf\u505c\u6b62\u652f\u6301\u3002\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u884c\u8f93\u5165<code>python3 --version<\/code>\u6765\u68c0\u67e5Python\u7248\u672c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u68c0\u67e5\u7f16\u8bd1\u5de5\u5177<\/strong><br \/>\u5728Linux\u548cmacOS\u4e0a\uff0c\u786e\u4fdd\u5b89\u88c5\u4e86\u5fc5\u8981\u7684\u7f16\u8bd1\u5de5\u5177\uff0c\u5982<code>gcc<\/code>\u548c<code>make<\/code>\u3002\u5728Windows\u4e0a\uff0c\u53ef\u80fd\u9700\u8981\u5b89\u88c5Visual Studio\u6216\u5176\u4ed6\u7f16\u8bd1\u5de5\u5177\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u5b89\u88c5\u4f9d\u8d56\u5e93<\/p>\n<\/p>\n<p><p>Python LDAP\u4f9d\u8d56\u4e8e\u4e00\u4e9b\u5e95\u5c42\u7684C\u5e93\uff0c\u8fd9\u4e9b\u5e93\u5fc5\u987b\u5728\u5b89\u88c5Python LDAP\u4e4b\u524d\u6b63\u786e\u5b89\u88c5\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>OpenLDAP\u5e93<\/strong><br \/>Python LDAP\u5e93\u4f9d\u8d56\u4e8eOpenLDAP C\u5e93\u3002\u53ef\u4ee5\u901a\u8fc7\u5305\u7ba1\u7406\u5de5\u5177\u5b89\u88c5\uff0c\u4f8b\u5982\u5728Debian\/Ubuntu\u7cfb\u7edf\u4e0a\uff0c\u4f7f\u7528<code>sudo apt-get install libldap2-dev<\/code>\u3002\u5728Red Hat\/CentOS\u4e0a\uff0c\u53ef\u4ee5\u4f7f\u7528<code>sudo yum install openldap-devel<\/code>\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>SASL\u5e93<\/strong><br \/>\u5982\u679c\u60a8\u9700\u8981\u4f7f\u7528SASL\u8eab\u4efd\u9a8c\u8bc1\uff0c\u8fd8\u9700\u8981\u5b89\u88c5Cyrus SASL\u5e93\u3002\u5728Debian\/Ubuntu\u4e0a\uff0c\u53ef\u4ee5\u4f7f\u7528<code>sudo apt-get install libsasl2-dev<\/code>\u3002\u5728Red Hat\/CentOS\u4e0a\uff0c\u4f7f\u7528<code>sudo yum install cyrus-sasl-devel<\/code>\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>SSL\/TLS\u5e93<\/strong><br \/>\u4e3a\u4e86\u786e\u4fdd\u5b89\u5168\u8fde\u63a5\uff0c\u5efa\u8bae\u5b89\u88c5OpenSSL\u5e93\u3002\u5927\u591a\u6570\u7cfb\u7edf\u9ed8\u8ba4\u5b89\u88c5\u4e86OpenSSL\uff0c\u4f46\u5982\u679c\u6ca1\u6709\uff0c\u53ef\u4ee5\u901a\u8fc7\u5305\u7ba1\u7406\u5668\u5b89\u88c5\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u4f7f\u7528pip\u5b89\u88c5<\/p>\n<\/p>\n<p><p>\u5728\u5b89\u88c5\u5b8c\u5fc5\u8981\u7684\u4f9d\u8d56\u5e93\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528pip\u5b89\u88c5Python LDAP\u5e93\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5pip<\/strong><br \/>\u5982\u679c\u60a8\u7684\u7cfb\u7edf\u4e2d\u8fd8\u6ca1\u6709\u5b89\u88c5pip\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\uff1a  <\/p>\n<\/p>\n<ul>\n<li>\u5728Linux\/macOS\u4e0a\uff1a<code>sudo apt-get install python3-pip<\/code>  <\/li>\n<li>\u5728Windows\u4e0a\uff1a\u4e0b\u8f7d\u5e76\u8fd0\u884cget-pip.py\u811a\u672c\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u5b89\u88c5python-ldap<\/strong><br \/>\u4e00\u65e6pip\u5b89\u88c5\u597d\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5python-ldap\u5e93\uff1a  <\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install python-ldap<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9a8c\u8bc1\u5b89\u88c5<\/strong><br \/>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u9a8c\u8bc1\u5b89\u88c5\u662f\u5426\u6210\u529f\uff1a  <\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python3 -c &quot;import ldap; print(ldap.__version__)&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5982\u679c\u6ca1\u6709\u9519\u8bef\u4fe1\u606f\uff0c\u5e76\u4e14\u6253\u5370\u51fa\u7248\u672c\u53f7\uff0c\u8bf4\u660e\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u914d\u7f6e\u73af\u5883<\/p>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u9700\u8981\u8fdb\u884c\u4e00\u4e9b\u914d\u7f6e\uff0c\u4ee5\u786e\u4fddPython LDAP\u5e93\u80fd\u591f\u6b63\u5e38\u5de5\u4f5c\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/strong><br \/>\u5728\u67d0\u4e9b\u7cfb\u7edf\u4e0a\uff0c\u53ef\u80fd\u9700\u8981\u914d\u7f6e\u73af\u5883\u53d8\u91cf\uff0c\u4ee5\u6307\u5411OpenLDAP\u548c\u5176\u4ed6\u5e93\u7684\u4f4d\u7f6e\u3002\u53ef\u4ee5\u901a\u8fc7\u7f16\u8f91<code>~\/.bashrc<\/code>\u6216<code>~\/.bash_profile<\/code>\u6587\u4ef6\u6765\u8bbe\u7f6e\uff0c\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">export LD_LIBRARY_PATH=\/usr\/local\/lib<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u914d\u7f6eLDAP\u670d\u52a1\u5668<\/strong><br \/>\u786e\u4fdd\u60a8\u6709\u4e00\u4e2a\u53ef\u7528\u7684LDAP\u670d\u52a1\u5668\uff0c\u5e76\u5df2\u77e5\u5176\u5730\u5740\u3001\u7aef\u53e3\u548c\u51ed\u8bc1\u3002\u914d\u7f6e\u6587\u4ef6\u901a\u5e38\u4f4d\u4e8e<code>\/etc\/ldap\/ldap.conf<\/code>\uff0c\u9700\u8981\u786e\u4fdd\u6b64\u6587\u4ef6\u4e2d\u5305\u542b\u6b63\u786e\u7684\u670d\u52a1\u5668\u4fe1\u606f\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6d4b\u8bd5\u8fde\u63a5<\/strong><br \/>\u7f16\u5199\u4e00\u4e2a\u7b80\u5355\u7684Python\u811a\u672c\uff0c\u6d4b\u8bd5\u4e0eLDAP\u670d\u52a1\u5668\u7684\u8fde\u63a5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import ldap<\/p>\n<h2><strong>\u8fde\u63a5\u5230LDAP\u670d\u52a1\u5668<\/strong><\/h2>\n<p>conn = ldap.initialize(&#39;ldap:\/\/your_ldap_server_address&#39;)<\/p>\n<p>conn.simple_bind_s(&#39;your_dn&#39;, &#39;your_password&#39;)<\/p>\n<h2><strong>\u68c0\u7d22\u4e00\u4e9b\u4fe1\u606f<\/strong><\/h2>\n<p>result = conn.search_s(&#39;ou=People,dc=example,dc=com&#39;, ldap.SCOPE_SUBTREE, &#39;(cn=*)&#39;)<\/p>\n<p>print(result)<\/p>\n<h2><strong>\u5173\u95ed\u8fde\u63a5<\/strong><\/h2>\n<p>conn.unbind_s()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd0\u884c\u8fd9\u4e2a\u811a\u672c\u4ee5\u786e\u4fdd\u80fd\u591f\u6210\u529f\u8fde\u63a5\u5e76\u68c0\u7d22\u6570\u636e\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u89e3\u51b3\u5e38\u89c1\u95ee\u9898<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5\u9519\u8bef<\/strong><br \/>\u5982\u679c\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u9047\u5230\u9519\u8bef\uff0c\u53ef\u80fd\u662f\u7531\u4e8e\u7f3a\u5c11\u4f9d\u8d56\u5e93\u6216\u7f16\u8bd1\u5de5\u5177\u3002\u8bf7\u786e\u4fdd\u6240\u6709\u5fc5\u8981\u7684\u5e93\u548c\u5de5\u5177\u90fd\u5df2\u5b89\u88c5\uff0c\u5e76\u4e14\u5176\u7248\u672c\u4e0ePython LDAP\u517c\u5bb9\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8fde\u63a5\u9519\u8bef<\/strong><br \/>\u5982\u679c\u5728\u8fde\u63a5\u5230LDAP\u670d\u52a1\u5668\u65f6\u9047\u5230\u9519\u8bef\uff0c\u53ef\u80fd\u662f\u7531\u4e8e\u7f51\u7edc\u914d\u7f6e\u95ee\u9898\u3001\u51ed\u8bc1\u9519\u8bef\u6216\u670d\u52a1\u5668\u5730\u5740\u4e0d\u6b63\u786e\u3002\u8bf7\u68c0\u67e5\u60a8\u7684LDAP\u914d\u7f6e\u6587\u4ef6\uff0c\u786e\u4fdd\u6240\u6709\u4fe1\u606f\u6b63\u786e\u65e0\u8bef\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>SSL\/TLS\u9519\u8bef<\/strong><br \/>\u5982\u679c\u9700\u8981\u901a\u8fc7SSL\/TLS\u8fde\u63a5\u5230LDAP\u670d\u52a1\u5668\uff0c\u8bf7\u786e\u4fddOpenSSL\u5df2\u6b63\u786e\u914d\u7f6e\uff0c\u5e76\u4e14\u8bc1\u4e66\u5df2\u5b89\u88c5\u5e76\u88ab\u4fe1\u4efb\u3002\u53ef\u4ee5\u901a\u8fc7\u914d\u7f6e\u6587\u4ef6\u6216Python\u4ee3\u7801\u6307\u5b9aSSL\/TLS\u9009\u9879\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u603b\u7ed3\u6765\u8bf4\uff0c\u5b89\u88c5\u548c\u914d\u7f6ePython LDAP\u5e93\u9700\u8981\u7ec6\u81f4\u7684\u51c6\u5907\u548c\u8bbe\u7f6e\u3002\u901a\u8fc7\u6309\u7167\u4e0a\u8ff0\u6b65\u9aa4\u64cd\u4f5c\uff0c\u60a8\u53ef\u4ee5\u5728\u5927\u591a\u6570\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u6210\u529f\u5b89\u88c5\u5e76\u914d\u7f6ePython LDAP\uff0c\u4ee5\u4fbf\u5728\u5e94\u7528\u7a0b\u5e8f\u4e2d\u4f7f\u7528LDAP\u529f\u80fd\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u786e\u8ba4\u6211\u7684\u7cfb\u7edf\u73af\u5883\u662f\u5426\u652f\u6301\u5b89\u88c5Python LDAP\uff1f<\/strong><br \/>\u5728\u5b89\u88c5Python LDAP\u4e4b\u524d\uff0c\u786e\u4fdd\u60a8\u7684\u64cd\u4f5c\u7cfb\u7edf\u5df2\u5b89\u88c5Python\u53ca\u5176\u5f00\u53d1\u73af\u5883\u3002\u5bf9\u4e8eLinux\u7528\u6237\uff0c\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4<code>python3 --version<\/code>\u6765\u68c0\u67e5Python\u7248\u672c\u3002\u5982\u679c\u60a8\u4f7f\u7528\u7684\u662fWindows\u7cfb\u7edf\uff0c\u5efa\u8bae\u5b89\u88c5Python\u7684\u6700\u65b0\u7248\u672c\uff0c\u5e76\u786e\u4fdd\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u52fe\u9009\u201cAdd Python to PATH\u201d\u9009\u9879\u3002\u6b64\u5916\uff0c\u60a8\u8fd8\u9700\u8981\u5b89\u88c5OpenLDAP\u5e93\uff0c\u56e0\u4e3aPython LDAP\u4f9d\u8d56\u4e8e\u6b64\u5e93\u3002<\/p>\n<p><strong>\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u9047\u5230\u9519\u8bef\u8be5\u5982\u4f55\u89e3\u51b3\uff1f<\/strong><br \/>\u9047\u5230\u5b89\u88c5\u9519\u8bef\u65f6\uff0c\u9996\u5148\u68c0\u67e5\u9519\u8bef\u4fe1\u606f\u4e2d\u662f\u5426\u63d0\u5230\u4e86\u7f3a\u5931\u7684\u4f9d\u8d56\u9879\u3002\u5bf9\u4e8eLinux\u7528\u6237\uff0c\u53ef\u80fd\u9700\u8981\u901a\u8fc7\u5305\u7ba1\u7406\u5668\u5b89\u88c5\u4e00\u4e9b\u5f00\u53d1\u5de5\u5177\u548c\u5e93\uff0c\u4f8b\u5982\u4f7f\u7528<code>sudo apt-get install libldap2-dev<\/code>\u547d\u4ee4\u5b89\u88c5OpenLDAP\u5f00\u53d1\u5e93\u3002\u5982\u679c\u662f\u5728Windows\u4e0a\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u4f7f\u7528\u9884\u7f16\u8bd1\u7684whl\u6587\u4ef6\uff0c\u786e\u4fdd\u9009\u62e9\u4e0e\u60a8\u7684Python\u7248\u672c\u548c\u7cfb\u7edf\u67b6\u6784\u76f8\u5339\u914d\u7684\u6587\u4ef6\u3002<\/p>\n<p><strong>\u5b89\u88c5\u5b8c\u6210\u540e\u5982\u4f55\u6d4b\u8bd5Python LDAP\u7684\u529f\u80fd\u662f\u5426\u6b63\u5e38\uff1f<\/strong><br \/>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u7b80\u5355\u7684Python\u811a\u672c\u6765\u6d4b\u8bd5LDAP\u529f\u80fd\u3002\u60a8\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Python\u6587\u4ef6\uff0c\u5bfc\u5165ldap\u6a21\u5757\u5e76\u5c1d\u8bd5\u8fde\u63a5\u5230\u4e00\u4e2aLDAP\u670d\u52a1\u5668\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u57fa\u672c\u7684\u793a\u4f8b\u4ee3\u7801\uff1a  <\/p>\n<pre><code class=\"language-python\">import ldap\n\ntry:\n    ldap_server = &quot;ldap:\/\/localhost&quot;\n    conn = ldap.initialize(ldap_server)\n    print(&quot;\u6210\u529f\u8fde\u63a5\u5230LDAP\u670d\u52a1\u5668&quot;)\nexcept ldap.LDAPError as e:\n    print(f&quot;\u8fde\u63a5\u5931\u8d25: {e}&quot;)\n<\/code><\/pre>\n<p>\u8fd0\u884c\u6b64\u4ee3\u7801\uff0c\u5982\u679c\u6210\u529f\u8fde\u63a5\uff0c\u8bf4\u660e\u5b89\u88c5\u548c\u914d\u7f6e\u5747\u6b63\u5e38\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5b89\u88c5Python LDAP\u9700\u8981\u786e\u4fdd\u60a8\u7684\u7cfb\u7edf\u6ee1\u8db3\u4e00\u4e9b\u57fa\u672c\u8981\u6c42\u3001\u6b63\u786e\u5b89\u88c5\u5fc5\u8981\u7684\u4f9d\u8d56\u9879\u3001\u4f7f\u7528\u9002\u5f53\u7684Python\u5305\u7ba1\u7406 [&hellip;]","protected":false},"author":3,"featured_media":950568,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/950563"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=950563"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/950563\/revisions"}],"predecessor-version":[{"id":950569,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/950563\/revisions\/950569"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/950568"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=950563"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=950563"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=950563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}