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