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
ingo Voss
OpenLDAP
Commits
34647dd8
Commit
34647dd8
authored
Aug 13, 1999
by
Kurt Zeilenga
Browse files
Force to LDAPv3 until BIND
parent
e3f34e30
Changes
2
Hide whitespace changes
Inline
Side-by-side
servers/slapd/connection.c
View file @
34647dd8
...
...
@@ -409,6 +409,9 @@ long connection_init(
c
->
c_n_read
=
0
;
c
->
c_n_write
=
0
;
/* assume LDAPv3 until bind */
c
->
c_protocol
=
LDAP_VERSION3
;
c
->
c_activitytime
=
c
->
c_starttime
=
slap_get_time
();
ber_pvt_sb_set_desc
(
c
->
c_sb
,
s
);
...
...
servers/slapd/modrdn.c
View file @
34647dd8
...
...
@@ -102,17 +102,7 @@ do_modrdn(
/* Check for newSuperior parameter, if present scan it */
if
(
ber_peek_tag
(
op
->
o_ber
,
&
length
)
==
LDAP_TAG_NEWSUPERIOR
)
{
if
(
op
->
o_protocol
==
0
)
{
/*
* Promote to LDAPv3
*/
ldap_pvt_thread_mutex_lock
(
&
conn
->
c_mutex
);
conn
->
c_protocol
=
LDAP_VERSION3
;
ldap_pvt_thread_mutex_unlock
(
&
conn
->
c_mutex
);
op
->
o_protocol
=
LDAP_VERSION3
;
}
else
if
(
op
->
o_protocol
<
LDAP_VERSION3
)
{
if
(
op
->
o_protocol
<
LDAP_VERSION3
)
{
/* Conection record indicates v2 but field
* newSuperior is present: report error.
*/
...
...
Write
Preview
Markdown
is supported
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