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
-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 \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u751f\u6210SSHA\u65b9\u6848\u5bc6\u7801\uff1a<\/p>\n\n\n\n [root@linuxcool ~]# slappasswd<\/pre>\n\n\n\n |