Konfigurieren Sie DirectorySearchOptions von appsettings
This commit is contained in:
parent
98362c46b5
commit
eb92b4db67
@ -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();
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user