Open Closed

Enable SSO #10470


User avatar
0
ttrahmo created

Dear Team,

I need to enable the SSO in my application when the user login only , but not working

What I have to do?

Thanks


14 Answer(s)
  • User Avatar
    0
    AI-Bot created
    Support Team ABP Agent
    • What you enabled in the UI (“Ldap Login Settings”) is LDAP username/password login, not SSO.

      • LDAP login still requires the user to type credentials on the ABP login page.
      • SSO (automatic sign-in with the current Windows/domain user) is a different feature (Windows Integrated Authentication / Kerberos/NTLM) and is not provided by the LDAP login setting in ABP.
    • If your goal is SSO, you need to use an identity provider/protocol that supports SSO for SPAs, typically:

      1. OpenID Connect (OIDC) with your IdP (Azure AD / Entra ID, ADFS, Keycloak, etc.)
      2. Or IIS/Windows Integrated Authentication (not the same as LDAP login) with custom setup (and it won’t work the same way for Angular SPA in many scenarios because the SPA uses OIDC redirects and tokens).
    • If your goal is LDAP login (not SSO) but it “does not work”, do all of these (host side):

      1. Enable the LDAP feature from Feature Management:
        • Host: Account.EnableLdapLogin must be enabled (and tenant too if you’re logging in as a tenant user).
      2. Configure the LDAP settings under Settings > Identity Management > LDAP (as you did).
      3. Clear/refresh caches and verify the feature value is actually stored (ABP stores feature values in DB; if a cache is stale you may not see it reflected immediately).
      4. Restart the AuthServer/HttpApi.Host after changing LDAP-related settings.
    • If you want “SSO only on login” for an Angular UI, the correct approach is usually:

      1. Configure OpenIddict/IdentityServer to use an external OIDC provider (Azure AD/ADFS/etc.).
      2. Customize the backend login UI to auto-redirect to that external provider (so the user never sees the local login form).

    Links (verified):

    • https://abp.io/support/questions/2270
    • https://abp.io/docs/latest/others/why-abp-platform

    This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Testing the LDAP configuration using your ABP application might be time-consuming. The following simple Dotnet Console App is for testing your LDAP configuration. Before configuring your LDAP settings, you can test the information via this app to see if it works.

    https://abp.io/docs/latest/modules/identity/ldap#ldap-test-application

  • User Avatar
    0
    ttrahmo created

    Dear Team,

    Could you please request a meeting to check my configuration and how I can mapping between the table users in the DB and the users in the LDAP.

    Thanks

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Hi,

    The documentation and test application above should be enough. Please give it a try first.

    Thanks.

  • User Avatar
    0
    ttrahmo created

    Dear Team,

    I got this error

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Please check this setting; you should enable it

    Thanks.

  • User Avatar
    0
    ttrahmo created

    Dear Team,

    I can't login with admin now. How i can do it from DB

    Thanks

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can check the AbpSettings table and remove the Abp.Account.EnableLocalLogin row.

    Thanks.

  • User Avatar
    0
    ttrahmo created

    Dear Team,

    I can login now with admin but still i can't configure the SSO.

    Thanks

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Please check and test your LADP configuration in the test app.

    See https://abp.io/support/questions/10470/Enable-SSO#answer-3a1fa592-de6f-be52-97c7-43b7c4feaefd

    Thanks.

  • User Avatar
    0
    ttrahmo created

    Dear Team,

    from the application not connected to server as below.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    It’s possible that your server can’t connect. Could you try using a client, like OpenLDAP?

    https://www.openldap.org/software/download/

    Thanks.

  • User Avatar
    0
    ttrahmo created

    Dear Team,

    Which one I have to download, and I have to text after download and install it in my PC or on he host server. Thanks

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    This is just to confirm that your LDAP connection is configured correctly. You can verify this in other ways without necessarily downloading any software, or you can consult your LDAP administrator for information.

    Because your current LADP can't connect.

    Thanks.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.3.0-preview. Updated on March 09, 2026, 08:51
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.