mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Return proper result codes for usage errors
This commit is contained in:
parent
75d97a43eb
commit
cea1746182
@ -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 New Issue
Block a user