]> git.sur5r.net Git - openldap/commitdiff
Return proper result codes for usage errors
authorKurt Zeilenga <kurt@openldap.org>
Thu, 21 Feb 2002 19:29:32 +0000 (19:29 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 21 Feb 2002 19:29:32 +0000 (19:29 +0000)
servers/slapd/at.c

index ed8fd6ef79c67a3a9debf83650f2e3750c717ed6..45ff44600e39154b9890cc3e5185eb493a632388 100644 (file)
@@ -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;
                }
        }