30/09/2015

Unable to publish topolgi due to multiple entries found i AD.........

For a customer who got this multipool Lync 2013 running we had this strange error telling that it was not able to publish the topologi for Lync 2013. This error said it failed because of multiple entries i Active Directory for <name of the enpoint>.
When checking the Lync environment for this we did not find any multiple endpoints so there had to be something else causing this.
Well here is the solution to this problem:
1. take a note of the endpoint who has trouble, it will come out red in the error message
Fire up on a domain server ANSI edit and choose Configuration. Check this blog
http://www.moh10ly.website/2015/02/enable-cstopology-multiple-active.html

2. Browse to CN=Trusted Services and then start to search for your dublicate. When this is located, take a backup of them and you will find information about it here
http://community.spiceworks.com/how_to/28829-export-adsi-config-with-ldifde
Then delete then duplicates, but keep one. It does not matters who you delete.

3. If you need to restore because you deleted all of them, well this is where you find information about how to restore it.
http://blogs.msdn.com/b/muaddib/archive/2012/01/08/backing-up-active-directory-objects-using-ldifde.aspx

Now you can run enable-cstopology and it will work.
Thanks to my Co-worker Thomas Stubergh @skill for this information.