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)); }
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)); }
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; }
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)); }
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); }
bool IDirectorySession.ReplicateSingleObjectToTargetDC(ADObject instanceToReplicate, string targetServerName) { FfoDirectorySession.LogNotSupportedInFFO(null); return(false); }
string[] IDirectorySession.ReplicateSingleObject(ADObject instanceToReplicate, ADObjectId[] sites) { FfoDirectorySession.LogNotSupportedInFFO(null); return(new string[0]); }
ADRawEntry[] IDirectorySession.FindDeletedTenantSyncObjectByUsnRange(ADObjectId tenantOuRoot, long startUsn, int sizeLimit, IEnumerable <PropertyDefinition> properties) { FfoDirectorySession.LogNotSupportedInFFO(null); return(new ADRawEntry[0]); }
void IDirectorySession.UpdateServerSettings(PooledLdapConnection connection) { FfoDirectorySession.LogNotSupportedInFFO(null); }
void IDirectorySession.SaveSecurityDescriptor(ADObject obj, RawSecurityDescriptor sd, bool modifyOwner) { FfoDirectorySession.LogNotSupportedInFFO(null); }
ADOperationResultWithData <TResult>[] IDirectorySession.RunAgainstAllDCsInSite <TResult>(ADObjectId siteId, Func <TResult> methodToCall) { FfoDirectorySession.LogNotSupportedInFFO(null); return(null); }
ADScope IDirectorySession.GetReadScope(ADObjectId rootId, ADRawEntry scopeDeterminingObject, bool isWellKnownGuidSearch, out ConfigScopes applicableScope) { FfoDirectorySession.LogNotSupportedInFFO(null); applicableScope = ConfigScopes.AllTenants; return(new ADScope(rootId, null)); }
ADScope IDirectorySession.GetReadScope(ADObjectId rootId, ADRawEntry scopeDeterminingObject) { FfoDirectorySession.LogNotSupportedInFFO(null); return(ADScope.Empty); }
PooledLdapConnection IDirectorySession.GetReadConnection(string preferredServer, string optionalBaseDN, ref ADObjectId rootId, ADRawEntry scopeDeteriminingObject) { FfoDirectorySession.LogNotSupportedInFFO(null); return(null); }
PooledLdapConnection IDirectorySession.GetReadConnection(string preferredServer, ref ADObjectId rootId) { FfoDirectorySession.LogNotSupportedInFFO(null); return(null); }
ADObjectId IDirectorySession.GetHostedOrganizationsRoot() { FfoDirectorySession.LogNotSupportedInFFO(null); return(null); }
ADObjectId IDirectorySession.GetSchemaNamingContext() { FfoDirectorySession.LogNotSupportedInFFO(null); return(null); }
ADPagedReader <TResult> IDirectorySession.FindPagedDeletedObject <TResult>(ADObjectId rootId, QueryScope scope, QueryFilter filter, SortBy sortBy, int pageSize) { FfoDirectorySession.LogNotSupportedInFFO(null); return(null); }
TenantRelocationSyncObject IDirectorySession.RetrieveTenantRelocationSyncObject(ADObjectId entryId, IEnumerable <PropertyDefinition> properties) { FfoDirectorySession.LogNotSupportedInFFO(null); return(null); }
Result <ADRawEntry>[] IDirectorySession.FindByExchangeLegacyDNs(string[] exchangeLegacyDNs, params PropertyDefinition[] properties) { FfoDirectorySession.LogNotSupportedInFFO(null); return(new Result <ADRawEntry> [0]); }
bool IDirectorySession.IsReadConnectionAvailable() { FfoDirectorySession.LogNotSupportedInFFO(null); return(true); }
void IDirectorySession.SaveSecurityDescriptor(ADObjectId id, RawSecurityDescriptor sd) { FfoDirectorySession.LogNotSupportedInFFO(null); }
Result <ADRawEntry>[] IDirectorySession.FindByCorrelationIds(Guid[] correlationIds, ADObjectId configUnit, params PropertyDefinition[] properties) { FfoDirectorySession.LogNotSupportedInFFO(null); return(new Result <ADRawEntry> [0]); }
bool IDirectorySession.TryVerifyIsWithinScopes(ADObject entry, bool isModification, out ADScopeException exception) { FfoDirectorySession.LogNotSupportedInFFO(null); exception = null; return(true); }
TResult[] IDirectorySession.ObjectsFromEntries <TResult>(SearchResultEntryCollection entries, string originatingServerName, IEnumerable <PropertyDefinition> properties, ADRawEntry dummyInstance) { FfoDirectorySession.LogNotSupportedInFFO(null); return((TResult[])new ADRawEntry[0]); }
void IDirectorySession.VerifyIsWithinScopes(ADObject entry, bool isModification) { FfoDirectorySession.LogNotSupportedInFFO(null); }
SecurityDescriptor IDirectorySession.ReadSecurityDescriptorBlob(ADObjectId id) { FfoDirectorySession.LogNotSupportedInFFO(null); return(null); }
bool IDirectorySession.IsRootIdWithinScope <TObject>(ADObjectId rootId) { FfoDirectorySession.LogNotSupportedInFFO(null); return(true); }
Result <ADRawEntry>[] IDirectorySession.FindByObjectGuids(Guid[] objectGuids, params PropertyDefinition[] properties) { FfoDirectorySession.LogNotSupportedInFFO(null); return(new Result <ADRawEntry> [0]); }