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
orbea -
OpenLDAP
Commits
2731ff0c
Commit
2731ff0c
authored
Dec 17, 2018
by
Howard Chu
Browse files
ITS#5927 additional fix
Fix
2ee43073
to recognize range tags
parent
12dbcc0e
Changes
1
Show whitespace changes
Inline
Side-by-side
servers/slapd/ad.c
View file @
2731ff0c
...
...
@@ -219,6 +219,7 @@ int slap_bv2ad(
optn
=
bv
->
bv_val
+
bv
->
bv_len
;
for
(
opt
=
options
;
opt
!=
NULL
;
opt
=
next
)
{
Attr_option
*
aopt
;
int
optlen
;
opt
++
;
next
=
strchrlen
(
opt
,
optn
,
';'
,
&
optlen
);
...
...
@@ -245,11 +246,11 @@ int slap_bv2ad(
desc
.
ad_flags
|=
SLAP_DESC_BINARY
;
continue
;
}
else
if
(
ad_find_option_definition
(
opt
,
optlen
)
)
{
}
else
if
(
(
aopt
=
ad_find_option_definition
(
opt
,
optlen
)
)
)
{
int
i
;
if
(
opt
[
optlen
-
1
]
==
'-'
||
(
opt
[
opt
len
-
1
]
==
'='
&&
msad_range_hack
))
{
(
a
opt
->
name
.
bv_val
[
aopt
->
name
.
bv_
len
-
1
]
==
'='
&&
msad_range_hack
))
{
desc
.
ad_flags
|=
SLAP_DESC_TAG_RANGE
;
}
...
...
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