summaryrefslogtreecommitdiffstats
path: root/ldap/servers/slapd/entry.c
diff options
context:
space:
mode:
authorNoriko Hosoi <nhosoi@redhat.com>2006-11-06 20:51:32 +0000
committerNoriko Hosoi <nhosoi@redhat.com>2006-11-06 20:51:32 +0000
commit891043bf95a5973198fc42068adaf72ef2163e4d (patch)
treefdbec1a575d5108eebad9bcff5302e9a1173267f /ldap/servers/slapd/entry.c
parent379091dfc02ea735b75764dbe50cfe17019f89be (diff)
downloadds-891043bf95a5973198fc42068adaf72ef2163e4d.tar.gz
ds-891043bf95a5973198fc42068adaf72ef2163e4d.tar.xz
ds-891043bf95a5973198fc42068adaf72ef2163e4d.zip
Resolves: #199923
Summary: subtree search fails to find items under a db containing special characters (Comment#16) Description: When dn contains rdn which includes '\\', it was escaped twice to generate a key for entrydn and caused mismatch in forming ancestorid index. It ends up the subtree search fail.
Diffstat (limited to 'ldap/servers/slapd/entry.c')
-rw-r--r--ldap/servers/slapd/entry.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/ldap/servers/slapd/entry.c b/ldap/servers/slapd/entry.c
index cd5010b6..8f10f7de 100644
--- a/ldap/servers/slapd/entry.c
+++ b/ldap/servers/slapd/entry.c
@@ -2796,6 +2796,17 @@ entry_replace_values(
}
int
+entry_replace_values_with_flags(
+ Slapi_Entry *e,
+ const char *type,
+ struct berval **vals,
+ int flags
+)
+{
+ return attrlist_replace_with_flags( &e->e_attrs, type, vals, flags );
+}
+
+int
slapi_entry_flag_is_set( const Slapi_Entry *e, unsigned char flag )
{
return( e->e_flags & flag );