Skip to content
Snippets Groups Projects
Commit 87dc3e20 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Use SMD5 is SHA1 is not available

parent 3310663d
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment