Skip to content

Commit

Permalink
reorder accesslog db
Browse files Browse the repository at this point in the history
  • Loading branch information
djentangle committed Aug 1, 2024
1 parent 16cf216 commit dee9f05
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions templates/default/slapd.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,6 @@ backend <%= node['openldap']['database'] %>
#####
# Database
#####
database <%= node['openldap']['database'] %>
suffix "<%= node['openldap']['basedn'] %>"
rootdn "cn=<%= node['openldap']['cn'] %>,<%= node['openldap']['basedn'] %>"
rootpw <%= node['openldap']['rootpw'] %>
directory "<%= openldap_db_dir %>"
lastmod on

<% if node['openldap']['accesslog']['enabled'] == true -%>
# accesslog configuration
database <%= node['openldap']['database'] %>
Expand All @@ -70,6 +63,13 @@ directory <%= node['openldap']['accesslog']['directory'] %>
index <%= node['openldap']['accesslog']['index'] %>
<% end -%>

database <%= node['openldap']['database'] %>
suffix "<%= node['openldap']['basedn'] %>"
rootdn "cn=<%= node['openldap']['cn'] %>,<%= node['openldap']['basedn'] %>"
rootpw <%= node['openldap']['rootpw'] %>
directory "<%= openldap_db_dir %>"
lastmod on

<% if node['openldap']['database'] == 'hdb' -%>
dbconfig set_cachesize <%= node['openldap']['dbconfig']['set_cachesize'] %>

Expand Down

0 comments on commit dee9f05

Please sign in to comment.