} else if( conn->c_authz_backend->be_update_ndn != NULL ) {
/* we SHOULD return a referral in this case */
- *refs = conn->c_authz_backend->be_update_refs;
+ *refs = referral_rewrite( conn->c_authz_backend->be_update_refs,
+ NULL, NULL, LDAP_SCOPE_DEFAULT );
rc = LDAP_REFERRAL;
} else {
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;