Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Oren Tirosh
OpenLDAP
Commits
e394bcfa
Commit
e394bcfa
authored
Dec 01, 2020
by
Howard Chu
Browse files
ITS
#9413
fix slap_parse_user
parent
42d42421
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/saslauthz.c
View file @
e394bcfa
...
...
@@ -154,10 +154,9 @@ int slap_parse_user( struct berval *id, struct berval *user,
user
->
bv_val
++
;
user
->
bv_len
=
id
->
bv_len
-
(
user
->
bv_val
-
id
->
bv_val
);
mech
->
bv_val
=
ber_bvchr
(
id
,
'.'
);
if
(
!
BER_BVISNULL
(
mech
)
)
{
mech
->
bv_val
[
0
]
=
'\0'
;
mech
->
bv_val
++
;
if
(
id
->
bv_val
[
1
]
==
'.'
)
{
id
->
bv_val
[
1
]
=
'\0'
;
mech
->
bv_val
=
id
->
bv_val
+
2
;
mech
->
bv_len
=
user
->
bv_val
-
mech
->
bv_val
-
1
;
realm
->
bv_val
=
ber_bvchr
(
mech
,
'/'
);
...
...
@@ -170,6 +169,7 @@ int slap_parse_user( struct berval *id, struct berval *user,
}
}
else
{
BER_BVZERO
(
mech
);
BER_BVZERO
(
realm
);
}
...
...
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