I would like to create an item with the following attributes in the directory to map some user groups for Linux clients
cn=xx01-private
objectClass: posixGroup
gidNumber: 1945
memberUid: xx01-private
these are so we can map the private groups for each Linux user - the aim is to make it easier for lookup by Linux clients.
When I try to create such an item using New-ADObject from powershell I get the error
PS C:\Windows\system32> New-ADObject -name "xx01-privater" -type posixGroup -Path "ou=PersonnalGroups,dc=a..."
New-ADObject : The object cannot be added because the parent is not on the list of possible superiors At line:1 char:1 + New-ADObject -name "xx01-private" -type posixGroup -Path "ou=PersonnalGroups,... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (cn=xx01-private,ou=P...:String) [New-ADObject], ADException + FullyQualifiedErrorId : The object cannot be added because the parent is not on the list of possible superiors,M icrosoft.ActiveDirectory.Management.Commands.NewADObject
I also get an error if I try to create a group, then add objectClass posixGroup and remove group.
Advise on how to create the object or knowing it is not possible would be helpful.