1 /* config.c - ldap backend configuration file routine */
3 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
5 * Copyright 2003-2005 The OpenLDAP Foundation.
6 * Portions Copyright 1999-2003 Howard Chu.
7 * Portions Copyright 2000-2003 Pierangelo Masarati.
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted only as authorized by the OpenLDAP
14 * A copy of this license is available in the file LICENSE in the
15 * top-level directory of the distribution or, alternatively, at
16 * <http://www.OpenLDAP.org/license.html>.
19 * This work was initially developed by the Howard Chu for inclusion
20 * in OpenLDAP Software and subsequently enhanced by Pierangelo
28 #include <ac/string.h>
29 #include <ac/socket.h>
32 #include "back-ldap.h"
35 /* for advanced URL parsing */
36 #include "../../../libraries/libldap/ldap-int.h"
38 static SLAP_EXTOP_MAIN_FN ldap_back_exop_whoami;
41 parse_idassert( BackendDB *be, const char *fname, int lineno,
42 int argc, char **argv );
52 struct ldapinfo *li = (struct ldapinfo *) be->be_private;
55 fprintf( stderr, "%s: line %d: ldap backend info is null!\n",
60 /* server address to query (depricated, use "uri" directive) */
61 if ( strcasecmp( argv[0], "server" ) == 0 ) {
65 "%s: line %d: \"server <address>\" directive is deprecated\n",
70 "%s: line %d: missing address in \"server <address>\" line\n",
74 if ( li->url != NULL ) {
78 l = strlen( argv[1] ) + STRLENOF( "ldap:///") + 1;
79 li->url = ch_calloc( l, sizeof( char ) );
80 if ( li->url == NULL ) {
81 fprintf( stderr, "%s: line %d: malloc failed\n" );
85 snprintf( li->url, l, "ldap://%s/", argv[1] );
87 /* URI of server to query (preferred over "server" directive) */
88 } else if ( strcasecmp( argv[0], "uri" ) == 0 ) {
93 fprintf( stderr, "%s: line %d: "
95 "in \"uri <uri>\" line\n",
99 if ( li->url != NULL ) {
102 if ( li->lud != NULL ) {
103 ldap_free_urllist( li->lud );
107 /* PARANOID: DN and more are not required nor allowed */
108 urlrc = ldap_url_parselist_ext( &li->lud, argv[ 1 ], "\t" );
110 urlrc = ldap_url_parselist( &li->lud, argv[ 1 ] );
112 if ( urlrc != LDAP_URL_SUCCESS ) {
116 case LDAP_URL_ERR_MEM:
119 case LDAP_URL_ERR_PARAM:
120 why = "parameter is bad";
122 case LDAP_URL_ERR_BADSCHEME:
123 why = "URL doesn't begin with \"[c]ldap[si]://\"";
125 case LDAP_URL_ERR_BADENCLOSURE:
126 why = "URL is missing trailing \">\"";
128 case LDAP_URL_ERR_BADURL:
130 case LDAP_URL_ERR_BADHOST:
131 why = "host/port is bad";
133 case LDAP_URL_ERR_BADATTRS:
134 why = "bad (or missing) attributes";
136 case LDAP_URL_ERR_BADSCOPE:
137 why = "scope string is invalid (or missing)";
139 case LDAP_URL_ERR_BADFILTER:
140 why = "bad or missing filter";
142 case LDAP_URL_ERR_BADEXTS:
143 why = "bad or missing extensions";
146 why = "unknown reason";
149 fprintf( stderr, "%s: line %d: "
150 "unable to parse uri \"%s\" "
151 "in \"uri <uri>\" line: %s\n",
152 fname, lineno, argv[ 1 ], why );
156 for ( i = 0, tmpludp = li->lud;
158 i++, tmpludp = tmpludp->lud_next )
160 if ( ( tmpludp->lud_dn != NULL
161 && tmpludp->lud_dn[0] != '\0' )
162 || tmpludp->lud_attrs != NULL
163 || tmpludp->lud_filter != NULL
164 || tmpludp->lud_exts != NULL )
166 fprintf( stderr, "%s: line %d: "
167 "warning, only protocol, "
168 "host and port allowed "
169 "in \"uri <uri>\" statement "
170 "for uri #%d of \"%s\"\n",
171 fname, lineno, i, argv[1] );
176 for ( tmpludp = li->lud; tmpludp; tmpludp = tmpludp->lud_next ) {
179 ber_len_t oldlen = 0, len;
183 tmplud.lud_attrs = NULL;
184 tmplud.lud_filter = NULL;
185 if ( !ldap_is_ldapi_url( argv[ 1 ] ) ) {
186 tmplud.lud_exts = NULL;
187 tmplud.lud_crit_exts = 0;
190 tmpurl = ldap_url_desc2str( &tmplud );
192 if ( tmpurl == NULL ) {
193 fprintf( stderr, "%s: line %d: "
194 "unable to rebuild uri "
195 "in \"uri <uri>\" statement "
197 fname, lineno, argv[ 1 ] );
201 len = strlen( tmpurl );
203 oldlen = strlen( li->url ) + STRLENOF( " " );
205 li->url = ch_realloc( li->url, oldlen + len + 1);
207 li->url[oldlen - 1] = " ";
209 AC_MEMCPY( &li->url[oldlen], tmpurl, len + 1 );
213 li->url = ch_strdup( argv[ 1 ] );
216 } else if ( strncasecmp( argv[0], "tls-", STRLENOF( "tls-" ) ) == 0 ) {
219 if ( strcasecmp( argv[0], "tls-start" ) == 0 ) {
222 "%s: line %d: tls-start takes no arguments\n",
226 li->flags |= ( LDAP_BACK_F_USE_TLS | LDAP_BACK_F_TLS_CRITICAL );
229 } else if ( strcasecmp( argv[0], "tls-try-start" ) == 0 ) {
232 "%s: line %d: tls-try-start takes no arguments\n",
236 li->flags &= ~LDAP_BACK_F_TLS_CRITICAL;
237 li->flags |= LDAP_BACK_F_USE_TLS;
239 /* propagate start tls */
240 } else if ( strcasecmp( argv[0], "tls-propagate" ) == 0 ) {
243 "%s: line %d: tls-propagate takes no arguments\n",
247 li->flags |= ( LDAP_BACK_F_PROPAGATE_TLS | LDAP_BACK_F_TLS_CRITICAL );
250 } else if ( strcasecmp( argv[0], "tls-try-propagate" ) == 0 ) {
253 "%s: line %d: tls-try-propagate takes no arguments\n",
257 li->flags &= ~LDAP_BACK_F_TLS_CRITICAL;
258 li->flags |= LDAP_BACK_F_PROPAGATE_TLS;
261 /* name to use for ldap_back_group */
262 } else if ( strcasecmp( argv[0], "acl-authcdn" ) == 0
263 || strcasecmp( argv[0], "binddn" ) == 0 )
267 "%s: line %d: missing name in \"%s <name>\" line\n",
268 fname, lineno, argv[0] );
272 if ( strcasecmp( argv[0], "binddn" ) == 0 ) {
273 fprintf( stderr, "%s: line %d: "
274 "\"binddn\" statement is deprecated; "
275 "use \"acl-authcDN\" instead\n",
277 /* FIXME: some day we'll need to throw an error */
280 ber_str2bv( argv[1], 0, 1, &li->acl_authcDN );
282 /* password to use for ldap_back_group */
283 } else if ( strcasecmp( argv[0], "acl-passwd" ) == 0
284 || strcasecmp( argv[0], "bindpw" ) == 0 )
288 "%s: line %d: missing password in \"%s <password>\" line\n",
289 fname, lineno, argv[0] );
293 if ( strcasecmp( argv[0], "bindpw" ) == 0 ) {
294 fprintf( stderr, "%s: line %d: "
295 "\"bindpw\" statement is deprecated; "
296 "use \"acl-passwd\" instead\n",
298 /* FIXME: some day we'll need to throw an error */
301 ber_str2bv( argv[1], 0, 1, &li->acl_passwd );
303 /* identity assertion stuff... */
304 } else if ( strncasecmp( argv[0], "idassert-", STRLENOF( "idassert-" ) ) == 0
305 || strncasecmp( argv[0], "proxyauthz", STRLENOF( "proxyauthz" ) ) == 0 )
307 /* NOTE: "proxyauthz{DN,pw}" was initially used; it's now
308 * deprected and undocumented, it can be dropped at some
309 * point, since nobody should be really using it */
310 return parse_idassert( be, fname, lineno, argc, argv );
312 /* save bind creds for referral rebinds? */
313 } else if ( strcasecmp( argv[0], "rebind-as-user" ) == 0 ) {
316 "%s: line %d: \"rebind-as-user\" takes no arguments\n",
320 li->flags |= LDAP_BACK_F_SAVECRED;
322 } else if ( strcasecmp( argv[0], "chase-referrals" ) == 0 ) {
325 "%s: line %d: \"chase-referrals\" takes no arguments\n",
330 li->flags |= LDAP_BACK_F_CHASE_REFERRALS;
332 } else if ( strcasecmp( argv[0], "dont-chase-referrals" ) == 0 ) {
335 "%s: line %d: \"dont-chase-referrals\" takes no arguments\n",
340 li->flags &= ~LDAP_BACK_F_CHASE_REFERRALS;
342 /* intercept exop_who_am_i? */
343 } else if ( strcasecmp( argv[0], "proxy-whoami" ) == 0 ) {
346 "%s: line %d: proxy-whoami takes no arguments\n",
350 load_extop( (struct berval *)&slap_EXOP_WHOAMI,
351 0, ldap_back_exop_whoami );
353 /* FIXME: legacy: intercept old rewrite/remap directives
354 * and try to start the rwm overlay */
355 } else if ( strcasecmp( argv[0], "suffixmassage" ) == 0
356 || strcasecmp( argv[0], "map" ) == 0
357 || strncasecmp( argv[0], "rewrite", STRLENOF( "rewrite" ) ) == 0 )
359 fprintf( stderr, "%s: line %d: "
360 "rewrite/remap capabilities have been moved "
361 "to the \"rwm\" overlay; see slapo-rwm(5) "
362 "for details. I'm trying to do my best "
363 "to preserve backwards compatibility...\n",
366 if ( li->rwm_started == 0 ) {
367 if ( overlay_config( be, "rwm" ) ) {
368 fprintf( stderr, "%s: line %d: "
369 "unable to configure the \"rwm\" "
370 "overlay, required by directive "
372 fname, lineno, argv[0] );
373 #if SLAPD_OVER_RWM == SLAPD_MOD_DYNAMIC
374 fprintf( stderr, "\thint: try loading the \"rwm.la\" dynamic module.\n" );
375 #endif /* SLAPD_OVER_RWM == SLAPD_MOD_DYNAMIC */
379 fprintf( stderr, "%s: line %d: back-ldap: "
380 "automatically starting \"rwm\" overlay, "
381 "triggered by \"%s\" directive.\n",
382 fname, lineno, argv[ 0 ] );
386 return ( *be->bd_info->bi_db_config )( be, fname, lineno, argc, argv );
389 return SLAP_CONF_UNKNOWN;
393 return SLAP_CONF_UNKNOWN;
400 ldap_back_exop_whoami(
404 struct berval *bv = NULL;
406 if ( op->oq_extended.rs_reqdata != NULL ) {
407 /* no request data should be provided */
408 rs->sr_text = "no request data expected";
409 return rs->sr_err = LDAP_PROTOCOL_ERROR;
412 rs->sr_err = backend_check_restrictions( op, rs,
413 (struct berval *)&slap_EXOP_WHOAMI );
414 if( rs->sr_err != LDAP_SUCCESS ) return rs->sr_err;
416 /* if auth'd by back-ldap and request is proxied, forward it */
417 if ( op->o_conn->c_authz_backend && !strcmp(op->o_conn->c_authz_backend->be_type, "ldap" ) && !dn_match(&op->o_ndn, &op->o_conn->c_ndn)) {
420 LDAPControl c, *ctrls[2] = {NULL, NULL};
427 op2.o_ndn = op->o_conn->c_ndn;
428 lc = ldap_back_getconn(&op2, rs, LDAP_BACK_SENDERR);
429 if (!lc || !ldap_back_dobind( lc, op, rs, LDAP_BACK_SENDERR )) {
432 c.ldctl_oid = LDAP_CONTROL_PROXY_AUTHZ;
433 c.ldctl_iscritical = 1;
434 c.ldctl_value.bv_val = ch_malloc(op->o_ndn.bv_len+4);
435 c.ldctl_value.bv_len = op->o_ndn.bv_len + 3;
436 strcpy(c.ldctl_value.bv_val, "dn:");
437 strcpy(c.ldctl_value.bv_val+3, op->o_ndn.bv_val);
440 rs->sr_err = ldap_whoami(lc->lc_ld, ctrls, NULL, &msgid);
441 if (rs->sr_err == LDAP_SUCCESS) {
442 if (ldap_result(lc->lc_ld, msgid, 1, NULL, &res) == -1) {
443 ldap_get_option(lc->lc_ld, LDAP_OPT_ERROR_NUMBER,
445 if ( rs->sr_err == LDAP_SERVER_DOWN && do_retry ) {
447 if ( ldap_back_retry( lc, op, rs, LDAP_BACK_SENDERR ) )
450 ldap_back_freeconn( op, lc );
454 rs->sr_err = ldap_parse_whoami(lc->lc_ld, res, &bv);
458 ch_free(c.ldctl_value.bv_val);
459 if (rs->sr_err != LDAP_SUCCESS) {
460 rs->sr_err = slap_map_api2result( rs );
463 /* else just do the same as before */
464 bv = (struct berval *) ch_malloc( sizeof(struct berval) );
465 if ( !BER_BVISEMPTY( &op->o_dn ) ) {
466 bv->bv_len = op->o_dn.bv_len + sizeof("dn:") - 1;
467 bv->bv_val = ch_malloc( bv->bv_len + 1 );
468 AC_MEMCPY( bv->bv_val, "dn:", sizeof("dn:") - 1 );
469 AC_MEMCPY( &bv->bv_val[sizeof("dn:") - 1], op->o_dn.bv_val,
471 bv->bv_val[bv->bv_len] = '\0';
492 struct ldapinfo *li = (struct ldapinfo *) be->be_private;
494 /* identity assertion mode */
495 if ( strcasecmp( argv[0], "idassert-mode" ) == 0 ) {
497 Debug( LDAP_DEBUG_ANY,
498 "%s: line %d: illegal args number %d in \"idassert-mode <args> [<flag> [...]]\" line.\n",
499 fname, lineno, argc );
503 if ( strcasecmp( argv[1], "legacy" ) == 0 ) {
504 /* will proxyAuthz as client's identity only if bound */
505 li->idassert_mode = LDAP_BACK_IDASSERT_LEGACY;
507 } else if ( strcasecmp( argv[1], "self" ) == 0 ) {
508 /* will proxyAuthz as client's identity */
509 li->idassert_mode = LDAP_BACK_IDASSERT_SELF;
511 } else if ( strcasecmp( argv[1], "anonymous" ) == 0 ) {
512 /* will proxyAuthz as anonymous */
513 li->idassert_mode = LDAP_BACK_IDASSERT_ANONYMOUS;
515 } else if ( strcasecmp( argv[1], "none" ) == 0 ) {
516 /* will not proxyAuthz */
517 li->idassert_mode = LDAP_BACK_IDASSERT_NOASSERT;
523 /* will proxyAuthz as argv[1] */
524 ber_str2bv( argv[1], 0, 0, &id );
526 if ( strncasecmp( id.bv_val, "u:", STRLENOF( "u:" ) ) == 0 ) {
527 /* force lowercase... */
529 li->idassert_mode = LDAP_BACK_IDASSERT_OTHERID;
530 ber_dupbv( &li->idassert_authzID, &id );
536 if ( strncasecmp( id.bv_val, "dn:", STRLENOF( "dn:" ) ) == 0 ) {
537 id.bv_val += STRLENOF( "dn:" );
538 id.bv_len -= STRLENOF( "dn:" );
541 rc = dnNormalize( 0, NULL, NULL, &id, &dn, NULL );
542 if ( rc != LDAP_SUCCESS ) {
543 Debug( LDAP_DEBUG_ANY,
544 "%s: line %d: idassert ID \"%s\" is not a valid DN\n",
545 fname, lineno, argv[1] );
549 li->idassert_authzID.bv_len = STRLENOF( "dn:" ) + dn.bv_len;
550 li->idassert_authzID.bv_val = ch_malloc( li->idassert_authzID.bv_len + 1 );
551 AC_MEMCPY( li->idassert_authzID.bv_val, "dn:", STRLENOF( "dn:" ) );
552 AC_MEMCPY( &li->idassert_authzID.bv_val[ STRLENOF( "dn:" ) ], dn.bv_val, dn.bv_len + 1 );
553 ch_free( dn.bv_val );
555 li->idassert_mode = LDAP_BACK_IDASSERT_OTHERDN;
559 for ( argc -= 2, argv += 2; argc--; argv++ ) {
560 if ( strcasecmp( argv[0], "override" ) == 0 ) {
561 li->idassert_flags |= LDAP_BACK_AUTH_OVERRIDE;
564 Debug( LDAP_DEBUG_ANY,
565 "%s: line %d: unknown flag \"%s\" "
566 "in \"idassert-mode <args> "
567 "[<flags>]\" line.\n",
568 fname, lineno, argv[0] );
573 /* name to use for proxyAuthz propagation */
574 } else if ( strcasecmp( argv[0], "idassert-authcdn" ) == 0
575 || strcasecmp( argv[0], "proxyauthzdn" ) == 0 )
580 /* FIXME: "proxyauthzdn" is no longer documented, and
581 * temporarily supported for backwards compatibility */
585 "%s: line %d: missing name in \"%s <name>\" line\n",
586 fname, lineno, argv[0] );
590 if ( !BER_BVISNULL( &li->idassert_authcDN ) ) {
591 fprintf( stderr, "%s: line %d: "
592 "authcDN already defined; replacing...\n",
594 ch_free( li->idassert_authcDN.bv_val );
597 ber_str2bv( argv[1], 0, 0, &dn );
598 rc = dnNormalize( 0, NULL, NULL, &dn, &li->idassert_authcDN, NULL );
599 if ( rc != LDAP_SUCCESS ) {
600 Debug( LDAP_DEBUG_ANY,
601 "%s: line %d: idassert ID \"%s\" is not a valid DN\n",
602 fname, lineno, argv[1] );
606 /* password to use for proxyAuthz propagation */
607 } else if ( strcasecmp( argv[0], "idassert-passwd" ) == 0
608 || strcasecmp( argv[0], "proxyauthzpw" ) == 0 )
610 /* FIXME: "proxyauthzpw" is no longer documented, and
611 * temporarily supported for backwards compatibility */
615 "%s: line %d: missing password in \"%s <password>\" line\n",
616 fname, lineno, argv[0] );
620 if ( !BER_BVISNULL( &li->idassert_passwd ) ) {
621 fprintf( stderr, "%s: line %d: "
622 "passwd already defined; replacing...\n",
624 ch_free( li->idassert_passwd.bv_val );
627 ber_str2bv( argv[1], 0, 1, &li->idassert_passwd );
629 /* rules to accept identity assertion... */
630 } else if ( strcasecmp( argv[0], "idassert-authzFrom" ) == 0 ) {
633 ber_str2bv( argv[1], 0, 1, &rule );
635 ber_bvarray_add( &li->idassert_authz, &rule );
637 } else if ( strcasecmp( argv[0], "idassert-method" ) == 0 ) {
640 "%s: line %d: missing method in \"%s <method>\" line\n",
641 fname, lineno, argv[0] );
645 if ( strcasecmp( argv[1], "none" ) == 0 ) {
646 /* FIXME: is this at all useful? */
647 li->idassert_authmethod = LDAP_AUTH_NONE;
651 "%s: line %d: trailing args in \"%s %s ...\" line ignored\"\n",
652 fname, lineno, argv[0], argv[1] );
655 } else if ( strcasecmp( argv[1], "simple" ) == 0 ) {
656 li->idassert_authmethod = LDAP_AUTH_SIMPLE;
660 "%s: line %d: trailing args in \"%s %s ...\" line ignored\"\n",
661 fname, lineno, argv[0], argv[1] );
664 } else if ( strcasecmp( argv[1], "sasl" ) == 0 ) {
665 #ifdef HAVE_CYRUS_SASL
668 for ( arg = 2; arg < argc; arg++ ) {
669 if ( strncasecmp( argv[arg], "mech=", STRLENOF( "mech=" ) ) == 0 ) {
670 char *val = argv[arg] + STRLENOF( "mech=" );
672 if ( !BER_BVISNULL( &li->idassert_sasl_mech ) ) {
673 fprintf( stderr, "%s: line %d: "
674 "SASL mech already defined; replacing...\n",
676 ch_free( li->idassert_sasl_mech.bv_val );
678 ber_str2bv( val, 0, 1, &li->idassert_sasl_mech );
680 } else if ( strncasecmp( argv[arg], "realm=", STRLENOF( "realm=" ) ) == 0 ) {
681 char *val = argv[arg] + STRLENOF( "realm=" );
683 if ( !BER_BVISNULL( &li->idassert_sasl_realm ) ) {
684 fprintf( stderr, "%s: line %d: "
685 "SASL realm already defined; replacing...\n",
687 ch_free( li->idassert_sasl_realm.bv_val );
689 ber_str2bv( val, 0, 1, &li->idassert_sasl_realm );
691 } else if ( strncasecmp( argv[arg], "authcdn=", STRLENOF( "authcdn=" ) ) == 0 ) {
692 char *val = argv[arg] + STRLENOF( "authcdn=" );
696 if ( !BER_BVISNULL( &li->idassert_authcDN ) ) {
697 fprintf( stderr, "%s: line %d: "
698 "SASL authcDN already defined; replacing...\n",
700 ch_free( li->idassert_authcDN.bv_val );
702 if ( strncasecmp( argv[arg], "dn:", STRLENOF( "dn:" ) ) == 0 ) {
703 val += STRLENOF( "dn:" );
706 ber_str2bv( val, 0, 0, &dn );
707 rc = dnNormalize( 0, NULL, NULL, &dn, &li->idassert_authcDN, NULL );
708 if ( rc != LDAP_SUCCESS ) {
709 Debug( LDAP_DEBUG_ANY,
710 "%s: line %d: SASL authcdn \"%s\" is not a valid DN\n",
711 fname, lineno, val );
715 } else if ( strncasecmp( argv[arg], "authcid=", STRLENOF( "authcid=" ) ) == 0 ) {
716 char *val = argv[arg] + STRLENOF( "authcid=" );
718 if ( !BER_BVISNULL( &li->idassert_authcID ) ) {
719 fprintf( stderr, "%s: line %d: "
720 "SASL authcID already defined; replacing...\n",
722 ch_free( li->idassert_authcID.bv_val );
724 if ( strncasecmp( argv[arg], "u:", STRLENOF( "u:" ) ) == 0 ) {
725 val += STRLENOF( "u:" );
727 ber_str2bv( val, 0, 1, &li->idassert_authcID );
729 } else if ( strncasecmp( argv[arg], "cred=", STRLENOF( "cred=" ) ) == 0 ) {
730 char *val = argv[arg] + STRLENOF( "cred=" );
732 if ( !BER_BVISNULL( &li->idassert_passwd ) ) {
733 fprintf( stderr, "%s: line %d: "
734 "SASL cred already defined; replacing...\n",
736 ch_free( li->idassert_passwd.bv_val );
738 ber_str2bv( val, 0, 1, &li->idassert_passwd );
740 } else if ( strncasecmp( argv[arg], "authz=", STRLENOF( "authz=" ) ) == 0 ) {
741 char *val = argv[arg] + STRLENOF( "authz=" );
743 if ( strcasecmp( val, "proxyauthz" ) == 0 ) {
744 li->idassert_flags &= ~LDAP_BACK_AUTH_NATIVE_AUTHZ;
746 } else if ( strcasecmp( val, "native" ) == 0 ) {
747 li->idassert_flags |= LDAP_BACK_AUTH_NATIVE_AUTHZ;
750 fprintf( stderr, "%s: line %d: "
751 "unknown authz mode \"%s\"\n",
752 fname, lineno, val );
757 fprintf( stderr, "%s: line %d: "
758 "unknown SASL parameter %s\n",
759 fname, lineno, argv[arg] );
764 li->idassert_authmethod = LDAP_AUTH_SASL;
766 #else /* !HAVE_CYRUS_SASL */
767 fprintf( stderr, "%s: line %d: "
768 "compile --with-cyrus-sasl to enable SASL auth\n",
771 #endif /* !HAVE_CYRUS_SASL */
774 fprintf( stderr, "%s: line %d: "
775 "unhandled idassert-method method %s\n",
776 fname, lineno, argv[1] );
781 return SLAP_CONF_UNKNOWN;