Active Directory as OpenID provider?
Asked Answered
C

4

21

Can an Active Directory be used as an OpenID provider? WIF is an option, but it's quite complicated and not very widespread.

Churchless answered 16/3, 2010 at 11:4 Comment(0)
S
15

Yes, you can. Just host an ASP.NET web site that itself uses Active Directory authentication, and exposes an OpenID Provider using DotNetOpenAuth.

Sextodecimo answered 17/3, 2010 at 0:1 Comment(2)
Any links to some sample code for how to do this? The DotNetOpenAuth site has limited documentation.Goodbye
To do what, exactly? If you want to be an Active Directory relying party, you'll have to find AD documentation for that. If you want to (also) be a DotNetOpenAuth OpenID Provider, there are samples that come with the library to demonstrate that, and some limited documentation as you've said.Sextodecimo
H
7

ADFS 4.0, available from Windows Server 2016 onwards, allows authentication using OpenID.

Honeyed answered 13/6, 2018 at 13:40 Comment(0)
I
5

There is also OpenID-LDAP server which claims to work with AD LDAP.

Ichthyic answered 23/6, 2010 at 4:17 Comment(1)
I've tried configuring OpenID-LDAP-PHP, but it stores the shared secret in SESSION (bound to the enduser) so that when the server issues check_authentication request it always replies with false - it can't find the shared secret in the SESSION for the server. It is generally very crappy code, with insufficient logging and uses mt_rand for crypto. Avoid.Therefor
E
1

Or you can use RedHat Keycloak, which leverages any LDAP or Kerberos Server as a repository to be used with OIDC or even with poor man's auth SAML.

Encampment answered 10/8, 2018 at 0:44 Comment(1)
I wonder how they do that. I saw OpenID as an available protocol to connect to AD using Keycloak, although OpenID wasn't suported by AD for a long time.Chemar

© 2022 - 2024 — McMap. All rights reserved.