Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Anonymous read-only access to feeds

    Scheduled Pinned Locked Moved Support
    authenticationproget
    14 Posts 1 Posters 47 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? This user is from outside of this forum
      Guest
      last edited by

      I've currently got ProGet v3.7.3 setup with LDAP authentication. However the problem is that when our build process tries to download feeds it's prompted for a username and password. I'm not really sure how to setup ProGet so that the build process can access the feeds anonymously to download packages, but genuine interactive users are prompted for a username/password (if accessing from different domain) or automatically logged straight in if they have permissions and accessing from the same domain as the server. I think something is not right with my settings because even if I try and access ProGet from a machine on the same domain as the server (say after an iisreset), even though LDAP authentication is enabled and I have admin privileges, I still get prompted for a username & password.

      Product: ProGet
      Version: 3.7.3

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        I am getting exactly the same message with the same setup.

        Product: ProGet
        ver 3.7.3

        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          What is your build process using to download feeds? Is it nuget.exe, or some other tool?

          1 Reply Last reply Reply Quote 0
          • ? This user is from outside of this forum
            Guest
            last edited by

            It's nuget.exe. Our build process does a nuget restore prior to building the solution.

            1 Reply Last reply Reply Quote 0
            • ? This user is from outside of this forum
              Guest
              last edited by

              Just wondering if there was any update on this?

              1 Reply Last reply Reply Quote 0
              • ? This user is from outside of this forum
                Guest
                last edited by

                What URL are you using to access the feed? Does it have a period in it when it doesn't work? What happens if you grant access to "Everyone", does it prompt then?

                1 Reply Last reply Reply Quote 0
                • ? This user is from outside of this forum
                  Guest
                  last edited by

                  Where do I set access for "everyone"? I'm using ldap authentication so the only place this would make sense is under assign privileges, but if I try and select that and enter "everyone" in the principals field it says no matches found.

                  1 Reply Last reply Reply Quote 0
                  • ? This user is from outside of this forum
                    Guest
                    last edited by

                    What authentication settings should I have setup in IIS? At the moment I've only got Windows authentication setup. If I enable anonymous authentication then it takes me to a (different) login prompt - /log-in?ReturnUrl=%2F.

                    1 Reply Last reply Reply Quote 0
                    • ? This user is from outside of this forum
                      Guest
                      last edited by

                      Would it be possible to get an update on this?

                      1 Reply Last reply Reply Quote 0
                      • ? This user is from outside of this forum
                        Guest
                        last edited by

                        If you're using Integrated/Windows Authentication, then all clients must be able to authenticate against the server using a valid Kerberos authentication ticket. Web browsers do this automagically, as does (some) versions of NuGet.exe, but it only works if the domain is properly configured with SPNs.

                        So, your build process needs to be (1) running under a Windows Domain account with access to ProGet, (2) use the right version of NuGet.exe, and (3) be configured properly to generate the ticket.

                        1 Reply Last reply Reply Quote 0
                        • ? This user is from outside of this forum
                          Guest
                          last edited by

                          1. is true - the build process is running under a managed service account. Can you provide more details on 2) & 3) please?
                          1 Reply Last reply Reply Quote 0
                          • ? This user is from outside of this forum
                            Guest
                            last edited by

                            If you're using a service account, then I would log-in to the build server using that account, then try to visit proget using the same url you are in the build process.

                            If you're prompted for credentials by the browser there (but not on your workstation), then you know it's a Kerberos thing, and that's between the browser and IIS. That's hard to track down, and can be ONE THOUSAND things from a time difference more than 5 minutes to SPNs.

                            If it works in the browser but not with NuGet.exe, then just try a different version. The 2.6's seem to balance working integrated auth with no other major bugs, but it will throw errors on some newer packages. The proget client tools still work for the most part, but aren't supported anymore.

                            1 Reply Last reply Reply Quote 0
                            • ? This user is from outside of this forum
                              Guest
                              last edited by

                              Everything seems to prompt me for credentials, even though the logged on user is setup in LDAP in ProGet. Even trying to restore a package from within devstudio prompts me to login to the ProGet server. What would be helpful is some information on how IIS should be configured for what I'm trying to acheive.

                              1 Reply Last reply Reply Quote 0
                              • ? This user is from outside of this forum
                                Guest
                                last edited by

                                I see, in that case, your network/server is not properly configured. This is not trivial to troubleshoot, and this is happening before the request hits our software.

                                The most likely culprit is an invalid/missing SPN, and a domain administrator must add that.

                                Here are some additional resources to follow:

                                • https://support.microsoft.com/en-us/kb/969060
                                • http://www.sidesofmarch.com/index.php/archive/2011/11/04/troubleshooting-windows-authentication-in-iis/
                                • http://serverfault.com/questions/341978/troubleshooting-windows-authentication-problems-no-challenge-in-iis-7-5

                                Search terms, "diagnosing windows authentication iis"

                                1 Reply Last reply Reply Quote 0

                                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                With your input, this post could be even better 💗

                                Register Login
                                • 1 / 1
                                • First post
                                  Last post
                                Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation