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
615af63d
Commit
615af63d
authored
22 years ago
by
Howard Chu
Browse files
Options
Downloads
Patches
Plain Diff
Added group ACL tests
parent
a8297e6d
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
tests/data/acl.out.master
+1
-0
1 addition, 0 deletions
tests/data/acl.out.master
tests/data/slapd-acl.conf
+4
-0
4 additions, 0 deletions
tests/data/slapd-acl.conf
tests/scripts/test006-acls
+23
-0
23 additions, 0 deletions
tests/scripts/test006-acls
with
28 additions
and
0 deletions
tests/data/acl.out.master
+
1
−
0
View file @
615af63d
...
...
@@ -83,6 +83,7 @@ homepostaladdress: 123 Wesley $ Ann Arbor, MI 48103
description: Mythical manager of the rsdd unix project
drink: water
homephone: +1 313 555 2333
homephone: +1 313 555 5444
pager: +1 313 555 3233
facsimiletelephonenumber: +1 313 555 2274
telephonenumber: +1 313 555 9022
...
...
This diff is collapsed.
Click to expand it.
tests/data/slapd-acl.conf
+
4
−
0
View file @
615af63d
...
...
@@ -61,6 +61,10 @@ access to filter="(objectclass=groupofnames)"
by
dn
=
"^cn=Bjorn Jensen,ou=Information Technology Division,ou=People,o=University of Michigan,c=US$"
+
rw
stop
by
*
break
access
to
dn
.
children
=
"ou=Information Technology Division,ou=People,o=University of Michigan,c=US"
by
group
.
exact
=
"cn=ITD Staff,ou=Groups,o=University of Michigan,c=US"
write
by
*
read
access
to
filter
=
"(name=X*Y*Z)"
by
*
continue
...
...
This diff is collapsed.
Click to expand it.
tests/scripts/test006-acls
+
23
−
0
View file @
615af63d
...
...
@@ -73,6 +73,29 @@ $LDAPSEARCH -b "$JAJDN" -h $LOCALHOST -p $PORT "objectclass=*" \
$LDAPSEARCH
-b
"
$JAJDN
"
-h
$LOCALHOST
-p
$PORT
\
-D
"
$BABSDN
"
-w
bjensen
"objectclass=*"
>>
$SEARCHOUT
2>&1
#
# Check group access. Try to modify Babs' entry. Two attempts:
# 1) bound as "James A Jones 1" - should fail
# 2) bound as "Bjorn Jensen" - should succeed
$LDAPMODIFY
-D
"
$JAJDN
"
-h
$LOCALHOST
-p
$PORT
-w
jaj
>>
\
$TESTOUT
2>&1
<<
EOMODS5
dn:
$BABSDN
changetype: modify
replace: drink
drink: wine
EOMODS5
$LDAPMODIFY
-D
"
$BJORNSDN
"
-h
$LOCALHOST
-p
$PORT
-w
bjorn
>>
\
$TESTOUT
2>&1
<<
EOMODS6
dn:
$BABSDN
changetype: modify
add: homephone
homephone: +1 313 555 5444
EOMODS6
#
# Try to add a "member" attribute to the "All Staff" group. It should
...
...
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