Open Closed

LDAP on project #2992


User avatar
0
berly created

Hello, I just tried using LDAP with the sample. I have to replace the username for it to work. How to make the same modification on abp commercial?

  • ABP Framework version: v5.2.1
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no

14 Answer(s)
  • User Avatar
    0
    berly created

    i have also one error.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    How to make the same modification on abp commercial?

    https://docs.abp.io/en/commercial/latest/modules/account/ldap#customize-built-in-services

    i have also one error.

    This seems to be an issue with the LDAP server?

  • User Avatar
    0
    berly created

    In fact it works half the time, maybe there is an asynchronous problem?

    I need to overdrive only the NormalizeUserNameAsync method ?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    I need to overdrive only the NormalizeUserNameAsync method ?

    Yes You can give it a try

  • User Avatar
    0
    berly created

    When i try to log i have this error.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you share the sample code include your username and password?

    liming.ma@volosoft.com

  • User Avatar
    0
    berly created

    Done

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    ok, I will check it asap.

  • User Avatar
    0
    berly created

    in the sample i switchNative.LdapVersion.LDAP_VERSION3to this Native.LdapVersion.LDAP_VERSION But no in my abp project

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    I can't connect to srad01.manuloc.local. Maybe you can check on https://github.com/flamencist/ldap4net

    we not very good at LDAP-related details.

  • User Avatar
    0
    berly created
                ldapConnection.Connect(server, serverPort, Native.LdapSchema.LDAP, Native.LdapVersion.LDAP_VERSION2);
                var UserfName = $"cn={adminUserName},{baseDc}";
    
                    await ldapConnection.BindAsync(Native.LdapAuthType.Negotiate, new LdapCredential
                    
    

    Do you know where can i switch Native.LdapAuthType.Negotiate and Native.LdapVersion.LDAP_VERSION2 ?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    I'm not sure. You can search on https://github.com/flamencist/ldap4net

  • User Avatar
    0
    berly created

    I download the Volo.Account.Pro module but i dont't find where the ldap configuration is made.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    The class is LdapExternalLoginProvider

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 13, 2025, 04:08