Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login
    1. Home
    2. scroak_6473
    3. Posts

    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!

    S Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 16
    • Posts 66
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Error Trying to add new User Directory (Active Directory LDAP)

      @rhessinger additionally the "Create new user directory" white screen "bug" above also happens when you try to add a new (clair) Vulnerability source:

      09a3eaea-0c84-4a63-a886-2afab795f74a-image.png

      Thanks

      Simon

      posted in Support
      S
      scroak_6473
    • RE: Error Trying to add new User Directory (Active Directory LDAP)

      Hey @rhessinger,

      I get the following error when selecting "use LDAPS":

      9f612d81-70e6-4695-96bc-9986ba2e4e27-image.png

      Unchecking the LDAPS box results in a successful connection/test.

      My guess is that the docker image is unable to verify the SSL certificate of the LDAPS server, as the docker host is a Linux VM so it does not have a "root CA" certificate installed on it to verify the SSL cert of the domain controller.

      Most other containerized applications all you to "skip the verification" like this example from Portainer:

      d6d7dbfb-cd9d-4dc2-8d53-6f13833cba3e-image.png

      My previous forum post (linked to above) was a request to add this feature.

      Alternatively if there if you guys can reference a root CA certificate that is installed on the containers file system I can see if I can "mount" it in the correct location. You'll just need to let me know where the certificate needs to be installed.

      Additionally could you let me know the .Net 5 library you are using to provide this LDAP functionality?

      Thanks

      Simon

      posted in Support
      S
      scroak_6473
    • RE: Error Trying to add new User Directory (Active Directory LDAP)

      Thanks @rhessinger

      Can confirm this workaround works.

      However it looks like you guys still are not supporting LDAPS, I have another forum post here: https://forums.inedo.com/topic/3024/proget-docker-image-ldap-ldaps-support?_=1607379833333

      Do you know if LDAPS in a docker container image will ever be supported?

      Thanks

      Simon

      posted in Support
      S
      scroak_6473
    • API Key "impersonate user" doesn't work when impersonating an LDAP user

      Hey Guys,

      I've just configured LDAP/AD authentication on ProGet (.net5) V5.3.17 and also removed anonymous user access.

      Therefore I am trying to setup docker image feed access from our docker hosts using API keys.

      I've setup the api key like this:
      e239bab8-39c0-4d1f-8e15-e47b0144f1fd-image.png

      Using the "Impersonate user" username of an LDAP account that has administrator permissions set for it in the "Users & Tasks" form:
      e1cce097-6f9b-4ef5-8271-fbe72e89fb01-image.png

      My plan is to reduce the amount of access this user has later.

      But when I try to do a "docker login" using "api" as the username and the API key as the password I get this error:

      f01e9b56-c69f-4300-a39a-44d5254c2bf4-image.png

      If I remove the "impersonate user" field from the key and leave it blank I can login without issue.

      Thanks

      Simon

      posted in Support
      S
      scroak_6473
    • RE: Error Trying to add new User Directory (Active Directory LDAP)

      Hi @atripp

      I have/did restart the container but no change:

      This is the InedoCore extension page:

      5ea4ebbd-150b-4d4b-a895-c066258493ed-image.png

      Thanks

      Simon

      posted in Support
      S
      scroak_6473
    • Error Trying to add new User Directory (Active Directory LDAP)

      Hey Guys,

      I'm Running ProGet 5.3.17 on a Docker host and I'm trying to configure an LDAP/AD connection for user authentication.

      I'm following these instructions: https://docs.inedo.com/docs/various/ldap/advanced

      But when I try to add an "Active Directory (LDAP)" connection I get the following blank screen:

      43f6bc36-0ae2-4cdc-8747-9fcfa4f3adca-image.png

      The error log shows this:

      An error occurred in the web application: Could not load file or assembly 'InedoCore, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
      

      Details:

      URL: http://proget.xxxxx.com/administration/security/directories/edit?type=Inedo.Extensions.UserDirectories.ADUserDirectory%2CInedoCore
      Referrer: https://proget.xxxxxxx.com/administration/security/create-new-directory
      User: Admin
      User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Safari/537.36
      Stack trace: at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, StackCrawlMarkHandle stackMark, ObjectHandleOnStack assemblyLoadContext, ObjectHandleOnStack type, ObjectHandleOnStack keepalive)
      at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, StackCrawlMark& stackMark, AssemblyLoadContext assemblyLoadContext)
      at System.Type.GetType(String typeName, Boolean throwOnError)
      at Inedo.Web.HttpArgs.QualifiedTypeQueryStringArgumentAttribute.ConvertFromString(Type targetType, String value)
      at Inedo.Web.HttpArgs.QueryStringArgumentAttribute.ConvertFromStringInternal(Type targetType, String value)
      at Inedo.Web.HttpArgs.QueryStringArgumentAttribute.Decode(String argumentName, Type targetType, HttpContext context)
      at Inedo.Web.HttpArgs.HttpArgumentProvider.HttpArgumentPage.InitializeArguments(IHttpHandler handler, HttpContext context)
      at Inedo.ProGet.WebApplication.ProGetHttpModule.PostMapRequestHandlerAsync(HttpApplication app) in C:\InedoAgent\BuildMasterTemp\192.168.44.60\Temp\_E82850\Src\ProGet.WebApplication\ProGetHttpModule.cs:line 437
      at Inedo.Web.AhWebMiddleware.InvokeAsync(HttpContext context)
      

      My extensions look like this:
      50ea0edd-3cfb-4ce1-8040-c66482210e16-image.png

      And advanced settings look like this:
      d2c909ba-a30b-40fe-b203-4a8fbc0adc36-image.png

      Any ideas?

      Thanks

      Simon

      posted in Support
      S
      scroak_6473
    • RE: ProGet net5.0 docker run in centos 7.8 web can't start(5.3.17)

      Hi @atripp

      I've been struggling getting the new version of proget(core) working on our Docker (CentOs) hosts for a while and I can confirm this is the issue!

      This can also be fixed when using a docker compose (stack) file by adding:

      working_dir: /usr/local/proget

      Would still be great to get this built in to the dockerfile during the next release however.

      Thank you @shijiyong_6709 for figuring this out!

      Simon

      posted in Support
      S
      scroak_6473
    • RE: BUG: ProGet Vulnerablity Listing

      That's amazing! Thanks so much @rhessinger

      You guys rock!

      posted in Support
      S
      scroak_6473
    • RE: Proget Docker container should support Ping command

      @atripp yes its easy to add using apt-get when required however if you have an issue where the container is automatically restarting (for some reason) you would need to install it after every restart.

      Its pretty common to have this application installed in most container images.

      Simon

      posted in Support
      S
      scroak_6473
    • RE: ProGet docker image LDAP/LDAPS Support

      @atripp thats amazing! Let me know when this releases. Happy to try it out in our Dev environment.

      Thanks

      Simon

      posted in Support
      S
      scroak_6473
    • RE: Proget Docker container should support Ping command

      Hi @atripp,

      That's correct. I'm having issue getting my proget container talking to my clair container and I want to make sure proget can communicated with clair over their shared docker network.

      So I connect to proget's container command line and try to issue "Ping clair" etc

      Simon

      posted in Support
      S
      scroak_6473
    • RE: Proget Docker container should support Ping command

      Hi @atripp

      Yep just the standard ping command. You can install it on your container image using something like the following in the dockerfile:

      apt-get install iputils-ping.

      Thanks

      Simon

      posted in Support
      S
      scroak_6473
    • RE: ProGet docker image LDAP/LDAPS Support

      Hi @atripp,

      I can try but with you guys using Mono it would be a challenge to find out where it would need to go.

      I'm curious would using this method work with your code:

      https://docs.microsoft.com/en-us/dotnet/api/system.directoryservices.protocols.ldapconnection.sessionoptions?view=dotnet-plat-ext-3.1

      https://docs.microsoft.com/en-us/dotnet/api/system.directoryservices.protocols.ldapsessionoptions.verifyservercertificate?view=dotnet-plat-ext-3.1#System_DirectoryServices_Protocols_LdapSessionOptions_VerifyServerCertificate

      I'll investigate installing the certificate on the container now.

      Thanks

      Simon

      posted in Support
      S
      scroak_6473
    • RE: ProGet docker image LDAP/LDAPS Support

      Hi @atripp

      Thanks for this. Unfortunately I am not a developer so couldn't really help in forking InedoCore. But I do have the ability to run and tests this in a CI container build, in a docker dev environment.

      It would seam there is also limited logging so you would need to let me know how best to troubleshoot this implementation for you should it not work.

      Let me know how I can help.

      Thanks

      Simon

      posted in Support
      S
      scroak_6473
    • RE: ProGet docker image LDAP/LDAPS Support

      Hi @rhessinger

      Thanks for the quick response.

      I can confirm that works but only when I de-select "Use LDAPS", given that Microsoft is the removing the ability to query AD using LDAP (instead making people query using LDAPS) in the very near future how can I get the LDAPS connection working?

      My guess is that given that this docker container is not on a windows domain (and therefore does not have any domain ca certificates) it is unable to verify the LDAPS certificate.

      Shouldn't there be an option to "ignore or skip certificate verification"

      Thanks

      Simon

      posted in Support
      S
      scroak_6473
    • ProGet docker image LDAP/LDAPS Support

      Hey Guys,

      Wondering if anyone has successfully configured LDAP/LDAPS login on the ProGet container image?

      Most of the documentation references LDAP authentication working through IIS. Which is obviously not available on the Linux proget image.

      In trying to set this up using LDAPS (preferred) I get the following:

      adaa416a-8aca-48c2-b535-b08a996dea31-image.png

      Unchecking LDAPS gives me this:

      f5aa61e2-1367-4d68-9c2d-e95483d41688-image.png

      I can ping the domain controller from the containers command line:

      c5ffc5de-7593-4355-b5a0-e1b6acf6964b-image.png

      Nothing is showing up in the event log.

      Running Proget V5.3.7.

      Thanks

      Simon

      posted in Support
      S
      scroak_6473
    • Proget Docker container should support Ping command

      Hey Guys,

      Wondering if you could update a future proget container image to include "ping", this is very useful when troubleshooting.

      db483a47-679f-41ce-996c-162387d066cd-image.png

      Thanks

      Simon

      posted in Support
      S
      scroak_6473
    • RE: Proget docker image should support docker secrets

      Hi @atripp

      I've created a PR and added an expanded section on Environment variables.

      I would suggest creating a new page called running on Linux docker swarm and I can add some example stack files/notes to that page later.

      Thanks

      Simon

      posted in Support
      S
      scroak_6473
    • RE: Proget docker image should support docker secrets

      Yes @atripp that looks easy enough. Hope to see it in a future version.

      Thanks

      Simon

      posted in Support
      S
      scroak_6473
    • RE: BUG: ProGet Vulnerablity Listing

      Amazing thanks @atripp

      Let me know what version this appears in I would love to try it out.

      Thanks

      Simon

      posted in Support
      S
      scroak_6473
    • 1
    • 2
    • 3
    • 4
    • 2 / 4