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
2958cb4d
Commit
2958cb4d
authored
23 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
A subentries control framework
parent
2a0bb351
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/ldap.h
+2
-1
2 additions, 1 deletion
include/ldap.h
servers/slapd/controls.c
+24
-0
24 additions, 0 deletions
servers/slapd/controls.c
servers/slapd/proto-slap.h
+1
-0
1 addition, 0 deletions
servers/slapd/proto-slap.h
with
27 additions
and
1 deletion
include/ldap.h
+
2
−
1
View file @
2958cb4d
...
...
@@ -187,12 +187,13 @@ typedef struct ldapcontrol {
#define LDAP_CHASE_EXTERNAL_REFERRALS 0x0040U
#endif
#define LDAP_CONTROL_SUBENTRIES "1.3.6.1.4.1.4203.666.5.1"
#define LDAP_CONTROL_MANAGEDSAIT "2.16.840.1.113730.3.4.2"
#define LDAP_CONTROL_DUPENT LDAP_CONTROL_DUPENT_REQUEST
#define LDAP_CONTROL_DUPENT_REQUEST "2.16.840.1.113719.1.27.101.1"
#define LDAP_CONTROL_DUPENT_RESPONSE "2.16.840.1.113719.1.27.101.2"
#define LDAP_CONTROL_DUPENT_ENTRY "2.16.840.1.113719.1.27.101.3"
#define LDAP_CONTROL_DUPENT LDAP_CONTROL_DUPENT_REQUEST
/* Experimental Controls */
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/controls.c
+
24
−
0
View file @
2958cb4d
...
...
@@ -21,6 +21,7 @@
char
*
supportedControls
[]
=
{
LDAP_CONTROL_MANAGEDSAIT
,
LDAP_CONTROL_SUBENTRIES
,
NULL
};
...
...
@@ -244,3 +245,26 @@ int get_manageDSAit( Operation *op )
return
SLAP_NO_CONTROL
;
}
int
get_subentries
(
Operation
*
op
,
int
*
visibility
)
{
int
i
;
if
(
op
==
NULL
||
op
->
o_ctrls
==
NULL
)
{
return
SLAP_NO_CONTROL
;
}
for
(
i
=
0
;
op
->
o_ctrls
[
i
]
!=
NULL
;
i
++
)
{
if
(
strcmp
(
LDAP_CONTROL_SUBENTRIES
,
op
->
o_ctrls
[
i
]
->
ldctl_oid
)
==
0
)
{
/* need to parse the value */
*
visibility
=
0
;
return
op
->
o_ctrls
[
i
]
->
ldctl_iscritical
?
SLAP_CRITICAL_CONTROL
:
SLAP_NONCRITICAL_CONTROL
;
}
}
return
SLAP_NO_CONTROL
;
}
This diff is collapsed.
Click to expand it.
servers/slapd/proto-slap.h
+
1
−
0
View file @
2958cb4d
...
...
@@ -297,6 +297,7 @@ LDAP_SLAPD_F (int) get_ctrls LDAP_P((
int
senderrors
));
LDAP_SLAPD_F
(
int
)
get_manageDSAit
LDAP_P
((
Operation
*
op
));
LDAP_SLAPD_F
(
int
)
get_subentries
LDAP_P
((
Operation
*
op
,
int
*
visibility
));
/*
* config.c
...
...
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