1

When I try to encrypt the password by using the following command on my linux machine:

slappasswd -h {CRYPT}

I am prompted for a new password:

Re-enter the new password :

After typing this I encounter the following error:

Password generation failed for scheme {CRYPT}: scheme not recognized.

Why am I getting this error? I am using the OpenLDAP.

4

2 回答 2

4

这可能是由于您的外壳(tcsh?)对{}字符进行了特殊处理。做

slappasswd -h '{CRYPT}'

工作?

此外,您的 openldap 必须使用 crypt 支持 ( $LDAP_SRC/configure --enable-crypt) 构建:

ldd /usr/sbin/slappasswd | grep libcrypt

(根据需要调整到 slappasswd 的路径)应该输出一些东西。

于 2009-09-10T11:40:49.877 回答
2

可能只是您的 openLDAP 版本不支持使用 CRYPT 加密方案。

例如,您可以使用 SSHA:

slappasswd -h {SSHA}

我有同样的问题,在 CentOS 6.3 上使用 LDAP 2.4.33。

于 2013-01-30T20:27:22.003 回答