/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
- * Copyright 2004-2006 The OpenLDAP Foundation.
+ * Copyright 2004-2007 The OpenLDAP Foundation.
* Portions Copyright 2004 Symas Corporation.
* All rights reserved.
*
ARG_MAGIC|REFINT_ATTRS, refint_cf_gen,
"( OLcfgOvAt:11.1 NAME 'olcRefintAttribute' "
"DESC 'Attributes for referential integrity' "
+ "EQUALITY caseIgnoreMatch "
"SYNTAX OMsDirectoryString )", NULL, NULL },
{ "refint_nothing", "string", 2, 2, 0,
ARG_DN|ARG_MAGIC|REFINT_NOTHING, refint_cf_gen,
ip->next = dd->attrs;
dd->attrs = ip;
} else {
- Debug ( LDAP_DEBUG_CONFIG,
- "refint add: <%s>: %s\n",
- c->argv[i], text, NULL );
- strncpy ( c->msg,
- text,
- SLAP_TEXT_BUFLEN-1 );
- c->msg[SLAP_TEXT_BUFLEN-1] = '\0';
+ snprintf( c->msg, sizeof( c->msg ),
+ "%s <%s>: %s", c->argv[0], c->argv[i], text );
+ Debug ( LDAP_DEBUG_CONFIG|LDAP_DEBUG_NONE,
+ "%s: %s\n", c->log, c->msg, 0 );
rc = ARG_BAD_CONF;
}
}