{"id":8679,"date":"2020-09-22T17:29:16","date_gmt":"2020-09-22T09:29:16","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=8679"},"modified":"2020-09-22T17:29:16","modified_gmt":"2020-09-22T09:29:16","slug":"slappasswd","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/slappasswd","title":{"rendered":"slappasswd\u547d\u4ee4 – \u8bbe\u7f6eLDAP\u7ba1\u7406\u5458\u5bc6\u7801"},"content":{"rendered":"\n
slappasswd\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u53ef\u4ee5\u751f\u6210LDAP\u7ba1\u7406\u5458\u5bc6\u7801\u3002<\/p>\n\n\n\n
slappasswd\u547d\u4ee4\u652f\u6301\u591a\u79cd\u52a0\u5bc6\u65b9\u6848\u5982\uff1aCRYPT\u3001MD5\u3001SMD5\u3001SSHA\u548cSHA\u3002<\/p>\n\n\n\n
\u5176\u4e2d\u6700\u5e38\u7528\u7684\u662f\uff1aMD5\u5168\u79f0\u4e3aMessage Digest algorithm 5\uff0c\u4fe1\u606f\u6458\u8981\u7b97\u6cd5\u3002SHA\u5168\u79f0\u4e3aSecure Hash Algorithm\uff0c\u5b89\u5168\u6563\u5217\u7b97\u6cd5\u3002\u800cSHA\u7b97\u6cd5\u4e2dSHA256\u76f8\u5bf9\u5b89\u5168\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>slappasswd [\u53c2\u6570]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u751f\u6210SSHA\u65b9\u6848\u5bc6\u7801\uff1a<\/p>\n\n\n\n \u751f\u6210\u968f\u673a\u5bc6\u7801\uff1a<\/p>\n\n\n\n \u751f\u6210\u54c8\u5e0c\u5bc6\u7801\uff1a<\/p>\n\n\n\n slappasswd\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u53ef\u4ee5\u751f\u6210LDAP\u7ba1\u7406\u5458\u5bc6\u7801\u3002 slappasswd\u547d\u4ee4\u652f\u6301\u591a\u79cd\u52a0\u5bc6\u65b9\u6848\u5982\uff1aCR […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8679"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=8679"}],"version-history":[{"count":2,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8679\/revisions"}],"predecessor-version":[{"id":8700,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8679\/revisions\/8700"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=8679"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=8679"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=8679"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-h<\u52a0\u5bc6\u65b9\u6848><\/td> \u6307\u5b9a\u52a0\u5bc6\u65b9\u6848\uff0c\u5b83\u652f\u6301{CRYPT}\u3001{MD5}\u3001{SMD5}\u3001{SSHA}\u548c{SHA}\u7b49\u65b9\u5f0f\uff0c\u9ed8\u8ba4\u503c\u662f{SSHA}<\/td><\/tr> -v<\/td> \u542f\u7528\u8be6\u7ec6\u4fe1\u606f\u6a21\u5f0f<\/td><\/tr> -g<\/td> \u751f\u6210\u968f\u673a\u5bc6\u7801<\/td><\/tr> -s<><\/td> \u751f\u6210\u54c8\u5e0c\u5bc6\u7801<\/td><\/tr> -u<\/td> \u751f\u6210RFC2307\u503c\uff08\u9ed8\u8ba4\uff09<\/td><\/tr> -c crypt-salt-format<\/td> \u751f\u6210{CRYPT}\u5bc6\u7801<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# slappasswd<\/pre>\n\n\n\n
[root@linuxcool ~]# slappasswd -g<\/pre>\n\n\n\n
[root@linuxcool ~]# slappasswd -s linuxcool<\/pre>\n","protected":false},"excerpt":{"rendered":"