mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-03 13:40:37 -05:00
Use SMD5 is SHA1 is not available
This commit is contained in:
parent
3310663d02
commit
87dc3e2091
1 changed files with 6 additions and 1 deletions
|
|
@ -322,7 +322,12 @@ struct berval * slap_passwd_generate( void )
|
|||
struct berval * slap_passwd_hash(
|
||||
struct berval * cred )
|
||||
{
|
||||
char* hash = default_passwd_hash ? default_passwd_hash : "{SSHA}";
|
||||
#ifdef LUTIL_SHA1_BYTES
|
||||
char* hash = default_passwd_hash ? default_passwd_hash : "{SSHA}";
|
||||
#else
|
||||
char* hash = default_passwd_hash ? default_passwd_hash : "{SMD5}";
|
||||
#endif
|
||||
|
||||
|
||||
struct berval *new;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue