From: Kurt Zeilenga Date: Thu, 21 Feb 2002 19:29:32 +0000 (+0000) Subject: Return proper result codes for usage errors X-Git-Tag: OPENLDAP_REL_ENG_2_MP~397 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cea174618257c3475faf8e800fd8aa8355d87911;p=openldap Return proper result codes for usage errors --- diff --git a/servers/slapd/at.c b/servers/slapd/at.c index ed8fd6ef79..45ff44600e 100644 --- a/servers/slapd/at.c +++ b/servers/slapd/at.c @@ -334,12 +334,12 @@ at_add( if ( at->at_collective ) { if( at->at_usage ) { /* collective attributes cannot be operational */ - return SLAP_SCHERR_NOT_SUPPORTED; + return SLAP_SCHERR_ATTR_BAD_USAGE; } if( at->at_single_value ) { /* collective attributes cannot be single-valued */ - return SLAP_SCHERR_NOT_SUPPORTED; + return SLAP_SCHERR_ATTR_BAD_USAGE; } }