Commit e8b2c7f3 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Fix wrong error when using operative attribute in

objectclass definition (ITS#3205)
parent 3c68fc1f
......@@ -469,6 +469,7 @@ oc_add(
}
if ( code != 0 ) return code;
if( user && op ) return SLAP_SCHERR_CLASS_BAD_SUP;
code = oc_create_required( soc, soc->soc_at_oids_must, &op, err );
if ( code != 0 ) return code;
......@@ -476,7 +477,7 @@ oc_add(
code = oc_create_allowed( soc, soc->soc_at_oids_may, &op, err );
if ( code != 0 ) return code;
if( user && op ) return SLAP_SCHERR_CLASS_BAD_SUP;
if( user && op ) return SLAP_SCHERR_CLASS_BAD_USAGE;
code = oc_insert(soc,err);
return code;
......
......@@ -126,8 +126,7 @@ parse_cr(
const char *fname,
int lineno,
char *line,
char **argv
)
char **argv )
{
LDAPContentRule *cr;
int code;
......@@ -165,8 +164,7 @@ parse_oc(
const char *fname,
int lineno,
char *line,
char **argv
)
char **argv )
{
LDAPObjectClass *oc;
int code;
......@@ -247,8 +245,7 @@ parse_at(
const char *fname,
int lineno,
char *line,
char **argv
)
char **argv )
{
LDAPAttributeType *at;
int code;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment