Skip to content
Permalink
Browse files

update aci tests

  • Loading branch information
awillis committed Sep 16, 2014
1 parent ab6f5d9 commit 8de0db188d9cd298dbd05bafc73948c231f3a27b
Showing with 25 additions and 5 deletions.
  1. +25 −5 recipes/_test_kitchen.rb
@@ -78,13 +78,33 @@
shell "/bin/bash" shell "/bin/bash"
is_extensible true is_extensible true
password "Super Cool Passwords Are Super Cool!!!!!" password "Super Cool Passwords Are Super Cool!!!!!"
action :delete
end end


ldap_user "awillis" ldap_user "test" do
basedn "o=kitchen"
surname 'Kitchen'
home "/home/test"
shell "/bin/bash"
is_extensible true
end


ldap_user "awillis" do # ACI
action :delete
ldap_aci "allow test kitchen" do
distinguished_name 'uid=awillis,o=kitchen'
rights ([ 'read', 'search', 'compare' ])
userdn_rule ({ '=' => 'uid=test,o=kitchen' })
day_of_week ([ 'Mon', 'Wed', 'Fri' ])
end end


ldap_user "awillis" ldap_aci "allow test kitchen" do
distinguished_name 'uid=awillis,o=kitchen'
userdn_rule ({ '=' => 'uid=sink,o=kitchen' })
action :extend
end

ldap_aci "allow test kitchen" do
distinguished_name 'uid=awillis,o=kitchen'
userdn_rule ({ '=' => 'uid=test,o=kitchen' })
action :rescind
end

0 comments on commit 8de0db1

Please sign in to comment.
You can’t perform that action at this time.