Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
orbea -
OpenLDAP
Commits
1aecfe0b
Commit
1aecfe0b
authored
Feb 01, 2021
by
Ondřej Kuzník
Browse files
ITS#6518 Only remove proxyauthz control if we generated one ourselves
parent
4da575d4
Changes
3
Hide whitespace changes
Inline
Side-by-side
servers/slapd/back-asyncmeta/bind.c
View file @
1aecfe0b
...
...
@@ -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
++
;
...
...
servers/slapd/back-ldap/bind.c
View file @
1aecfe0b
...
...
@@ -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
++
;
...
...
servers/slapd/back-meta/bind.c
View file @
1aecfe0b
...
...
@@ -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
++
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment