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
64619bed
Commit
64619bed
authored
23 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
Install system schema checks
parent
9a3dcc37
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
servers/slapd/schema_check.c
+3
-3
3 additions, 3 deletions
servers/slapd/schema_check.c
servers/slapd/schema_prep.c
+73
-58
73 additions, 58 deletions
servers/slapd/schema_prep.c
servers/slapd/slap.h
+15
-9
15 additions, 9 deletions
servers/slapd/slap.h
with
91 additions
and
70 deletions
servers/slapd/schema_check.c
+
3
−
3
View file @
64619bed
...
...
@@ -46,9 +46,9 @@ entry_schema_check(
=
slap_schema
.
si_ad_objectClass
;
int
extensible
=
0
;
int
subentry
=
is_entry_subentry
(
e
);
int
collective
=
0
;
int
collective
Subentry
=
0
;
if
(
subentry
)
collective
=
is_entry_collectiveAttributes
(
e
);
if
(
subentry
)
collective
Subentry
=
is_entry_collectiveAttributes
(
e
);
*
text
=
textbuf
;
...
...
@@ -68,7 +68,7 @@ entry_schema_check(
}
}
if
(
!
collective
&&
is_at_collective
(
a
->
a_desc
->
ad_type
)
)
{
if
(
!
collective
Subentry
&&
is_at_collective
(
a
->
a_desc
->
ad_type
)
)
{
snprintf
(
textbuf
,
textlen
,
"'%s' can only appear in collectiveAttributes subentry"
,
type
);
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/schema_prep.c
+
73
−
58
View file @
64619bed
This diff is collapsed.
Click to expand it.
servers/slapd/slap.h
+
15
−
9
View file @
64619bed
...
...
@@ -427,10 +427,12 @@ typedef struct slap_attribute_type {
MatchingRule
*
sat_approx
;
MatchingRule
*
sat_ordering
;
MatchingRule
*
sat_substr
;
Syntax
*
sat_syntax
;
Syntax
*
sat_syntax
;
AttributeTypeSchemaCheckFN
*
sat_check
;
slap_mask_t
sat_flags
;
struct
slap_attr_desc
*
sat_ad
;
struct
slap_attribute_type
*
sat_next
;
ldap_pvt_thread_mutex_t
sat_ad_mutex
;
#define sat_oid sat_atype.at_oid
#define sat_names sat_atype.at_names
...
...
@@ -446,6 +448,8 @@ typedef struct slap_attribute_type {
#define sat_no_user_mod sat_atype.at_no_user_mod
#define sat_usage sat_atype.at_usage
#define sat_extensions sat_atype.at_extensions
struct
slap_attribute_type
*
sat_next
;
}
AttributeType
;
#define is_at_operational(at) ((at)->sat_usage)
...
...
@@ -466,19 +470,21 @@ typedef int (ObjectClassSchemaCheckFN)(
typedef
struct
slap_object_class
{
LDAPObjectClass
soc_oclass
;
struct
slap_object_class
**
soc_sups
;
AttributeType
**
soc_required
;
AttributeType
**
soc_allowed
;
AttributeType
**
soc_required
;
AttributeType
**
soc_allowed
;
ObjectClassSchemaCheckFN
*
sco_check
;
s
truct
slap_object_class
*
soc_next
;
#define soc_oid soc_oclass.oc_oid
#define soc_names soc_oclass.oc_names
#define soc_desc soc_oclass.oc_desc
s
lap_mask_t
sco_flags
;
#define soc_oid
soc_oclass.oc_oid
#define soc_names
soc_oclass.oc_names
#define soc_desc
soc_oclass.oc_desc
#define soc_obsolete soc_oclass.oc_obsolete
#define soc_sup_oids soc_oclass.oc_sup_oids
#define soc_kind soc_oclass.oc_kind
#define soc_kind
soc_oclass.oc_kind
#define soc_at_oids_must soc_oclass.oc_at_oids_must
#define soc_at_oids_may soc_oclass.oc_at_oids_may
#define soc_extensions soc_oclass.oc_extensions
struct
slap_object_class
*
soc_next
;
}
ObjectClass
;
#ifdef LDAP_DIT_CONTENT_RULES
...
...
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