diff --git a/test/cookbooks/openldap-test/recipes/accesslog.rb b/test/cookbooks/openldap-test/recipes/accesslog.rb index 84bc5d3..0d06def 100644 --- a/test/cookbooks/openldap-test/recipes/accesslog.rb +++ b/test/cookbooks/openldap-test/recipes/accesslog.rb @@ -1,16 +1,6 @@ -ldap_dir = - case os.family - when 'debian' - '/etc/ldap' - when 'redhat', 'amazon', 'fedora', 'suse' - '/etc/openldap' - when 'bsd' - '/usr/local/etc/openldap' - end - node.default['openldap']['accesslog']['enabled'] = true node.default['openldap']['accesslog']['logdb'] = '"cn=accesslog"' -node.default['openldap']['accesslog']['directory'] = "#{ldap_dir}/accesslog" +node.default['openldap']['accesslog']['directory'] = "/etc/ldap/accesslog" node.default['openldap']['accesslog']['index'] = 'reqStart,reqEnd,reqResult eq' node.default['openldap']['accesslog']['logops'] = 'writes' node.default['openldap']['accesslog']['logold'] = '(objectclass=*)' @@ -18,7 +8,7 @@ node.default['openldap']['modules'] << 'accesslog' -directory "#{ldap_dir}/accesslog" do +directory "/etc/ldap/accesslog" do mode '0755' owner 'openldap' group 'openldap'