1

I think the Question title basically sums it up. Manually, I would open Active Directory Domains and Trusts, right click on top node in Explorer tree, and add domain UPN suffix.

1 Answer 1

4

Sure. You need to modify the upnSuffixes attribute of the CN=Partitions,CN=Configuration,DC=ForestRootDomain,DC=com object. Keep in mind there's a rough limit of about 1300 values stored in there.

Something like this should work - just wrote the code in the textbox though so might need a bit of tweaking:

DirectoryEntry partitionsContainer = new DirectoryEntry("LDAP://CN=Partitions,CN=Configuration,DC=ForestRootDomain,DC=com");
partitionsContainer["upnSuffixes"].Add("foosuffix.net");
partitionsContainer.CommitChanges();
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.