mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-29 01:57:33 -05:00
subordinate needs a suffix (ITS#6216)
This commit is contained in:
parent
22083ce459
commit
7a553ddae8
1 changed files with 10 additions and 0 deletions
|
|
@ -2350,6 +2350,16 @@ config_subordinate(ConfigArgs *c)
|
|||
break;
|
||||
case LDAP_MOD_ADD:
|
||||
case SLAP_CONFIG_ADD:
|
||||
if ( c->be->be_nsuffix == NULL ) {
|
||||
/* log error */
|
||||
snprintf( c->cr_msg, sizeof( c->cr_msg),
|
||||
"subordinate configuration needs a suffix" );
|
||||
Debug( LDAP_DEBUG_ANY,
|
||||
"%s: %s.\n",
|
||||
c->log, c->cr_msg, 0 );
|
||||
rc = 1;
|
||||
break;
|
||||
}
|
||||
advertise = ( c->argc == 2 && !strcasecmp( c->argv[1], "advertise" ));
|
||||
rc = glue_sub_add( c->be, advertise, CONFIG_ONLINE_ADD( c ));
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue