Setting up LDAP NetStandard 2 authentication in .NET Core MVC

Robert Murrell 106 Reputation points
2021-01-07T17:09:31.493+00:00

I'm trying to implement LDAP authentication in a .NET Core 3 MVC application using the Novell.Directory.Ldap.NETStandard2_0 nuget package. I'm using this package because the application will be hosted on a Linux server, so the Windows Compatibility Pack is not an option as I understand it. I'm new to MVC, and my googling hasn't turned up answer.

I see code samples like the ones given in this SO post (second answer) that look like what I want to do, but I have no idea how to get started. Can I use the Identity Authentication/Login override? Should I make my own login page from scratch instead?

Any guidance would be appreciated.

Developer technologies .NET .NET Runtime
Microsoft Security Microsoft Entra Other
{count} vote

1 answer

Sort by: Most helpful
  1. Ali Javani 1 Reputation point
    2021-08-22T20:28:09.507+00:00

    Hi

    I didn't test this code but maybe its wanna working
    https://github.com/cchaconXms/xmsbs.ldapservice

    this is just my attitude you can don't agree with me.
    authentication and authorization in DotNetFramework was rely more flexible than DotNetCore i was create SSO with LDAP and PKE passive key less entry and public key enabled in one solution but making Auth services in dot net core just tortured me but at last I made my own SSO and still love dot net framework Authority.

    best regards AJ.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.