- Neue Methode zur Überprüfung von Anmeldeinformationen in DirectorySearchService hinzugefügt. - Anpassung der Eigenschaften von Suchergebnissen ermöglicht.
25 lines
982 B
C#
25 lines
982 B
C#
using System.DirectoryServices;
|
|
|
|
namespace DigitalData.Core.Contracts.Application
|
|
{
|
|
public interface IDirectorySearchService : IServiceBase
|
|
{
|
|
public string ServerName { get; }
|
|
|
|
public string Root { get; }
|
|
|
|
string SearchRootPath { get; }
|
|
|
|
Dictionary<string, string> CustomSearchFilters { get; }
|
|
|
|
bool ValidateCredentials(string dirEntryUsername, string dirEntryPassword);
|
|
|
|
IServiceResult<IEnumerable<ResultPropertyCollection>> FindAll(DirectoryEntry searchRoot, string filter, SearchScope searchScope = SearchScope.Subtree, int sizeLimit = 5000, params string[] properties);
|
|
|
|
IServiceResult<IEnumerable<ResultPropertyCollection>> FindAllByUserCache(string username, string filter, SearchScope searchScope = SearchScope.Subtree, int sizeLimit = 5000, params string[] properties);
|
|
|
|
void SetSearchRootCache(string username, string password);
|
|
|
|
DirectoryEntry? GetSearchRootCache(string username);
|
|
}
|
|
} |