Commit 1aecfe0b authored by Ondřej Kuzník's avatar Ondřej Kuzník
Browse files

ITS#6518 Only remove proxyauthz control if we generated one ourselves

parent 4da575d4
......@@ -1348,7 +1348,8 @@ asyncmeta_controls_add( Operation *op,
LDAP_CONTROL_PROXY_AUTHZ, op->o_ctrls, NULL );
for ( i = 0; op->o_ctrls[ i ]; i++ ) {
if ( proxyauthz && proxyauthz == op->o_ctrls[ i ] ) {
/* Only replace it if we generated one */
if ( j1 && proxyauthz && proxyauthz == op->o_ctrls[ i ] ) {
/* Frontend has already checked only one is present */
assert( skipped == 0 );
skipped++;
......
......@@ -2897,7 +2897,8 @@ ldap_back_controls_add(
LDAP_CONTROL_PROXY_AUTHZ, op->o_ctrls, NULL );
for ( i = 0; op->o_ctrls[ i ]; i++ ) {
if ( proxyauthz && proxyauthz == op->o_ctrls[ i ] ) {
/* Only replace it if we generated one */
if ( j1 && proxyauthz && proxyauthz == op->o_ctrls[ i ] ) {
/* Frontend has already checked only one is present */
assert( skipped == 0 );
skipped++;
......
......@@ -1723,7 +1723,8 @@ meta_back_controls_add(
LDAP_CONTROL_PROXY_AUTHZ, op->o_ctrls, NULL );
for ( i = 0; op->o_ctrls[ i ]; i++ ) {
if ( proxyauthz && proxyauthz == op->o_ctrls[ i ] ) {
/* Only replace it if we generated one */
if ( j1 && proxyauthz && proxyauthz == op->o_ctrls[ i ] ) {
/* Frontend has already checked only one is present */
assert( skipped == 0 );
skipped++;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment