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

Don't attempt to return empty referrals.

parent c1ae4d6a
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,14 @@ int passwd_extop(
} 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;
rc = LDAP_REFERRAL;
if( *refs ) {
rc = LDAP_REFERRAL;
} else {
rc = LDAP_UNWILLING_TO_PERFORM;
*text = "authorization database is a read-only replica";
}
} else {
rc = conn->c_authz_backend->be_extended(
......
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