mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-27 03:20:22 +08:00
49 lines
841 B
C
49 lines
841 B
C
/* operational.c - ldbm backend operational attributes function */
|
|
/*
|
|
* Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.
|
|
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
|
|
*/
|
|
|
|
#include "portable.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <ac/string.h>
|
|
#include <ac/socket.h>
|
|
|
|
#include "slap.h"
|
|
#include "back-ldbm.h"
|
|
#include "proto-back-ldbm.h"
|
|
|
|
/*
|
|
* sets the supported operational attributes (if required)
|
|
*/
|
|
|
|
int
|
|
ldbm_back_operational(
|
|
BackendDB *be,
|
|
Connection *conn,
|
|
Operation *op,
|
|
Entry *e,
|
|
AttributeName *attrs,
|
|
int opattrs,
|
|
Attribute **a )
|
|
{
|
|
Attribute **aa = a;
|
|
|
|
assert( e );
|
|
|
|
if ( opattrs || ad_inlist( slap_schema.si_ad_hasSubordinates, attrs ) ) {
|
|
int hs;
|
|
|
|
hs = has_children( be, e );
|
|
*aa = slap_operational_hasSubordinate( hs );
|
|
if ( *aa != NULL ) {
|
|
aa = &(*aa)->a_next;
|
|
}
|
|
}
|
|
|
|
return 0;
|
|
}
|
|
|