This isn’t a node authentication issue. This is an issue with the Chef-Server and adding an LDAP logon/authentication to the chef server. I can run remote winrm requests of the node independent of chef/bootstrap - Thus showing authentication to the node/client is working. But when I try and bootstrap the node/client, I get the ‘Response: missing create permission’ error. When I turn off LDAP login to the chef server I still get the create error and now cannot add any machines/nodes/clients to the chef-server.
So, here is what happened.
1 - Deployed test chef instance, tested bootstrap of node - Working as expected
2 - Added LDAP login to chef server, now get error when trying to bootstrap machines, error as follows:
ERROR: You authenticated successfully to https://chef.sv.local/organizations/organization as sysadmin but you are not authorized for this action
Response: missing create permission
3 - Remove LDAP config from chef server. Still getting error as follows when trying to bootstrap the machine
ERROR: You authenticated successfully to https://chef.sv.local/organizations/organization as sysadmin but you are not authorized for this action
Response: missing create permission
Further this, I have been digging using the local (to the chef serer) cli commands and found that all my previous LDAP users are still showing up in the cli but not the GUI???
sudo chef-server-ctl user-list
pivotal
ross_taylor
sysadmin
user_0
user_1
sysadmin should be the only user left in the org that I care about, the others were me working through the sign up process for other users. - Also should be an admin.
Then I run the list-server-admins command to see what shows up there:
sudo chef-server-ctl list-server-admins
pivotal
sysadmin
So we can see that the user ‘sysadmin’ is on the server, is enabled for the admin group, but is still unable to create nodes/clients via bootstrap w/or w/out LDAP enabled - But only after LDAP has been enabled once. Prior to this, it was all working as expected.
I have also just tried the following:
sudo chef-server-ctl user-create sv firstname lastname email@domain 'P@55word!'
Then
sudo chef-server-ctl grant-server-admin-permissions sv
And also
sudo chef-server-ctl org-user-add bravura sv --admin
Which now shows my user as a server admin, but gives me the same result as before.
ERROR: You authenticated successfully to https://chef.sv.local/organizations/organization as sysadmin but you are not authorized for this action
Response: missing create permission