Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
Dragoș Haiduc
OpenLDAP
Commits
f9902a32
Commit
f9902a32
authored
23 years ago
by
Howard Chu
Browse files
Options
Downloads
Patches
Plain Diff
Changed supportedFeatures to array of struct bervals
parent
81c3c311
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
servers/slapd/root_dse.c
+10
-12
10 additions, 12 deletions
servers/slapd/root_dse.c
with
10 additions
and
12 deletions
servers/slapd/root_dse.c
+
10
−
12
View file @
f9902a32
...
...
@@ -18,13 +18,15 @@
#include
"slap.h"
#include
<ldif.h>
static
char
*
supportedFeatures
[]
=
{
"1.3.6.1.4.1.4203.1.5.1"
,
/* all Operational Attributes ("+") */
"1.3.6.1.4.1.4203.1.5.2"
,
/* OCs in Attributes List */
"1.3.6.1.4.1.4203.1.5.3"
,
/* (&) and (|) search filters */
"1.3.6.1.4.1.4203.1.5.4"
,
/* Language Tag Options */
"1.3.6.1.4.1.4203.1.5.5"
,
/* Language Range Options */
NULL
#define BVC(x) {sizeof(x)-1, x}
static
struct
berval
supportedFeatures
[]
=
{
BVC
(
"1.3.6.1.4.1.4203.1.5.1"
),
/* all Operational Attributes ("+") */
BVC
(
"1.3.6.1.4.1.4203.1.5.2"
),
/* OCs in Attributes List */
BVC
(
"1.3.6.1.4.1.4203.1.5.3"
),
/* (&) and (|) search filters */
BVC
(
"1.3.6.1.4.1.4203.1.5.4"
),
/* Language Tag Options */
BVC
(
"1.3.6.1.4.1.4203.1.5.5"
),
/* Language Range Options */
{
0
,
NULL
}
};
static
Entry
*
usr_attr
=
NULL
;
...
...
@@ -113,11 +115,7 @@ root_dse_info(
}
/* supportedFeatures */
for
(
i
=
0
;
supportedFeatures
[
i
]
!=
NULL
;
i
++
)
{
vals
[
0
].
bv_val
=
supportedFeatures
[
i
];
vals
[
0
].
bv_len
=
strlen
(
vals
[
0
].
bv_val
);
attr_merge
(
e
,
ad_supportedFeatures
,
vals
);
}
attr_merge
(
e
,
ad_supportedFeatures
,
supportedFeatures
);
/* supportedLDAPVersion */
for
(
i
=
LDAP_VERSION_MIN
;
i
<=
LDAP_VERSION_MAX
;
i
++
)
{
...
...
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