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
openldap
OpenLDAP
Commits
74421a28
Commit
74421a28
authored
Jan 09, 2002
by
Kurt Zeilenga
Browse files
Round 2 of subentry changes
parent
9b0585f3
Changes
3
Show whitespace changes
Inline
Side-by-side
servers/slapd/back-bdb/search.c
View file @
74421a28
...
...
@@ -309,6 +309,23 @@ bdb_search(
goto
loop_continue
;
}
if
(
is_entry_subentry
(
e
)
)
{
if
(
scope
!=
LDAP_SCOPE_BASE
)
{
if
(
!
get_subentries_visibility
(
op
))
{
/* only subentries are visible */
goto
loop_continue
;
}
}
else
if
(
get_subentries
(
op
)
&&
!
get_subentries_visibility
(
op
))
{
/* only subentries are visible */
goto
loop_continue
;
}
}
else
if
(
get_subentries_visibility
(
op
))
{
/* only subentries are visible */
goto
loop_continue
;
}
#ifdef BDB_ALIASES
if
(
deref
&
LDAP_DEREF_SEARCHING
&&
is_entry_alias
(
e
)
)
{
Entry
*
matched
;
...
...
servers/slapd/proto-slap.h
View file @
74421a28
...
...
@@ -800,6 +800,8 @@ LDAP_SLAPD_F (int) is_entry_objectclass LDAP_P((
is_entry_objectclass((e), slap_schema.si_oc_alias)
#define is_entry_referral(e) \
is_entry_objectclass((e), slap_schema.si_oc_referral)
#define is_entry_subentry(e) \
is_entry_objectclass((e), slap_schema.si_oc_subentry)
/*
...
...
servers/slapd/schema_prep.c
View file @
74421a28
...
...
@@ -124,7 +124,7 @@ static struct slap_schema_oc_map {
{
"alias"
,
offsetof
(
struct
slap_internal_schema
,
si_oc_alias
)
},
{
"referral"
,
offsetof
(
struct
slap_internal_schema
,
si_oc_referral
)
},
{
"LDAProotDSE"
,
offsetof
(
struct
slap_internal_schema
,
si_oc_rootdse
)
},
{
"
LDAP
subentry"
,
offsetof
(
struct
slap_internal_schema
,
si_oc_subentry
)
},
{
"subentry"
,
offsetof
(
struct
slap_internal_schema
,
si_oc_subentry
)
},
{
"subschema"
,
offsetof
(
struct
slap_internal_schema
,
si_oc_subschema
)
},
{
NULL
,
0
}
};
...
...
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