mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-25 16:22:53 -05:00
Return proper result codes for usage errors
This commit is contained in:
parent
75d97a43eb
commit
cea1746182
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue