Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
e0f7d698
Commit
e0f7d698
authored
Oct 05, 2007
by
Pierangelo Masarati
Browse files
more about ITS#5168
parent
e84d511c
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/filter.c
View file @
e0f7d698
...
...
@@ -32,6 +32,7 @@
#include
<ac/string.h>
#include
"slap.h"
#include
"lutil.h"
static
int
get_filter_list
(
Operation
*
op
,
...
...
@@ -545,6 +546,7 @@ filter2bv_x( Operation *op, Filter *f, struct berval *fstr )
int
i
;
Filter
*
p
;
struct
berval
tmp
;
char
uuid
[
LDAP_LUTIL_UUIDSTR_BUFSIZE
];
static
struct
berval
ber_bvfalse
=
BER_BVC
(
"(?=false)"
),
ber_bvtrue
=
BER_BVC
(
"(?=true)"
),
...
...
@@ -561,7 +563,14 @@ filter2bv_x( Operation *op, Filter *f, struct berval *fstr )
switch
(
f
->
f_choice
)
{
case
LDAP_FILTER_EQUALITY
:
filter_escape_value_x
(
&
f
->
f_av_value
,
&
tmp
,
op
->
o_tmpmemctx
);
if
(
f
->
f_av_desc
->
ad_type
->
sat_syntax
==
slap_schema
.
si_ad_entryUUID
->
ad_type
->
sat_syntax
)
{
tmp
.
bv_len
=
lutil_uuidstr_from_normalized
(
f
->
f_av_value
.
bv_val
,
f
->
f_av_value
.
bv_len
,
uuid
,
LDAP_LUTIL_UUIDSTR_BUFSIZE
);
assert
(
tmp
.
bv_len
>
0
);
tmp
.
bv_val
=
uuid
;
}
else
{
filter_escape_value_x
(
&
f
->
f_av_value
,
&
tmp
,
op
->
o_tmpmemctx
);
}
fstr
->
bv_len
=
f
->
f_av_desc
->
ad_cname
.
bv_len
+
tmp
.
bv_len
+
(
sizeof
(
"(=)"
)
-
1
);
...
...
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