1 /* operational.c - ldbm backend operational attributes function */
3 * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
4 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
11 #include <ac/string.h>
12 #include <ac/socket.h>
15 #include "back-ldbm.h"
16 #include "proto-back-ldbm.h"
19 * sets *hasSubordinates to LDAP_COMPARE_TRUE/LDAP_COMPARE_FALSE
20 * if the entry has children or not.
23 ldbm_back_hasSubordinates(
28 int *hasSubordinates )
30 if ( has_children( be, e ) ) {
31 *hasSubordinates = LDAP_COMPARE_TRUE;
34 *hasSubordinates = LDAP_COMPARE_FALSE;
41 * sets the supported operational attributes (if required)
44 ldbm_back_operational(
57 if ( opattrs || ad_inlist( slap_schema.si_ad_hasSubordinates, attrs ) ) {
60 hs = has_children( be, e );
61 *aa = slap_operational_hasSubordinate( hs );