mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-27 10:09:43 -05:00
improve previous commit
This commit is contained in:
parent
b838f3e2a1
commit
c4aedadc56
1 changed files with 8 additions and 4 deletions
|
|
@ -1562,11 +1562,15 @@ config_suffix(ConfigArgs *c)
|
|||
}
|
||||
|
||||
if ( notallowed != NULL ) {
|
||||
char buf[ SLAP_TEXT_BUFLEN ] = { '\0' };
|
||||
|
||||
if ( !BER_BVISNULL( &c->value_dn ) ) {
|
||||
snprintf( buf, sizeof( buf ), "<%s> ", c->value_dn.bv_val );
|
||||
}
|
||||
|
||||
Debug(LDAP_DEBUG_ANY,
|
||||
"%s: suffix <%s> not allowed in %s database.\n",
|
||||
c->log,
|
||||
BER_BVISNULL( &c->value_dn ) ? "NULL" : c->value_dn.bv_val,
|
||||
notallowed );
|
||||
"%s: suffix %snot allowed in %s database.\n",
|
||||
c->log, buf, notallowed );
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue