Esempio n. 1
0
 bool IDirectorySession.GetSchemaAndApplyFilter(ADRawEntry adRawEntry, ADScope scope, out ADObject dummyObject, out string[] ldapAttributes, ref QueryFilter filter, ref IEnumerable <PropertyDefinition> properties)
 {
     FfoDirectorySession.LogNotSupportedInFFO(null);
     dummyObject    = null;
     ldapAttributes = null;
     return(false);
 }
        ADPagedReader <ManagementScope> IConfigurationSession.GetAllScopes(OrganizationId organizationId, ScopeRestrictionType restrictionType)
        {
            FfoDirectorySession.LogNotSupportedInFFO(null);
            ComparisonFilter filter = new ComparisonFilter(ComparisonOperator.Equal, ADObjectSchema.OrganizationalUnitRoot, organizationId.OrganizationalUnit);

            return(new FfoPagedReader <ManagementScope>(this, filter, null));
        }
Esempio n. 3
0
 protected T ReadAndHandleException <T>(QueryFilter filter) where T : IConfigurable, new()
 {
     try
     {
         IConfigurable[] source = this.DataProvider.Find <T>(filter, null, false, null);
         return((T)((object)source.FirstOrDefault <IConfigurable>()));
     }
     catch (DataProviderMappingException ex)
     {
         FfoDirectorySession.LogNotSupportedInFFO(ex);
     }
     return(default(T));
 }
Esempio n. 4
0
 private IEnumerable <T> FindImpl <T>(QueryFilter filter, ObjectId rootId, bool deepSearch, SortBy sortBy, int pageSize) where T : IConfigurable, new()
 {
     if (base.TenantId == null)
     {
         FfoDirectorySession.LogNotSupportedInFFO(null);
     }
     else
     {
         filter = this.AddFilterOperator(filter);
         if (typeof(T) == typeof(ExtendedSecurityPrincipal))
         {
             filter = FfoRecipientSession.ReduceSecurityPrincipalFilter(filter);
             IEnumerable <ADUser> users = base.FindAndHandleException <ADUser>(filter, rootId, deepSearch, sortBy, pageSize);
             foreach (ADUser user in users)
             {
                 yield return((T)((object)this.GetExtendedSecurityPrincipal(user)));
             }
         }
         else
         {
             IEnumerable <T> configObjs = base.FindAndHandleException <T>(base.AddTenantIdFilter(filter), rootId, deepSearch, sortBy, pageSize);
             foreach (T configObj in configObjs)
             {
                 ADObject adObject = configObj as ADObject;
                 if (adObject != null)
                 {
                     FfoDirectorySession.FixDistinguishedName(adObject, base.TenantId.DistinguishedName, base.TenantId.ObjectGuid, ((ADObjectId)adObject.Identity).ObjectGuid, null);
                     yield return((T)((object)this.FixRecipientProperties(adObject)));
                 }
                 else
                 {
                     yield return(configObj);
                 }
             }
         }
     }
     yield break;
 }
Esempio n. 5
0
        TResult IDirectorySession.ResolveWellKnownGuid <TResult>(Guid wellKnownGuid, string containerDN)
        {
            RoleGroupInitInfo roleGroupInitInfo = FfoDirectorySession.SupportedRoleGroups.FirstOrDefault((RoleGroupInitInfo roleGroup) => roleGroup.WellKnownGuid == wellKnownGuid);

            if (roleGroupInitInfo.WellKnownGuid == Guid.Empty)
            {
                FfoDirectorySession.LogNotSupportedInFFO(null);
                return(default(TResult));
            }
            string      propertyValue = roleGroupInitInfo.Name.Replace(" ", string.Empty).Replace("-", string.Empty);
            QueryFilter filter        = QueryFilter.AndTogether(new QueryFilter[]
            {
                new ComparisonFilter(ComparisonOperator.Equal, ADRecipientSchema.RecipientTypeDetailsValue, RecipientTypeDetails.RoleGroup),
                new ComparisonFilter(ComparisonOperator.Equal, ADObjectSchema.Name, propertyValue)
            });
            IEnumerable <IConfigurable> enumerable = ((IConfigDataProvider)this).Find <TResult>(filter, null, false, null);

            if (enumerable != null)
            {
                return(enumerable.Cast <TResult>().FirstOrDefault <TResult>());
            }
            return(default(TResult));
        }
Esempio n. 6
0
        protected IEnumerable <T> FindAndHandleException <T>(QueryFilter filter, ObjectId rootId, bool deepSearch, SortBy sortBy, int pageSize = 2147483647) where T : IConfigurable, new()
        {
            IEnumerable <T> result;

            try
            {
                IEnumerable <T> enumerable;
                if (pageSize == 2147483647)
                {
                    enumerable = this.DataProvider.Find <T>(this.AddTenantIdFilter(filter), rootId, deepSearch, sortBy).Cast <T>();
                }
                else
                {
                    enumerable = this.DataProvider.FindPaged <T>(this.AddTenantIdFilter(filter), rootId, deepSearch, sortBy, pageSize);
                }
                result = enumerable;
            }
            catch (DataProviderMappingException ex)
            {
                FfoDirectorySession.LogNotSupportedInFFO(ex);
                result = new T[0];
            }
            return(result);
        }
Esempio n. 7
0
 bool IDirectorySession.ReplicateSingleObjectToTargetDC(ADObject instanceToReplicate, string targetServerName)
 {
     FfoDirectorySession.LogNotSupportedInFFO(null);
     return(false);
 }
Esempio n. 8
0
 string[] IDirectorySession.ReplicateSingleObject(ADObject instanceToReplicate, ADObjectId[] sites)
 {
     FfoDirectorySession.LogNotSupportedInFFO(null);
     return(new string[0]);
 }
Esempio n. 9
0
 ADRawEntry[] IDirectorySession.FindDeletedTenantSyncObjectByUsnRange(ADObjectId tenantOuRoot, long startUsn, int sizeLimit, IEnumerable <PropertyDefinition> properties)
 {
     FfoDirectorySession.LogNotSupportedInFFO(null);
     return(new ADRawEntry[0]);
 }
Esempio n. 10
0
 void IDirectorySession.UpdateServerSettings(PooledLdapConnection connection)
 {
     FfoDirectorySession.LogNotSupportedInFFO(null);
 }
Esempio n. 11
0
 void IDirectorySession.SaveSecurityDescriptor(ADObject obj, RawSecurityDescriptor sd, bool modifyOwner)
 {
     FfoDirectorySession.LogNotSupportedInFFO(null);
 }
Esempio n. 12
0
 ADOperationResultWithData <TResult>[] IDirectorySession.RunAgainstAllDCsInSite <TResult>(ADObjectId siteId, Func <TResult> methodToCall)
 {
     FfoDirectorySession.LogNotSupportedInFFO(null);
     return(null);
 }
Esempio n. 13
0
 ADScope IDirectorySession.GetReadScope(ADObjectId rootId, ADRawEntry scopeDeterminingObject, bool isWellKnownGuidSearch, out ConfigScopes applicableScope)
 {
     FfoDirectorySession.LogNotSupportedInFFO(null);
     applicableScope = ConfigScopes.AllTenants;
     return(new ADScope(rootId, null));
 }
Esempio n. 14
0
 ADScope IDirectorySession.GetReadScope(ADObjectId rootId, ADRawEntry scopeDeterminingObject)
 {
     FfoDirectorySession.LogNotSupportedInFFO(null);
     return(ADScope.Empty);
 }
Esempio n. 15
0
 PooledLdapConnection IDirectorySession.GetReadConnection(string preferredServer, string optionalBaseDN, ref ADObjectId rootId, ADRawEntry scopeDeteriminingObject)
 {
     FfoDirectorySession.LogNotSupportedInFFO(null);
     return(null);
 }
Esempio n. 16
0
 PooledLdapConnection IDirectorySession.GetReadConnection(string preferredServer, ref ADObjectId rootId)
 {
     FfoDirectorySession.LogNotSupportedInFFO(null);
     return(null);
 }
Esempio n. 17
0
 ADObjectId IDirectorySession.GetHostedOrganizationsRoot()
 {
     FfoDirectorySession.LogNotSupportedInFFO(null);
     return(null);
 }
Esempio n. 18
0
 ADObjectId IDirectorySession.GetSchemaNamingContext()
 {
     FfoDirectorySession.LogNotSupportedInFFO(null);
     return(null);
 }
Esempio n. 19
0
 ADPagedReader <TResult> IDirectorySession.FindPagedDeletedObject <TResult>(ADObjectId rootId, QueryScope scope, QueryFilter filter, SortBy sortBy, int pageSize)
 {
     FfoDirectorySession.LogNotSupportedInFFO(null);
     return(null);
 }
Esempio n. 20
0
 TenantRelocationSyncObject IDirectorySession.RetrieveTenantRelocationSyncObject(ADObjectId entryId, IEnumerable <PropertyDefinition> properties)
 {
     FfoDirectorySession.LogNotSupportedInFFO(null);
     return(null);
 }
Esempio n. 21
0
 Result <ADRawEntry>[] IDirectorySession.FindByExchangeLegacyDNs(string[] exchangeLegacyDNs, params PropertyDefinition[] properties)
 {
     FfoDirectorySession.LogNotSupportedInFFO(null);
     return(new Result <ADRawEntry> [0]);
 }
Esempio n. 22
0
 bool IDirectorySession.IsReadConnectionAvailable()
 {
     FfoDirectorySession.LogNotSupportedInFFO(null);
     return(true);
 }
Esempio n. 23
0
 void IDirectorySession.SaveSecurityDescriptor(ADObjectId id, RawSecurityDescriptor sd)
 {
     FfoDirectorySession.LogNotSupportedInFFO(null);
 }
Esempio n. 24
0
 Result <ADRawEntry>[] IDirectorySession.FindByCorrelationIds(Guid[] correlationIds, ADObjectId configUnit, params PropertyDefinition[] properties)
 {
     FfoDirectorySession.LogNotSupportedInFFO(null);
     return(new Result <ADRawEntry> [0]);
 }
Esempio n. 25
0
 bool IDirectorySession.TryVerifyIsWithinScopes(ADObject entry, bool isModification, out ADScopeException exception)
 {
     FfoDirectorySession.LogNotSupportedInFFO(null);
     exception = null;
     return(true);
 }
Esempio n. 26
0
 TResult[] IDirectorySession.ObjectsFromEntries <TResult>(SearchResultEntryCollection entries, string originatingServerName, IEnumerable <PropertyDefinition> properties, ADRawEntry dummyInstance)
 {
     FfoDirectorySession.LogNotSupportedInFFO(null);
     return((TResult[])new ADRawEntry[0]);
 }
Esempio n. 27
0
 void IDirectorySession.VerifyIsWithinScopes(ADObject entry, bool isModification)
 {
     FfoDirectorySession.LogNotSupportedInFFO(null);
 }
Esempio n. 28
0
 SecurityDescriptor IDirectorySession.ReadSecurityDescriptorBlob(ADObjectId id)
 {
     FfoDirectorySession.LogNotSupportedInFFO(null);
     return(null);
 }
Esempio n. 29
0
 bool IDirectorySession.IsRootIdWithinScope <TObject>(ADObjectId rootId)
 {
     FfoDirectorySession.LogNotSupportedInFFO(null);
     return(true);
 }
Esempio n. 30
0
 Result <ADRawEntry>[] IDirectorySession.FindByObjectGuids(Guid[] objectGuids, params PropertyDefinition[] properties)
 {
     FfoDirectorySession.LogNotSupportedInFFO(null);
     return(new Result <ADRawEntry> [0]);
 }