3 * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.
4 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
6 /* backend.c - routines for dealing with back-end databases */
13 #include <ac/string.h>
14 #include <ac/socket.h>
23 * If a module is configured as dynamic, its header should not
24 * get included into slapd. While this is a general rule and does
25 * not have much of an effect in UNIX, this rule should be adhered
26 * to for Windows, where dynamic object code should not be implicitly
27 * imported into slapd without appropriate __declspec(dllimport) directives.
30 #if defined(SLAPD_BDB) && !defined(SLAPD_BDB_DYNAMIC)
31 #include "back-bdb/external.h"
33 #if defined(SLAPD_DNSSRV) && !defined(SLAPD_DNSSRV_DYNAMIC)
34 #include "back-dnssrv/external.h"
36 #if defined(SLAPD_LDAP) && !defined(SLAPD_LDAP_DYNAMIC)
37 #include "back-ldap/external.h"
39 #if defined(SLAPD_LDBM) && !defined(SLAPD_LDBM_DYNAMIC)
40 #include "back-ldbm/external.h"
42 #if defined(SLAPD_META) && !defined(SLAPD_META_DYNAMIC)
43 #include "back-meta/external.h"
45 #if defined(SLAPD_MONITOR) && !defined(SLAPD_MONITOR_DYNAMIC)
46 #include "back-monitor/external.h"
48 #if defined(SLAPD_NULL) && !defined(SLAPD_NULL_DYNAMIC)
49 #include "back-null/external.h"
51 #if defined(SLAPD_PASSWD) && !defined(SLAPD_PASSWD_DYNAMIC)
52 #include "back-passwd/external.h"
54 #if defined(SLAPD_PERL) && !defined(SLAPD_PERL_DYNAMIC)
55 #include "back-perl/external.h"
57 #if defined(SLAPD_SHELL) && !defined(SLAPD_SHELL_DYNAMIC)
58 #include "back-shell/external.h"
60 #if defined(SLAPD_TCL) && !defined(SLAPD_TCL_DYNAMIC)
61 #include "back-tcl/external.h"
63 #if defined(SLAPD_SQL) && !defined(SLAPD_SQL_DYNAMIC)
64 #include "back-sql/external.h"
66 #if defined(SLAPD_PRIVATE) && !defined(SLAPD_PRIVATE_DYNAMIC)
67 #include "private/external.h"
70 static BackendInfo binfo[] = {
71 #if defined(SLAPD_BDB) && !defined(SLAPD_BDB_DYNAMIC)
72 {"bdb", bdb_initialize},
74 #if defined(SLAPD_DNSSRV) && !defined(SLAPD_DNSSRV_DYNAMIC)
75 {"dnssrv", dnssrv_back_initialize},
77 #if defined(SLAPD_LDAP) && !defined(SLAPD_LDAP_DYNAMIC)
78 {"ldap", ldap_back_initialize},
80 #if defined(SLAPD_LDBM) && !defined(SLAPD_LDBM_DYNAMIC)
81 {"ldbm", ldbm_back_initialize},
83 #if defined(SLAPD_META) && !defined(SLAPD_META_DYNAMIC)
84 {"meta", meta_back_initialize},
86 #if defined(SLAPD_MONITOR) && !defined(SLAPD_MONITOR_DYNAMIC)
87 {"monitor", monitor_back_initialize},
89 #if defined(SLAPD_NULL) && !defined(SLAPD_NULL_DYNAMIC)
90 {"null", null_back_initialize},
92 #if defined(SLAPD_PASSWD) && !defined(SLAPD_PASSWD_DYNAMIC)
93 {"passwd", passwd_back_initialize},
95 #if defined(SLAPD_PERL) && !defined(SLAPD_PERL_DYNAMIC)
96 {"perl", perl_back_initialize},
98 #if defined(SLAPD_SHELL) && !defined(SLAPD_SHELL_DYNAMIC)
99 {"shell", shell_back_initialize},
101 #if defined(SLAPD_TCL) && !defined(SLAPD_TCL_DYNAMIC)
102 {"tcl", tcl_back_initialize},
104 #if defined(SLAPD_SQL) && !defined(SLAPD_SQL_DYNAMIC)
105 {"sql", sql_back_initialize},
107 /* for any private backend */
108 #if defined(SLAPD_PRIVATE) && !defined(SLAPD_PRIVATE_DYNAMIC)
109 {"private", private_back_initialize},
114 int nBackendInfo = 0;
115 BackendInfo *backendInfo = NULL;
118 BackendDB *backendDB = NULL;
120 int backend_init(void)
124 if((nBackendInfo != 0) || (backendInfo != NULL)) {
125 /* already initialized */
127 LDAP_LOG( BACKEND, ERR,
128 "backend_init: backend already initialized\n", 0, 0, 0 );
130 Debug( LDAP_DEBUG_ANY,
131 "backend_init: already initialized.\n", 0, 0, 0 );
137 binfo[nBackendInfo].bi_type != NULL;
140 rc = binfo[nBackendInfo].bi_init( &binfo[nBackendInfo] );
144 LDAP_LOG( BACKEND, INFO,
145 "backend_init: initialized for type \"%s\"\n",
146 binfo[nBackendInfo].bi_type, 0, 0 );
148 Debug( LDAP_DEBUG_ANY,
149 "backend_init: initialized for type \"%s\"\n",
150 binfo[nBackendInfo].bi_type, 0, 0 );
152 /* destroy those we've already inited */
157 if ( binfo[nBackendInfo].bi_destroy ) {
158 binfo[nBackendInfo].bi_destroy(
159 &binfo[nBackendInfo] );
166 if ( nBackendInfo > 0) {
176 LDAP_LOG( BACKEND, ERR, "backend_init: failed\n", 0, 0, 0 );
178 Debug( LDAP_DEBUG_ANY,
179 "backend_init: failed\n",
184 #endif /* SLAPD_MODULES */
187 int backend_add(BackendInfo *aBackendInfo)
191 if ((rc = aBackendInfo->bi_init(aBackendInfo)) != 0) {
193 LDAP_LOG( BACKEND, ERR,
194 "backend_add: initialization for type \"%s\" failed\n",
195 aBackendInfo->bi_type, 0, 0 );
197 Debug( LDAP_DEBUG_ANY,
198 "backend_add: initialization for type \"%s\" failed\n",
199 aBackendInfo->bi_type, 0, 0 );
204 /* now add the backend type to the Backend Info List */
206 BackendInfo *newBackendInfo = 0;
208 /* if backendInfo == binfo no deallocation of old backendInfo */
209 if (backendInfo == binfo) {
210 newBackendInfo = ch_calloc(nBackendInfo + 1, sizeof(BackendInfo));
211 AC_MEMCPY(newBackendInfo, backendInfo, sizeof(BackendInfo) *
214 newBackendInfo = ch_realloc(backendInfo, sizeof(BackendInfo) *
217 AC_MEMCPY(&newBackendInfo[nBackendInfo], aBackendInfo,
218 sizeof(BackendInfo));
219 backendInfo = newBackendInfo;
226 int backend_startup(Backend *be)
231 if( ! ( nBackendDB > 0 ) ) {
234 LDAP_LOG( BACKEND, INFO,
235 "backend_startup: %d databases to startup. \n", nBackendDB, 0, 0 );
237 Debug( LDAP_DEBUG_ANY,
238 "backend_startup: %d databases to startup.\n",
245 /* startup a specific backend database */
247 LDAP_LOG( BACKEND, DETAIL1, "backend_startup: starting \"%s\"\n",
248 be->be_suffix[0].bv_val, 0, 0 );
250 Debug( LDAP_DEBUG_TRACE,
251 "backend_startup: starting \"%s\"\n",
252 be->be_suffix[0].bv_val, 0, 0 );
255 if ( be->bd_info->bi_open ) {
256 rc = be->bd_info->bi_open( be->bd_info );
261 LDAP_LOG( BACKEND, CRIT, "backend_startup: bi_open failed!\n", 0, 0, 0 );
263 Debug( LDAP_DEBUG_ANY,
264 "backend_startup: bi_open failed!\n",
271 if ( be->bd_info->bi_db_open ) {
272 rc = be->bd_info->bi_db_open( be );
277 LDAP_LOG( BACKEND, CRIT,
278 "backend_startup: bi_db_open failed! (%d)\n", rc, 0, 0 );
280 Debug( LDAP_DEBUG_ANY,
281 "backend_startup: bi_db_open failed! (%d)\n",
290 /* open each backend type */
291 for( i = 0; i < nBackendInfo; i++ ) {
292 if( backendInfo[i].bi_nDB == 0) {
293 /* no database of this type, don't open */
297 if( backendInfo[i].bi_open ) {
298 rc = backendInfo[i].bi_open(
304 LDAP_LOG( BACKEND, CRIT,
305 "backend_startup: bi_open %d failed!\n", i, 0, 0 );
307 Debug( LDAP_DEBUG_ANY,
308 "backend_startup: bi_open %d failed!\n",
315 /* open each backend database */
316 for( i = 0; i < nBackendDB; i++ ) {
317 /* append global access controls */
318 acl_append( &backendDB[i].be_acl, global_acl );
320 if ( backendDB[i].bd_info->bi_db_open ) {
321 rc = backendDB[i].bd_info->bi_db_open(
327 LDAP_LOG( BACKEND, CRIT,
328 "backend_startup: bi_db_open(%d) failed! (%d)\n", i, rc, 0 );
330 Debug( LDAP_DEBUG_ANY,
331 "backend_startup: bi_db_open(%d) failed! (%d)\n",
341 int backend_num( Backend *be )
345 if( be == NULL ) return -1;
347 for( i = 0; i < nBackendDB; i++ ) {
348 if( be == &backendDB[i] ) return i;
353 int backend_shutdown( Backend *be )
359 /* shutdown a specific backend database */
361 if ( be->bd_info->bi_nDB == 0 ) {
362 /* no database of this type, we never opened it */
366 if ( be->bd_info->bi_db_close ) {
367 be->bd_info->bi_db_close( be );
370 if( be->bd_info->bi_close ) {
371 be->bd_info->bi_close( be->bd_info );
377 /* close each backend database */
378 for( i = 0; i < nBackendDB; i++ ) {
379 if ( backendDB[i].bd_info->bi_db_close ) {
380 backendDB[i].bd_info->bi_db_close(
386 LDAP_LOG( BACKEND, NOTICE,
387 "backend_shutdown: bi_close %s failed!\n",
388 backendDB[i].be_type, 0, 0 );
390 Debug( LDAP_DEBUG_ANY,
391 "backend_close: bi_close %s failed!\n",
392 backendDB[i].be_type, 0, 0 );
397 /* close each backend type */
398 for( i = 0; i < nBackendInfo; i++ ) {
399 if( backendInfo[i].bi_nDB == 0 ) {
400 /* no database of this type */
404 if( backendInfo[i].bi_close ) {
405 backendInfo[i].bi_close(
413 int backend_destroy(void)
418 /* destroy each backend database */
419 for( i = 0, bd = backendDB; i < nBackendDB; i++, bd++ ) {
420 if ( bd->bd_info->bi_db_destroy ) {
421 bd->bd_info->bi_db_destroy( bd );
423 ber_bvarray_free( bd->be_suffix );
424 ber_bvarray_free( bd->be_nsuffix );
425 if ( bd->be_rootdn.bv_val ) free( bd->be_rootdn.bv_val );
426 if ( bd->be_rootndn.bv_val ) free( bd->be_rootndn.bv_val );
427 if ( bd->be_rootpw.bv_val ) free( bd->be_rootpw.bv_val );
428 acl_destroy( bd->be_acl, global_acl );
432 /* destroy each backend type */
433 for( i = 0; i < nBackendInfo; i++ ) {
434 if( backendInfo[i].bi_destroy ) {
435 backendInfo[i].bi_destroy(
441 if (backendInfo != binfo) {
444 #endif /* SLAPD_MODULES */
452 BackendInfo* backend_info(const char *type)
456 /* search for the backend type */
457 for( i = 0; i < nBackendInfo; i++ ) {
458 if( strcasecmp(backendInfo[i].bi_type, type) == 0 ) {
459 return &backendInfo[i];
473 BackendInfo *bi = backend_info(type);
477 fprintf( stderr, "Unrecognized database type (%s)\n", type );
481 backendDB = (BackendDB *) ch_realloc(
483 (nBackendDB + 1) * sizeof(Backend) );
485 memset( &backendDB[nbackends], '\0', sizeof(Backend) );
487 be = &backends[nbackends++];
490 be->be_def_limit = deflimit;
491 be->be_dfltaccess = global_default_access;
493 be->be_restrictops = global_restrictops;
494 be->be_requires = global_requires;
495 be->be_ssf_set = global_ssf_set;
497 /* assign a default depth limit for alias deref */
498 be->be_max_deref_depth = SLAPD_DEFAULT_MAXDEREFDEPTH;
501 rc = bi->bi_db_init( be );
505 fprintf( stderr, "database init failed (%s)\n", type );
519 for ( i = 0; i < nbackends; i++ ) {
520 if ( backends[i].bd_info->bi_db_close ) {
521 (*backends[i].bd_info->bi_db_close)( &backends[i] );
533 ber_len_t len, dnlen = dn->bv_len;
536 for ( i = 0; i < nbackends; i++ ) {
537 for ( j = 0; backends[i].be_nsuffix != NULL &&
538 backends[i].be_nsuffix[j].bv_val != NULL; j++ )
540 if (( backends[i].be_flags & SLAP_BFLAG_GLUE_SUBORDINATE )
546 len = backends[i].be_nsuffix[j].bv_len;
549 /* suffix is longer than DN */
554 * input DN is normalized, so the separator check
555 * need not look at escaping
557 if ( len && len < dnlen &&
558 !DN_SEPARATOR( dn->bv_val[(dnlen-len)-1] ))
563 if ( strcmp( backends[i].be_nsuffix[j].bv_val,
564 &dn->bv_val[dnlen-len] ) == 0 )
569 if( manageDSAit && len == dnlen ) {
586 struct berval *bvsuffix
591 for ( i = 0; be->be_nsuffix != NULL && be->be_nsuffix[i].bv_val != NULL; i++ ) {
592 if ( ber_bvcmp( &be->be_nsuffix[i], bvsuffix ) == 0 ) {
601 be_isroot( Backend *be, struct berval *ndn )
603 if ( !ndn->bv_len ) {
607 if ( !be->be_rootndn.bv_len ) {
611 return dn_match( &be->be_rootndn, ndn );
615 be_isupdate( Backend *be, struct berval *ndn )
617 if ( !ndn->bv_len ) {
621 if ( !be->be_update_ndn.bv_len ) {
625 return dn_match( &be->be_update_ndn, ndn );
629 be_root_dn( Backend *be )
631 return &be->be_rootdn;
635 be_isroot_pw( Backend *be,
638 struct berval *cred )
642 if ( ! be_isroot( be, ndn ) ) {
646 if( be->be_rootpw.bv_len == 0 ) {
650 #if defined( SLAPD_CRYPT ) || defined( SLAPD_SPASSWD )
651 ldap_pvt_thread_mutex_lock( &passwd_mutex );
653 lutil_passwd_sasl_conn = conn->c_sasl_context;
657 result = lutil_passwd( &be->be_rootpw, cred, NULL );
659 #if defined( SLAPD_CRYPT ) || defined( SLAPD_SPASSWD )
661 lutil_passwd_sasl_conn = NULL;
663 ldap_pvt_thread_mutex_unlock( &passwd_mutex );
677 if ( be->be_release ) {
678 /* free and release entry from backend */
679 return be->be_release( be, conn, op, e, rw );
695 for ( i = 0; i < nbackends; i++ ) {
696 if ( backends[i].be_unbind ) {
697 (*backends[i].be_unbind)( &backends[i], conn, op );
705 backend_connection_init(
711 for ( i = 0; i < nbackends; i++ ) {
712 if ( backends[i].be_connection_init ) {
713 (*backends[i].be_connection_init)( &backends[i], conn);
721 backend_connection_destroy(
727 for ( i = 0; i < nbackends; i++ ) {
728 if ( backends[i].be_connection_destroy ) {
729 (*backends[i].be_connection_destroy)( &backends[i], conn);
737 backend_check_controls(
745 if( ctrls == NULL ) {
749 for( ; *ctrls != NULL ; ctrls++ ) {
750 if( (*ctrls)->ldctl_iscritical &&
751 !charray_inlist( be->be_controls, (*ctrls)->ldctl_oid ) )
753 *text = "control unavailable in context";
754 return LDAP_UNAVAILABLE_CRITICAL_EXTENSION;
762 backend_check_restrictions(
766 struct berval *opdata,
770 slap_mask_t restrictops;
771 slap_mask_t requires;
779 rc = backend_check_controls( be, conn, op, text );
781 if( rc != LDAP_SUCCESS ) {
785 restrictops = be->be_restrictops;
786 requires = be->be_requires;
787 ssf = &be->be_ssf_set;
790 restrictops = global_restrictops;
791 requires = global_requires;
792 ssf = &global_ssf_set;
795 switch( op->o_tag ) {
797 opflag = SLAP_RESTRICT_OP_ADD;
801 opflag = SLAP_RESTRICT_OP_BIND;
804 case LDAP_REQ_COMPARE:
805 opflag = SLAP_RESTRICT_OP_COMPARE;
807 case LDAP_REQ_DELETE:
809 opflag = SLAP_RESTRICT_OP_DELETE;
811 case LDAP_REQ_EXTENDED:
812 opflag = SLAP_RESTRICT_OP_EXTENDED;
815 /* treat unspecified as a modify */
816 opflag = SLAP_RESTRICT_OP_MODIFY;
822 struct berval bv = BER_BVC( LDAP_EXOP_START_TLS );
823 if( ber_bvcmp( opdata, &bv ) == 0 ) {
831 struct berval bv = BER_BVC( LDAP_EXOP_X_WHO_AM_I );
832 if( ber_bvcmp( opdata, &bv ) == 0 ) {
837 /* treat everything else as a modify */
838 opflag = SLAP_RESTRICT_OP_MODIFY;
842 case LDAP_REQ_MODIFY:
844 opflag = SLAP_RESTRICT_OP_MODIFY;
846 case LDAP_REQ_RENAME:
848 opflag = SLAP_RESTRICT_OP_RENAME;
850 case LDAP_REQ_SEARCH:
851 opflag = SLAP_RESTRICT_OP_SEARCH;
853 case LDAP_REQ_UNBIND:
858 *text = "restrict operations internal error";
863 /* these checks don't apply to StartTLS */
865 if( op->o_transport_ssf < ssf->sss_transport ) {
866 *text = "transport confidentiality required";
867 return LDAP_CONFIDENTIALITY_REQUIRED;
870 if( op->o_tls_ssf < ssf->sss_tls ) {
871 *text = "TLS confidentiality required";
872 return LDAP_CONFIDENTIALITY_REQUIRED;
875 if( op->o_tag != LDAP_REQ_BIND || opdata == NULL ) {
876 /* these checks don't apply to SASL bind */
878 if( op->o_sasl_ssf < ssf->sss_sasl ) {
879 *text = "SASL confidentiality required";
880 return LDAP_CONFIDENTIALITY_REQUIRED;
883 if( op->o_ssf < ssf->sss_ssf ) {
884 *text = "confidentiality required";
885 return LDAP_CONFIDENTIALITY_REQUIRED;
890 if( op->o_transport_ssf < ssf->sss_update_transport ) {
891 *text = "transport update confidentiality required";
892 return LDAP_CONFIDENTIALITY_REQUIRED;
895 if( op->o_tls_ssf < ssf->sss_update_tls ) {
896 *text = "TLS update confidentiality required";
897 return LDAP_CONFIDENTIALITY_REQUIRED;
900 if( op->o_sasl_ssf < ssf->sss_update_sasl ) {
901 *text = "SASL update confidentiality required";
902 return LDAP_CONFIDENTIALITY_REQUIRED;
905 if( op->o_ssf < ssf->sss_update_ssf ) {
906 *text = "update confidentiality required";
907 return LDAP_CONFIDENTIALITY_REQUIRED;
910 if( op->o_ndn.bv_len == 0 ) {
911 *text = "modifications require authentication";
912 return LDAP_OPERATIONS_ERROR;
918 /* these checks don't apply to Bind, StartTLS, or Unbind */
920 if( requires & SLAP_REQUIRE_STRONG ) {
921 /* should check mechanism */
922 if( ( op->o_transport_ssf < ssf->sss_transport
923 && op->o_authmech.bv_len == 0 ) || op->o_dn.bv_len == 0 )
925 *text = "strong authentication required";
926 return LDAP_STRONG_AUTH_REQUIRED;
930 if( requires & SLAP_REQUIRE_SASL ) {
931 if( op->o_authmech.bv_len == 0 || op->o_dn.bv_len == 0 ) {
932 *text = "SASL authentication required";
933 return LDAP_STRONG_AUTH_REQUIRED;
937 if( requires & SLAP_REQUIRE_AUTHC ) {
938 if( op->o_dn.bv_len == 0 ) {
939 *text = "authentication required";
940 return LDAP_UNWILLING_TO_PERFORM;
944 if( requires & SLAP_REQUIRE_BIND ) {
946 ldap_pvt_thread_mutex_lock( &conn->c_mutex );
947 version = conn->c_protocol;
948 ldap_pvt_thread_mutex_unlock( &conn->c_mutex );
951 /* no bind has occurred */
952 *text = "BIND required";
953 return LDAP_OPERATIONS_ERROR;
957 if( requires & SLAP_REQUIRE_LDAP_V3 ) {
958 if( op->o_protocol < LDAP_VERSION3 ) {
959 /* no bind has occurred */
960 *text = "operation restricted to LDAPv3 clients";
961 return LDAP_OPERATIONS_ERROR;
966 if( restrictops & opflag ) {
967 if( restrictops == SLAP_RESTRICT_OP_READS ) {
968 *text = "read operations restricted";
970 *text = "operation restricted";
972 return LDAP_UNWILLING_TO_PERFORM;
978 int backend_check_referrals(
985 int rc = LDAP_SUCCESS;
987 if( be->be_chk_referrals ) {
990 rc = be->be_chk_referrals( be,
991 conn, op, dn, ndn, &text );
993 if( rc != LDAP_SUCCESS && rc != LDAP_REFERRAL ) {
994 send_ldap_result( conn, op, rc,
995 NULL, text, NULL, NULL );
1008 struct berval *gr_ndn,
1009 struct berval *op_ndn,
1010 ObjectClass *group_oc,
1011 AttributeDescription *group_at
1016 if ( op->o_abandon ) return SLAPD_ABANDON;
1018 if ( !dn_match( &target->e_nname, gr_ndn ) ) {
1019 /* we won't attempt to send it to a different backend */
1021 be = select_backend( gr_ndn, 0, 0 );
1024 return LDAP_NO_SUCH_OBJECT;
1028 ldap_pvt_thread_mutex_lock( &conn->c_mutex );
1030 for (g = conn->c_groups; g; g=g->ga_next) {
1031 if (g->ga_be != be || g->ga_oc != group_oc ||
1032 g->ga_at != group_at || g->ga_len != gr_ndn->bv_len)
1034 if (strcmp( g->ga_ndn, gr_ndn->bv_val ) == 0)
1038 ldap_pvt_thread_mutex_unlock( &conn->c_mutex );
1044 if( be->be_group ) {
1045 int res = be->be_group( be, conn, op,
1046 target, gr_ndn, op_ndn,
1047 group_oc, group_at );
1049 if (op->o_tag != LDAP_REQ_BIND) {
1050 g = ch_malloc(sizeof(GroupAssertion) + gr_ndn->bv_len);
1052 g->ga_oc = group_oc;
1053 g->ga_at = group_at;
1055 g->ga_len = gr_ndn->bv_len;
1056 strcpy(g->ga_ndn, gr_ndn->bv_val);
1057 ldap_pvt_thread_mutex_lock( &conn->c_mutex );
1058 g->ga_next = conn->c_groups;
1060 ldap_pvt_thread_mutex_unlock( &conn->c_mutex );
1066 return LDAP_UNWILLING_TO_PERFORM;
1076 AttributeDescription *entry_at,
1080 if ( target == NULL || !dn_match( &target->e_nname, edn ) ) {
1081 /* we won't attempt to send it to a different backend */
1083 be = select_backend( edn, 0, 0 );
1086 return LDAP_NO_SUCH_OBJECT;
1090 if( be->be_attribute ) {
1091 return be->be_attribute( be, conn, op, target, edn,
1095 return LDAP_UNWILLING_TO_PERFORM;
1098 Attribute *backend_operational(
1103 AttributeName *attrs,
1106 Attribute *a = NULL, **ap = &a;
1108 #ifdef SLAPD_SCHEMA_DN
1109 *ap = slap_operational_subschemaSubentry();
1110 ap = &(*ap)->a_next;
1114 * If operational attributes (allegedly) are required,
1115 * and the backend supports specific operational attributes,
1116 * add them to the attribute list
1118 if ( ( opattrs || attrs ) && be && be->be_operational != NULL ) {
1119 ( void )be->be_operational( be, conn, op, e, attrs, opattrs, ap );