internal static CentralizedSecurity.wcf.Contracts.DomainsUrl[] GetAllDomainsUrl()
        {
            List <DomainUrlInfo> auxlist = ADWrapper.DomainsUrl_GetList2(System.Configuration.ConfigurationManager.ConnectionStrings[ActiveDirectoryService.CnnStringName].ConnectionString);

            if (auxlist.Count != 0)
            {
                var list = from d in auxlist select new CentralizedSecurity.wcf.Contracts.DomainsUrl(d);

                return(list.ToArray <CentralizedSecurity.wcf.Contracts.DomainsUrl>());
            }
            else
            {
                return(null);
            }
        }