Activities of "maliming"

Answer

hi

Try to set Layout to null of your partial view.

@{
    Layout = null;
    PageLayout.Content.Title = L["Wizard Steps"].Value;
    PageLayout.Content.MenuItemName = HorizonERPMenus.MainWizard;
}

Set log level in your c# application.

Program.cs file.

hi

  1. Enable debug log level
  2. Make the api/app/book in your Postman with your access token.
  3. Share the logs.txt file with liming.ma@volosoft.com

.MinimumLevel.Debug()

loggerConfiguration
    .MinimumLevel.Debug()
    .MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning)
    .Enrich.FromLogContext()
    .WriteTo.Async(c => c.File("Logs/logs.txt"))
    .WriteTo.Async(c => c.Console())
    .WriteTo.Async(c => c.AbpStudio(services));

hi

Please share your project type.

  • UI Type: Angular / MVC / Blazor WASM / Blazor Server
  • Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..) / MongoDB
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes/no

Great : )

hi

Please share full debug logs of this request(made by postman).

https://pcassist-testing.premiumasp.net/api/app/book

liming.ma@volosoft.com

Thanks.

hi

  1. see 3.2

  2. Cors will check if the request header contains Origin etc..

Check the logic of CorsMiddleware

https://github.com/dotnet/aspnetcore/blob/release/9.0/src/Middleware/CORS/src/Infrastructure/CorsMiddleware.cs#L107-L110 https://github.com/dotnet/aspnetcore/blob/release/9.0/src/Middleware/CORS/src/Infrastructure/CorsMiddleware.cs#L112-L157 https://learn.microsoft.com/en-us/aspnet/core/security/cors?view=aspnetcore-9.0

3.1 You can call _cache.GetOrAddAsync.

3.2 If there is no domains, you can return Task.FromResult<CorsPolicy?>(null);

https://github.com/dotnet/aspnetcore/blob/release/9.0/src/Middleware/CORS/src/Infrastructure/DefaultCorsPolicyProvider.cs#L12

hi

after checking server logs I found the below:

Please remove all Cookies from your HTTP request.

The anti-forgery will check if the current request contains the XSRF-TOKEN cookie.

https://abp.io/docs/latest/framework/infrastructure/csrf-anti-forgery

hi

You can configure the connection to specify DbContext.

For your case you need to change the connection string for IIdentityProDbContext(IIdentityDbContext)

https://abp.io/docs/latest/framework/fundamentals/connection-strings

Answer

hi

Please try to using MyOpenLdapManager to check the username and password

[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(OpenLdapManager), typeof(ILdapManager), typeof(LdapManager))]
public class MyOpenLdapManager : OpenLdapManager
{
    public MyOpenLdapManager(ILdapSettingProvider ldapSettingProvider)
        : base(ldapSettingProvider)
    {

    }
    
    protected async override Task<string> NormalizeUserNameAsync(string userName)
    {
        var username = $"cn={userName},{await LdapSettingProvider.GetBaseDcAsync()}";
        Logger.LogError("MyOpenLdapManager username: " + username);
        return username;
    }

    protected async override Task AuthenticateLdapConnectionAsync(ILdapConnection connection, string username, string password)
    {
        Logger.LogError("MyOpenLdapManager username: " + username);
        Logger.LogError("MyOpenLdapManager password: " + password);
        await connection.BindAsync(Native.LdapAuthType.Simple, new LdapCredential()
        {
            UserName = username,
            Password = password
        });
    }
}

Showing 2701 to 2710 of 11550 entries
Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on December 25, 2025, 06:16
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.