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
44e8ffd4
Commit
44e8ffd4
authored
20 years ago
by
Pierangelo Masarati
Browse files
Options
Downloads
Patches
Plain Diff
clarify the use of regex and expand in by dn clauses
parent
372a9413
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/man/man5/slapd.access.5
+26
-2
26 additions, 2 deletions
doc/man/man5/slapd.access.5
with
26 additions
and
2 deletions
doc/man/man5/slapd.access.5
+
26
−
2
View file @
44e8ffd4
...
...
@@ -261,8 +261,8 @@ the dollar character that is used to indicate match up to the end of
the string must be escaped by a second dollar character, e.g.
.LP
.nf
access to dn.regex="^(.
*
,)?uid=([^,]+),dc=
example
,dc=com$"
by dn.regex="^uid=$
1
,dc=
example
,dc=com$$" write
access to dn.regex="^(.
+
,)?uid=([^,]+),dc=
[^,]+
,dc=com$"
by dn.regex="^uid=$
2
,dc=
[^,]+
,dc=com$$" write
.fi
.LP
The style qualifier
...
...
@@ -275,6 +275,30 @@ even if
.B dnstyle
is not
.BR regex .
Note that the
.I regex
dnstyle in the above example may be of use only if the
.B by
clause needs to be a regex; otherwise, if the
value of the second (from the right)
.I dc=
portion of the DN in the above example were fixed, the form
.LP
.nf
access to dn.regex="^(.+,)?uid=([^,]+),dc=example,dc=com$"
by dn.exact,expand="uid=$2,dc=example,dc=com" write
.fi
.LP
could be used; if it had to match the value in the
.B what
clause, the form
.LP
.nf
access to dn.regex="^(.+,)?uid=([^,]+),dc=([^,]+),dc=com$"
by dn.exact,expand="uid=$2,dc=$3,dc=com" write
.fi
.LP
could be used.
.LP
It is perfectly useless to give any access privileges to a DN
that exactly matches the
...
...
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