Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dimitar Stoychev
OpenLDAP
Commits
e8b2c7f3
Commit
e8b2c7f3
authored
20 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
Fix wrong error when using operative attribute in
objectclass definition (ITS#3205)
parent
3c68fc1f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
servers/slapd/oc.c
+2
-1
2 additions, 1 deletion
servers/slapd/oc.c
servers/slapd/schemaparse.c
+3
-6
3 additions, 6 deletions
servers/slapd/schemaparse.c
with
5 additions
and
7 deletions
servers/slapd/oc.c
+
2
−
1
View file @
e8b2c7f3
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/schemaparse.c
+
3
−
6
View file @
e8b2c7f3
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment