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
Joe Martin
OpenLDAP
Commits
72bba9f8
Commit
72bba9f8
authored
Jun 03, 2009
by
Quanah Gibson-Mount
Browse files
ITS#6132
parent
80b5255f
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
72bba9f8
...
...
@@ -19,6 +19,7 @@ OpenLDAP 2.4.17 Engineering
Fixed slapd password-hash incorrect limit on arg length (ITS#6139)
Fixed slapd readonly restrictions (ITS#6109)
Fixed slapd sending cancelled operations results (ITS#6103)
Fixed slapd slapi_entry_has_children (ITS#6132)
Fixed slapd sockets usage on windows (ITS#6039)
Fixed slapd tls context after changes (ITS#6135)
Fixed slapd-hdb freeing of already freed entries (ITS#6074)
...
...
servers/slapd/slapi/slapi_utils.c
View file @
72bba9f8
...
...
@@ -475,21 +475,30 @@ int
slapi_entry_has_children
(
const
Slapi_Entry
*
e
)
{
Slapi_PBlock
*
pb
;
int
hasSubordinates
=
0
;
Backend
*
be
=
select_backend
(
(
struct
berval
*
)
&
e
->
e_nname
,
0
);
int
rc
,
hasSubordinates
=
0
;
if
(
be
==
NULL
||
be
->
be_has_subordinates
==
0
)
{
return
0
;
}
pb
=
slapi_pblock_new
();
if
(
pb
==
NULL
)
{
return
0
;
}
slapi_int_connection_init_pb
(
pb
,
LDAP_REQ_SEARCH
);
slapi_pblock_set
(
pb
,
SLAPI_TARGET_DN
,
slapi_entry_get_dn
(
(
Entry
*
)
e
)
);
pb
->
pb_op
->
o_bd
=
select_backend
(
(
struct
berval
*
)
&
e
->
e_nname
,
0
);
if
(
pb
->
pb_op
->
o_bd
!=
NULL
)
{
pb
->
pb_op
->
o_bd
->
be_has_subordinates
(
pb
->
pb_op
,
(
Entry
*
)
e
,
&
hasSubordinates
);
rc
=
slapi_pblock_set
(
pb
,
SLAPI_TARGET_DN
,
slapi_entry_get_dn
(
(
Entry
*
)
e
));
if
(
rc
==
LDAP_SUCCESS
)
{
pb
->
pb_op
->
o_bd
=
be
;
rc
=
be
->
be_has_subordinates
(
pb
->
pb_op
,
(
Entry
*
)
e
,
&
hasSubordinates
);
}
slapi_pblock_destroy
(
pb
);
return
(
hasSubordinates
==
LDAP_COMPARE_TRUE
);
return
(
rc
==
LDAP_SUCCESS
&&
hasSubordinates
==
LDAP_COMPARE_TRUE
);
}
/*
...
...
Write
Preview
Markdown
is supported
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