Open qmarc opened 6 years ago
After some further experimentation it appears that you can move the machine account (reading from 'This object and all descendants' ) to a branch deeper into the AD forest, closer to where your user account is.
Further to this, I discovered that if you run your services (rather than cluster) using a gMSA, then the Machine accounts can be removed from AD completely!
We have an interesting scenario that forces use to place the machine (clustered node) account at the root level of the forest with read permissions applied to the current object and all descendants. We initially attempted to apply all permissions at the OU level only i.e.
OU=ASF,OU=DEV,OU=DCNAME,OU=GEOLOC,OU=All Computers,DC=companyname,DC=com,DC=au,DC=local
however this did not work.The ASF cluster build we tested with is 6.2.274.9494 and as you can see from the cluster config snippet provided below we are using Certificate security for node-to-node and client-to-node scenarios:
This means ASF is running under the context of the local machine account Network Service. If we now push a Micro Service into the cluster where the service will be running as an AD service account and we attempt to communicate with SQL instances or anything using Kerberos security secured by the Domain we will see that the service will keep trying to start but failing with the error:
If you then examine the EventLogs of the Node where the Micro Service is attempting to startup you will see ApplicationPrincipalAbortableError exceptions :
Moving on from this we decided to experiment with using a gMSA so the ASF cluster would be more tightly integrated with our Domain using Kerberos security to for all node and client communication. We hoped this tight integration would alleviate this issue and therefore allowing us to remove the machine accounts from the root of the forest, however this did not prove to be fruitful at this stage, more testing around this is needs to be done!. Just to show what our cluster config looks like with the gMSA change:
Any help to resolve this problem would be greatly appreciated.