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
Jaak Ristioja
OpenLDAP
Commits
4b1ff75b
Commit
4b1ff75b
authored
24 years ago
by
Mark Valence
Browse files
Options
Downloads
Patches
Plain Diff
Prepare for Set ACLs and ACIs.
parent
e90ef576
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/aclparse.c
+22
-1
22 additions, 1 deletion
servers/slapd/aclparse.c
servers/slapd/slap.h
+10
-1
10 additions, 1 deletion
servers/slapd/slap.h
with
32 additions
and
2 deletions
servers/slapd/aclparse.c
+
22
−
1
View file @
4b1ff75b
...
...
@@ -279,7 +279,7 @@ parse_acl(
{
sty
=
ACL_STYLE_REGEX
;
}
else
if
(
strcasecmp
(
style
,
"exact"
)
==
0
)
{
sty
=
ACL_STYLE_
BASE
;
sty
=
ACL_STYLE_
EXACT
;
}
else
if
(
strcasecmp
(
style
,
"base"
)
==
0
)
{
sty
=
ACL_STYLE_BASE
;
}
else
if
(
strcasecmp
(
style
,
"one"
)
==
0
)
{
...
...
@@ -607,6 +607,27 @@ parse_acl(
continue
;
}
if
(
strcasecmp
(
left
,
"set"
)
==
0
)
{
if
(
b
->
a_set_pat
!=
NULL
)
{
fprintf
(
stderr
,
"%s: line %d: set attribute already specified.
\n
"
,
fname
,
lineno
);
acl_usage
();
}
if
(
right
==
NULL
||
*
right
==
'\0'
)
{
fprintf
(
stderr
,
"%s: line %d: no set is defined
\n
"
,
fname
,
lineno
);
acl_usage
();
}
b
->
a_set_style
=
sty
;
b
->
a_set_pat
=
ch_strdup
(
right
);
continue
;
}
#ifdef SLAPD_ACI_ENABLED
if
(
strcasecmp
(
left
,
"aci"
)
==
0
)
{
if
(
b
->
a_aci_at
!=
NULL
)
{
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/slap.h
+
10
−
1
View file @
4b1ff75b
...
...
@@ -104,6 +104,9 @@ LDAP_BEGIN_DECL
#define SLAPD_ACI_SYNTAX "1.3.6.1.4.1.4203.666.2.1"
#define SLAPD_ACI_ATTR "OpenLDAPaci"
/* change this to "OpenLDAPset" */
#define SLAPD_ACI_SET_ATTR "template"
#define SLAPD_TOP_OID "2.5.6.0"
LDAP_SLAPD_F
(
int
)
slap_debug
;
...
...
@@ -593,7 +596,11 @@ typedef enum slap_style_e {
ACL_STYLE_BASE
,
ACL_STYLE_ONE
,
ACL_STYLE_SUBTREE
,
ACL_STYLE_CHILDREN
ACL_STYLE_CHILDREN
,
ACL_STYLE_ATTROF
,
/* alternate names */
ACL_STYLE_EXACT
=
ACL_STYLE_BASE
}
slap_style_t
;
typedef
unsigned
long
slap_access_mask_t
;
...
...
@@ -675,6 +682,8 @@ typedef struct slap_access {
char
*
a_domain_pat
;
slap_style_t
a_sockurl_style
;
char
*
a_sockurl_pat
;
slap_style_t
a_set_style
;
char
*
a_set_pat
;
#ifdef SLAPD_ACI_ENABLED
AttributeDescription
*
a_aci_at
;
...
...
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