Konfigurieren Sie DirectorySearchOptions von appsettings

This commit is contained in:
Developer 02 2024-06-13 16:00:55 +02:00
parent 98362c46b5
commit eb92b4db67
3 changed files with 5 additions and 4 deletions

View File

@ -60,6 +60,7 @@ try {
//builder.Services.AddAutoMapper(typeof(DirectoryMappingProfile).Assembly); //builder.Services.AddAutoMapper(typeof(DirectoryMappingProfile).Assembly);
builder.Services.AddUserManager<UserManagerDbContext>(); builder.Services.AddUserManager<UserManagerDbContext>();
builder.ConfigureBySection<DirectorySearchOptions>();
builder.Services.AddDirectorySearchService(); builder.Services.AddDirectorySearchService();
builder.Services.AddCookieBasedLocalizer(); builder.Services.AddCookieBasedLocalizer();

View File

@ -11,7 +11,7 @@
"AllowedOrigins": [ "http://172.24.12.39:85", "http://localhost:85", "http://localhost:4200", "http://localhost:5500", "https://localhost:7202" ], "AllowedOrigins": [ "http://172.24.12.39:85", "http://localhost:85", "http://localhost:4200", "http://localhost:5500", "https://localhost:7202" ],
"UseSwagger": true, "UseSwagger": true,
"RunAsWindowsService": false, "RunAsWindowsService": false,
"DirectorySearch": { "DirectorySearchOptions": {
"ServerName": "DD-VMP01-DC01", "ServerName": "DD-VMP01-DC01",
"Root": "DC=dd-gan,DC=local,DC=digitaldata,DC=works", "Root": "DC=dd-gan,DC=local,DC=digitaldata,DC=works",
"UserCacheExpirationDays": 1, "UserCacheExpirationDays": 1,

View File

@ -11,7 +11,7 @@
"AllowedOrigins": [ "http://172.24.12.39:85", "http://localhost:85", "http://localhost:4200", "http://localhost:5500", "https://localhost:7202" ], "AllowedOrigins": [ "http://172.24.12.39:85", "http://localhost:85", "http://localhost:4200", "http://localhost:5500", "https://localhost:7202" ],
"UseSwagger": true, "UseSwagger": true,
"RunAsWindowsService": false, "RunAsWindowsService": false,
"DirectorySearch": { "DirectorySearchOptions": {
"ServerName": "DD-VMP01-DC01", "ServerName": "DD-VMP01-DC01",
"Root": "DC=dd-gan,DC=local,DC=digitaldata,DC=works", "Root": "DC=dd-gan,DC=local,DC=digitaldata,DC=works",
"UserCacheExpirationDays": 1, "UserCacheExpirationDays": 1,