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!

    Proget allows login once using LDAP Auth, then crashes until IISRESET

    Scheduled Pinned Locked Moved Support
    progetldap
    3 Posts 1 Posters 26 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 managed to get ProGet running using an existing SQL Server 2012 and IIS on Windows Server 2012. I also was able to switch to LDAP Authentication.

      So far so good.

      Now, I still have the following problem:

      I can open my browser, go to the ProGet server and login with windows authentication using my domain account. Works. When I open the browser a second time, navigating to the ProGet site, I always get that:

      Image Text

      The only thing I found that helps is to reset the IIS and then, I can log in again (once! Then, another iisreset is required).

      Product: ProGet
      Version: 2.2.10

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

        hello; this is a bad error message, but the underlying problem is that the AD user look-up failed. When we attempt to look up the LOGON_USER token, LDAP simply returns null.

        We're going to fix the error message in PG-173, but intermittent failure sounds likes (yet another) problem with the net35 AccountManagement API. We do plan on switching to the more reliable net20 DirectoryServices API in a future version.

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

          Thinking about your answer, i'm pretty sure that this is not a problem with the .Net API. I guess that is tightly related to the second question, I've filed here (see "USE ACCOUNTS FROM TRUSTED DOMAIN FOR RIGHTS ASSIGNMENT"). Whenever i open a browser on machine.dev.local and go to the ProGet Server (located in dev.local - see explanation of the infrastructure in above mentioned question), I'm authenticated as company\John (which is a user of a different domain but dev.local has a trust with company.com). As long as the ProGet implementation assumes the accounts used for authentication to be members of the domain where proget is located in (and i guess that's the case!), you will get null back from the .Net API.

          So for scenario like mine,

          this would fail (principal = null):

          var ctx = new PrincipalContext(ContextType.Domain);
          var principal = UserPrincipal.FindByIdentity(ctx, @"company\John");
          

          and this would work (principal has the expected value):

          var ctx = new PrincipalContext(ContextType.Domain, null, "company.com", @"AnAccountFromCompanyDomain", "TheAccountsPassword"));
          var principal = UserPrincipal.FindByIdentity(ctx, @"company\John");
          

          I guess you need, you just have to make the account domain configurable for cases, it differs from the domain where ProGet is located in and let the user apply credentials fro Account- Queries in the Account- Domain and then use the example above to query and you're done. Right? ;-)

          So big question for me now is if and when can i expect a version that supports our scenario. As i told Karl last week, we're looking for a commercial solution to replace our Inhouse- Solution to reduce our maintenance efforts for package management tools. Unfortunately we run out of time for the decision to go with an external tool or to keep our internal stuff running. Would be great to get some info about if and if yes, when we can expect a ProGet version that fits our needs.

          Best Regards,
          Joachim

          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