Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shawn McKinney
OpenLDAP
Commits
97217da5
Commit
97217da5
authored
Mar 05, 2021
by
Tero Saarni
Committed by
Quanah Gibson-Mount
May 11, 2021
Browse files
ITS#9468 back-ldap: Return disconect if rebind cannot be done
parent
6b55a3ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/back-ldap/bind.c
View file @
97217da5
...
...
@@ -1482,9 +1482,25 @@ retry_lock:;
retry:
;
if
(
BER_BVISNULL
(
&
lc
->
lc_cred
)
)
{
tmp_dn
=
""
;
/*
* Bind is requested with DN but without credentials.
* This can happen when connection to remote server has been
* lost either due to remote server disconnecting it or due to
* proxy disconnecting it by itself (idle-timeout, conn-ttl).
*/
if
(
!
BER_BVISNULL
(
&
lc
->
lc_bound_ndn
)
&&
!
BER_BVISEMPTY
(
&
lc
->
lc_bound_ndn
)
)
{
Debug
(
LDAP_DEBUG_ANY
,
"%s ldap_back_dobind_int: DN=
\"
%s
\"
without creds, binding anonymously"
,
op
->
o_log_prefix
,
lc
->
lc_bound_ndn
.
bv_val
);
Debug
(
LDAP_DEBUG_ANY
,
"%s ldap_back_dobind_int: DN=
\"
%s
\"
connection "
"was re-established but cannot rebind without creds
\n
"
,
op
->
o_log_prefix
,
lc
->
lc_bound_ndn
.
bv_val
);
rs
->
sr_text
=
"Proxy lost connection to remote server"
;
rs
->
sr_err
=
LDAP_UNAVAILABLE
;
if
(
sendok
&
LDAP_BACK_SENDERR
)
{
send_ldap_result
(
op
,
rs
);
}
rs
->
sr_err
=
SLAPD_DISCONNECT
;
rc
=
0
;
goto
done
;
}
}
else
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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