anchor.diff:      AuthDBDUserPWQuery "SELECT <%= node['application']['auth']['db']['password_field'] %> FROM <%= node['application']['auth']['db']['table'] %> WHERE <%= node['application']['auth']['db']['id_field'] %> = %s"
   
       Require valid-user
  -<% elsif %>
  +<% elsif node['application']['auth']['type'] == "ldap" %>
  +    AuthType Basic
  +    AuthName "Members Only"
  +    AuthBasicProvider ldap
  +    AuthLDAPURL "ldap://127.0.0.1/dc=wardish,dc=jp?cn"
  +
  +    Require valid-user
  +<% else %>
       Require all granted
   <% end %>
   </Location>
positive.code:     EnableSendfile Off
  </Directory>
  <Location /<%= node['application']['name'] %>>
  <% if node['application']['auth']['require'] %>
      AuthType Basic
      AuthName "<%= node['application']['auth']['name'] %>"
      AuthBasicProvider dbd
  
negative.code: <% if node['application']['auth']['type'] == "db" %>
  
  DBDriver pgsql
  DBDParams "dbname=<%= node['application']['db']['name'] %> user=<%= node['application']['db']['name'] %> password=<%= node['application']['db']['password'] %> host=<%= node['application']['db']['host'] %>"
  
  