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
Christopher Ng
OpenLDAP
Commits
f9d36c0d
Commit
f9d36c0d
authored
20 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
Make most LDAP_DEVEL macro uses indirect
parent
d3ed899a
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
servers/slapd/root_dse.c
+3
-2
3 additions, 2 deletions
servers/slapd/root_dse.c
servers/slapd/schema_prep.c
+10
-7
10 additions, 7 deletions
servers/slapd/schema_prep.c
servers/slapd/slap.h
+14
-17
14 additions, 17 deletions
servers/slapd/slap.h
with
27 additions
and
26 deletions
servers/slapd/root_dse.c
+
3
−
2
View file @
f9d36c0d
...
...
@@ -34,9 +34,10 @@ static struct berval supportedFeatures[] = {
BER_BVC
(
LDAP_FEATURE_ABSOLUTE_FILTERS
),
/* (&) and (|) search filters */
BER_BVC
(
LDAP_FEATURE_LANGUAGE_TAG_OPTIONS
),
/* Language Tag Options */
BER_BVC
(
LDAP_FEATURE_LANGUAGE_RANGE_OPTIONS
),
/* Language Range Options */
#ifdef LDAP_DEVEL
#ifdef LDAP_FEATURE_SUBORDINATE_SCOPE
BER_BVC
(
LDAP_FEATURE_SUBORDINATE_SCOPE
),
/* "children" search scope */
#endif
#ifdef LDAP_FEATURE_MODIFY_INCREMENT
BER_BVC
(
LDAP_FEATURE_MODIFY_INCREMENT
),
/* Modify/increment */
#endif
{
0
,
NULL
}
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/schema_prep.c
+
10
−
7
View file @
f9d36c0d
...
...
@@ -370,13 +370,16 @@ static struct slap_schema_oc_map {
"matchingRuleUse ) )"
,
subentryObjectClass
,
SLAP_OC_OPERATIONAL
,
offsetof
(
struct
slap_internal_schema
,
si_oc_subschema
)
},
#ifdef LDAP_
DEVEL
#ifdef LDAP_
COLLECTIVE_ATTRIBUTES
{
"collectiveAttributeSubentry"
,
"( 2.5.17.2 "
"NAME 'collectiveAttributeSubentry' "
"NAME '
RFC3671:
collectiveAttributeSubentry' "
"AUXILIARY )"
,
subentryObjectClass
,
SLAP_OC_COLLECTIVEATTRIBUTESUBENTRY
|
SLAP_OC_OPERATIONAL
|
SLAP_OC_HIDE
,
offsetof
(
struct
slap_internal_schema
,
si_oc_collectiveAttributeSubentry
)
},
offsetof
(
struct
slap_internal_schema
,
si_oc_collectiveAttributeSubentry
)
},
#endif
#ifdef LDAP_DYNAMIC_OBJECTS
{
"dynamicObject"
,
"( 1.3.6.1.4.1.1466.101.119.2 "
"NAME 'dynamicObject' "
"DESC 'RFC2589: Dynamic Object' "
...
...
@@ -506,7 +509,7 @@ static struct slap_schema_ad_map {
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
offsetof
(
struct
slap_internal_schema
,
si_ad_subschemaSubentry
)
},
#ifdef LDAP_
DEVEL
#ifdef LDAP_
COLLECTIVE_ATTRIBUTES
{
"collectiveAttributeSubentries"
,
"( 2.5.18.12 "
"NAME 'collectiveAttributeSubentries' "
"EQUALITY distinguishedNameMatch "
...
...
@@ -566,7 +569,7 @@ static struct slap_schema_ad_map {
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
offsetof
(
struct
slap_internal_schema
,
si_ad_namingCSN
)
},
#if
0
#if
def LDAP_SUPERIOR_UUID
{
"superiorUUID"
,
"( 1.3.6.1.4.1.4203.666.1.11 NAME 'superiorUUID' "
"DESC 'UUID of the superior entry' "
"EQUALITY octetStringMatch "
...
...
@@ -602,7 +605,7 @@ static struct slap_schema_ad_map {
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
offsetof
(
struct
slap_internal_schema
,
si_ad_contextCSN
)
},
#ifdef LDAP_
DEVEL
#ifdef LDAP_
SYNC_TIMESTAMP
{
"syncTimestamp"
,
"( 1.3.6.1.4.1.4203.666.1.26 NAME 'syncTimestamp' "
"DESC 'Time which object was replicated' "
"EQUALITY generalizedTimeMatch "
...
...
@@ -862,7 +865,7 @@ static struct slap_schema_ad_map {
offsetof
(
struct
slap_internal_schema
,
si_ad_aci
)
},
#endif
#ifdef LDAP_D
EVEL
#ifdef LDAP_D
YNAMIC_OBJECTS
{
"entryTtl"
,
"( 1.3.6.1.4.1.1466.101.119.3 NAME 'entryTtl' "
"DESC 'RFC2589: entry time-to-live' "
"SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE "
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/slap.h
+
14
−
17
View file @
f9d36c0d
...
...
@@ -58,6 +58,20 @@
LDAP_BEGIN_DECL
#ifdef LDAP_DEVEL
#define SLAP_ACL_HONOR_DISCLOSE
/* partially implemented */
#define SLAP_DYNACL
#define LDAP_COMP_MATCH
/* experimental */
#define LDAP_DYNAMIC_OBJECTS
#define LDAP_SYNC_TIMESTAMP
#define LDAP_COLLECTIVE_ATTRIBUTES
/* not yet implemented */
#endif
#if defined(LDAP_DEVEL) && defined(ENABLE_REWRITE)
/* use librewrite for sasl-regexp */
#define SLAP_AUTH_REWRITE 1
#endif
/* LDAP_DEVEL && ENABLE_REWRITE */
/*
* SLAPD Memory allocation macros
*
...
...
@@ -324,10 +338,6 @@ typedef int slap_syntax_transform_func LDAP_P((
struct
berval
*
out
,
void
*
memctx
));
#ifdef LDAP_DEVEL
#define LDAP_COMP_MATCH
#endif
#ifdef LDAP_COMP_MATCH
typedef
void
*
slap_component_transform_func
LDAP_P
((
struct
berval
*
in
));
...
...
@@ -1117,10 +1127,6 @@ typedef struct slap_ldap_modlist {
#define ml_values ml_mod.mod_values
}
LDAPModList
;
#ifdef LDAP_DEVEL
#define SLAP_ACL_HONOR_DISCLOSE
#endif
/* LDAP_DEVEL */
/*
* represents an access control list
*/
...
...
@@ -1172,10 +1178,6 @@ typedef struct slap_authz_info {
}
AuthorizationInformation
;
#ifdef LDAP_DEVEL
#define SLAP_DYNACL
#endif
/* LDAP_DEVEL */
#ifdef SLAP_DYNACL
struct
slap_op
;
...
...
@@ -2585,11 +2587,6 @@ typedef int (SLAP_CTRL_PARSE_FN) LDAP_P((
#define SLAP_ZONE_ALLOC 1
#undef SLAP_ZONE_ALLOC
#if defined(LDAP_DEVEL) && defined(ENABLE_REWRITE)
/* use librewrite for sasl-regexp */
#define SLAP_AUTH_REWRITE 1
#endif
/* LDAP_DEVEL && ENABLE_REWRITE */
#ifdef LDAP_COMP_MATCH
/*
* Extensible Filter Definition
...
...
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