1 /* operational.c - monitor backend operational attributes function */
3 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
5 * Copyright 1998-2003 The OpenLDAP Foundation.
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted only as authorized by the OpenLDAP
12 * A copy of this license is available in file LICENSE in the
13 * top-level directory of the distribution or, alternatively, at
14 * <http://www.OpenLDAP.org/license.html>.
17 * This work was initially developed by Pierangelo Masarati for inclusion
18 * in OpenLDAP Software.
25 #include <ac/string.h>
26 #include <ac/socket.h>
29 #include "back-monitor.h"
30 #include "proto-back-monitor.h"
33 * sets the supported operational attributes (if required)
37 monitor_back_operational(
45 assert( rs->sr_entry );
47 if ( opattrs || ad_inlist( slap_schema.si_ad_hasSubordinates,
50 struct monitorentrypriv *mp;
52 mp = ( struct monitorentrypriv * )rs->sr_entry->e_private;
56 hs = MONITOR_HAS_CHILDREN( mp );
57 *aa = slap_operational_hasSubordinate( hs );