Hey thanks for the interest in my problem.
I decided to do some experiments. I created a small test service that simply accesses a local sql server db and retrieves the content of a small table and writes it to a file.
I created a security group called testgroup. The server is a member of this group.
I then created 4 gMSAs with the following command
New-ADServiceAccount name testuser1 -DNSHostName testuser1.domain.local
New-ADServiceAccount name testuser2 -DNSHostName testuser2.domain.local PrincipalsAllowedToRetrieveManagedPassword testgroup
New-ADServiceAccount name testuser3 -DNSHostName testuser3
New-ADServiceAccount name testuser4 -DNSHostName testuser4.domain.local
Only when setting the service logon to testuser2 does the service run. With testuser1, testuser3 and testuser4
I get the following error message while trying to start the service: Windows could not start the Test Service service on Local Computer. Error 1069: The service did not start due to a login failure
Is it normal expected behavior that only testuser2 should work? Is a gMSA without the
-PrincipalsAllowedToRetrieveManagedPassword argument useless?
Another issue I have is creating a gMSA where the PrincipalsAllowedToRetrieveManagedPassword is a single computer account:
New-ADServiceAccount -name testuser5 -DNSHostName testuser5.domain.local -PrincipalsAllowedToRetr
ieveManagedPassword pr-server-s14-01
gives
New-ADServiceAccount : Identity info provided in the extended attribute: 'PrincipalsAllowedToRetrieveManagedPassword' could not be resolved. Reason: 'Cannot find an object with identity: 'pr-server-s14-01' under: 'DC=domain,DC=local'.'.
At line:1 char:1
+ New-ADServiceAccount -name testuser5 -DNSHostName testuser5.domain.local -Princip ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo
: InvalidData: (CN=testuser5,CN...=domain,DC=local:String) [New-ADServiceAccount], ADIdentityResolutionException
+ FullyQualifiedErrorId : ActiveDirectoryCmdlet:Microsoft.ActiveDirectory.Management.ADIdentityResolutionException
,Microsoft.ActiveDirectory.Management.Commands.NewADServiceAccount
What am I missing here?
-
Edited by
deniz_
Monday, May 25, 2015 1:25 PM