Just checking if Chef Compliance support external authentication with LDAP?
I performed the setup using https://docs.chef.io/server_ldap.html and then
sudo chef-compliance-ctl reconfigure
and got the following error(s)
[2016-04-04T18:32:58+00:00] ERROR: Running exception handlers
Running handlers complete
[2016-04-04T18:32:58+00:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 01 seconds
[2016-04-04T18:32:58+00:00] FATAL: Stacktrace dumped to /opt/chef-compliance/embedded/cookbooks/cache/chef-stacktrace.out
[2016-04-04T18:32:58+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2016-04-04T18:32:58+00:00] FATAL: RuntimeError: Error loading file: /etc/chef-compliance/chef-compliance.rb:3:in `from_file': undefined method `[]=' for nil:NilClass
My configuration is
ldap['base_dn'] = 'ou=Users,o=STUFF,dc=DOMAIN,dc=com'
ldap['bind_dn'] = 'uid=ldap.bind,ou=Users,o=STUFF,dc=DOMAIN,dc=com'
ldap['bind_password'] = 'PASSWORD'
ldap['group_dn'] = 'cn=CHEF_COMPLIANCE,ou=Users,o=STUFF,dc=DOMAIN,dc=com'
ldap['host'] = 'ldap.DOMAIN.com'
ldap['login_attribute'] = 'uid'
ldap['port'] = '636'
The config looks solid unless I am missing something (line 3 is the first ldap attribute)