예제 #1
0
 internal AddressBookBase GetGlobalAddressList(IBudget budget)
 {
     if (!this.isGlobalAddressListLoaded)
     {
         IConfigurationSession configurationSession = UserContextUtilities.CreateADSystemConfigurationSession(true, ConsistencyMode.IgnoreInvalid, this, budget);
         IRecipientSession     recipientSession     = UserContextUtilities.CreateADRecipientSession(CultureInfo.CurrentCulture.LCID, true, ConsistencyMode.IgnoreInvalid, false, this, false, budget);
         this.globalAddressList         = AddressBookBase.GetGlobalAddressList(base.LogonIdentity.ClientSecurityContext, configurationSession, recipientSession, this.GlobalAddressListId);
         this.isGlobalAddressListLoaded = true;
     }
     return(this.globalAddressList);
 }
예제 #2
0
        // Token: 0x06001056 RID: 4182 RVA: 0x0004F320 File Offset: 0x0004D520
        private AddressBookBase GetGlobalAddressList(OrganizationId organizationId)
        {
            AddressBookBase globalAddressList;

            using (ClientSecurityContext clientSecurityContext = new ClientSecurityContext(this.securityAccessToken, AuthzFlags.AuthzSkipTokenGroups))
            {
                ADSessionSettings sessionSettings = ADSessionSettings.FromOrganizationIdWithoutRbacScopes(ADSystemConfigurationSession.GetRootOrgContainerIdForLocalForest(), organizationId, null, false);
                globalAddressList = AddressBookBase.GetGlobalAddressList(clientSecurityContext, DirectorySessionFactory.Default.GetTenantOrTopologyConfigurationSession(ConsistencyMode.IgnoreInvalid, sessionSettings, 512, "GetGlobalAddressList", "f:\\15.00.1497\\sources\\dev\\data\\src\\directory\\RbacScope.cs"), DirectorySessionFactory.Default.GetTenantOrRootOrgRecipientSession(null, true, ConsistencyMode.IgnoreInvalid, null, sessionSettings, ConfigScopes.TenantSubTree, 513, "GetGlobalAddressList", "f:\\15.00.1497\\sources\\dev\\data\\src\\directory\\RbacScope.cs"), true);
            }
            return(globalAddressList);
        }
예제 #3
0
        private AddressBookBase FindGlobalAddressList()
        {
            IConfigurationSession configurationSession = this.ConfigurationSession;

            return(AddressBookBase.GetGlobalAddressList(this.clientSecurityContext, this.ConfigurationSession, this.CreateRecipientSession()));
        }