Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NuGet Gallery should support LDAP for on-premise deployments #554

Closed
matthewskelton opened this issue Jul 25, 2012 · 32 comments
Closed

NuGet Gallery should support LDAP for on-premise deployments #554

matthewskelton opened this issue Jul 25, 2012 · 32 comments

Comments

@matthewskelton
Copy link

For those who use NuGet Gallery on-premise (rather than just nuget.org), it'd be a big win for the Gallery to support LDAP for authentication rather than (or in addition to) the NuGet Gallery database authentication store.

@matthewskelton
Copy link
Author

Depending on how much interest there is, I might be able to contribute this change.

@analogrelay
Copy link
Contributor

I've often wanted OAuth login support as well, and we've done some work with Active Directory Federation inside Microsoft. Might be time to start planning a more robust, pluggable, authentication system.

@matthewskelton
Copy link
Author

Excellent - OAuth + LDAP + native DB would cover most bases I think.

@pranavkm
Copy link
Contributor

We'd be happy to take a pull request. As @anurse pointed out, it would be really nice to have OAuth on the gallery.

@grenade
Copy link
Contributor

grenade commented Aug 8, 2012

I have written an implementation that enables LDAP authentication.
The pull request is here: #562
The fork is here: https://github.com/grenade/NuGetGallery-LdapAuth

@ghost ghost assigned pranavkm Sep 5, 2012
@markmelville
Copy link

What if the status of this pull request? Seems to have quieted down over the last few months.

@jeffhandley
Copy link
Member

We'll try to take a look soon. Since the fork is available, and LDAP wasn't needed for nuget.org, we hadn't gotten to this yet.

@markmelville
Copy link

Sorry, I don't know the best place to ask this question as there is no issues tab on the fork. I've tried running the fork on top of an existing installation of the project, and got an error that DbMigrations could not be applied because it would remove data. What can be done to massage the migrations through?

@jeffhandley
Copy link
Member

Not terribly long ago, we added some migrations that shrank some text fields from nvarchar(MAX) down to have logical lengths. I'm guessing you have data in your database that would get truncated.

The changes were made in commit e1f2302.

@kamranayub
Copy link

We're also looking to host an internal gallery... this would be huge! I was going to try and see if I could get the fork running on my machine. Seems like there would be a ton of merging to do since this was last updated.

@analogrelay
Copy link
Contributor

We're working on some other Auth stuff as well and hopefully LDAP will be able to be a more modular plugin to that model. I don't think we'd take LDAP auth in the main code at first, but hopefully it would be easier to maintain a clean fork that just adds that component.

@DamianReeves
Copy link

+1 For LDAP Auth. We want this for our Enterprise gallery. Is there any talk of symbol server support as well or can I just add use this in my NuGet Gallery installation?

@maslakov
Copy link

+100 for LDAP
Now we have to use fork by grenade and I really can't imagine how to merge it with actual code.
We are also looking for some other solution for enterprise nuget repo, but unfortunately with no results.

@matthewskelton
Copy link
Author

@maslakov We eventually went with Artifactory Pro, which has built-in NuGet support, including LDAP auth.

@MattLud
Copy link

MattLud commented Sep 5, 2013

I've started a port of @grenade work with LDAP into a current version of the gallery. If there is any guidance in cleaning up the auth process, I'm all for incorporating it as part or a separate issue.

https://github.com/Seakip18/NuGetGallery/tree/seakip18-554-ldapsupport

@l3m
Copy link

l3m commented Sep 17, 2013

Any news on the integration? LDAP for NuGet Gallery sounds really promising. We are currently using ProGet and it just causes so many problems, needs to be restarted all the time etc.

@analogrelay
Copy link
Contributor

We still don't have direct plans for LDAP as our primary audience is the nuget.org site (we definitely want to make it as easy as possible to host private galleries, but we're a very limited team :)).

We do have very concrete plans for pluggable auth in the near future (specifically focusing on OAuth right now). With that model, it would be quite straightforward to maintain an LDAP authentication component that could easily be integrated into the Gallery. It wouldn't be as simple as just editing config, but it should be a very light fork that just adds a few classes.

@fabiostawinski
Copy link
Contributor

Also I'm looking foward this implementation 👍

@grenade
Copy link
Contributor

grenade commented Nov 18, 2013

If there is an issue or fork related to the pluggable auth mentioned earlier, I am happy to work with other contributors for implementing the LDAP module. I am now working with a third enterprise client who require this and it always feels sloppy to make them use my fork rather than the main gallery code.

@analogrelay
Copy link
Contributor

#253 is the closest to discussion on that topic. We're working on a few elements to make "shallow-forking" (i.e. forking the gallery to make minor additions/rebranding) easier and Authentication is one of them. There's now a PR out to add support for these pluggable authenticators, and while they may not be perfect for LDAP yet, we're certainly willing to take infrastructure changes to make them more pluggable (though we are less confident about taking a full LDAP feature :))

@Pyrolistical
Copy link

I want to use an OpenID. I don't want to create account to contribute.

If you add barriers to people who want to help, you are going to get less help.

@MattLud
Copy link

MattLud commented Feb 18, 2014

@anurse I'm starting work on this with the newer code and looking over the new credentials code - It doesn't look too easy to drop an assembly in but rather that it requires integration with the NuGet Gallery code.

Does that sound right?

@analogrelay
Copy link
Contributor

Yes, some integration with the gallery is still required, though it's much less invasive than it would have been prior to the new credentials code. Happy to help out if you have specific questions about the integration :).

@mmajcica
Copy link

Is there any progress on this? Any plugin available for LDAP auth?

Thanks

@MattLud
Copy link

MattLud commented Mar 5, 2014

Working on it right now.

LDAP support is a bit of an oddball area here - I'm betting no one wants to setup a separate LDAP application in which the sole purpose is to have a username & password screen that then sends them back to nuget gallery when the gallery is on the same network as the LDAP. It would ideally reuse the existing username/password boxes that'd also support autoenroll as @grenade did.

I'm also trying to figure out the best way to fit it without being invasive to the existing local usercode as a result.

@kamranayub
Copy link

Well it would ideally use integrated authentication to avoid username/password boxes, but at least allowing AD login is a good MVP.

@OlRedHawk
Copy link

Yes it would, I still have 4 servers down including ATHERLITH due to misidentifications and getting the wrong builds, if u look, i have'nt been there in awhile. My enterprise id crashed

Date: Thu, 6 Mar 2014 05:07:51 -0800
From: notifications@github.com
To: NuGetGallery@noreply.github.com
Subject: Re: [NuGetGallery] NuGet Gallery should support LDAP for on-premise deployments (#554)

Well it would ideally use integrated authentication to avoid username/password boxes, but at least allowing AD login is a good MVP.


Reply to this email directly or view it on GitHub.

@CumpsD
Copy link
Contributor

CumpsD commented May 16, 2014

I can only add another 👍 +1 from my side to get Integrated Auth

@analogrelay
Copy link
Contributor

This just isn't something we're able to prioritize in the core Gallery. We'd be happy to accept PRs which improve the extensibility of the authentication model so that this can be easily integrated into custom Gallery deployments.

@ghost
Copy link

ghost commented Jun 8, 2014

is it actual?

@jgauffin
Copy link

+1 for windows auth

@digitalray
Copy link

  • for LDAP/Active Directory ntlm authentication...Hosting a private gallery, chances are you’re on an Active Directory and don't want to have users login 2 times to get to NuGet Gallery. You want to add them in a AD group which will give them access.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.