Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Identityserver4 ldap scenario

I'm planning to use identityserver4 with an LDAP scenario. Is it a possible and reasonable attempt ? :) I thought I should implement a LoginService like QuickStart.UI's InMemoryUserLoginService.

And When IS4 will be released officially? Any info about that?

Thanks and regards.

like image 818
ozgurozkanakdemirci Avatar asked Dec 02 '22 13:12

ozgurozkanakdemirci


2 Answers

I know it's an old question, but I worked recently on the Ldap (Active Directory or OpenLdap) + IdentityServer4. I created a nuget package and on the github repository you can find an implementation sample.

Here's the Nuget: https://www.nuget.org/packages/IdentityServer.LdapExtension/

I hope it can helps

like image 89
Nordes Avatar answered Dec 07 '22 23:12

Nordes


It's possible and reasonable, it's something you will have to implement on your own which follows the same principle as many other things related to IdentityServer.

We have successfully connected our IdSrv4 to Active Directory using the System.DirectoryServices and System.DirectoryServices.AccountManagement namespaces. Sadly this requires us to run IdSrv4 using full .NET framework since these namespaces haven't been implemented in .NET Core yet.

Reminder: Lookup the area "LDAP injections" before launching your solution, to be on the safe side.

like image 30
Jonas Avatar answered Dec 08 '22 00:12

Jonas