ldap4net | OpenLdap port for DotNet Core | Identity Management library
kandi X-RAY | ldap4net Summary
kandi X-RAY | ldap4net Summary
OpenLdap port for DotNet Core (Linux\OSX\Windows)
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ldap4net
ldap4net Key Features
ldap4net Examples and Code Snippets
Community Discussions
Trending Discussions on ldap4net
QUESTION
I am kinda lost now, I want to implement centralised user management here, and we have .NET Core 2.1 Web MVC app hosted on Linux, which uses Identity.EntityFrameworkCore
to store users' information. Also we have FreeIPA for user management which is basically Kerberos authentication on LDAP directory.
As it's deployed on Linux I can't use WindowsAuthentication
to use Kerberos, and also there is no standard way to use LDAP without Windows Compatibility Pack. The only way that is left is to use third-party library, but unfortunately I'm really new to .NET Core and C#, so here's what I'm trying to do:
- Store user information (roles\claims\credentials) inside LDAP to implement centralised user management (now using database tables)
- I want to implement SSO, this is possible via Kerberos Negotiate authentication, but now I can't find a way to use this on Linux. Also it's possible with app-> redirect to Keycloak -> Kerberos->OpenID Connect -> app, but I'd be glad to find solution with Kerberos
Well, I found bunch of third-party libraries like this, this and the whole bunch of THIS, and they all look promising, but I didn't found any with enough documentation or examples to use with .NET Core Identity
.
As I said, I'm complete newbie in C# and .NET overall, and I'm unfortunately don't have an idea about either which of this library is better or is there any for straightforward way to use them to store and authenticate users.
P.S I know this question is dumb, but for learning purposes I had to make one. Any help with this would be appreciated!
...ANSWER
Answered 2019-Feb-23 at 20:36Well, looks like I mostly found the answer, but it has some caveats anyway. I used the Keycloak OpenID Connect setup with SSSD federation, because LDAP is the wrong approach for my goals anyway. More about that setup you can read here, I faced some stupid moments over there, most of them are predicted and bypassed in this guide, but that's more a FreeIPA + Keycloak thread. Last Keycloak thing that should be noted: I had to add and allow HBAC "keycloak" service to make it work, because otherwise my SSSD authentication was denied. Going forward to the .NET Core part: my app is 2.1, and my setup looks like that:
I added the following into Startup.cs dependencies:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ldap4net
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page