SUSE / Portus

Authorization service and frontend for Docker registry (v2)
http://port.us.org/
Apache License 2.0
3k stars 471 forks source link

LDAP doesn't get integrated with Portus while running in container #2231

Closed amirakhan closed 4 years ago

amirakhan commented 5 years ago

Description

I have implemented Portus to monitor our docker container images and would like to integrate OpenLDAP however I did changes in config.yml as per the documentation and did restart Portus container from Portainer however I am unable to see the LDAP login page. I did follow all the documentation and issues raised for LDAP on Github however did not receive much help Would appreciate if someone can help me here.

Configuration: ldap: enable: true

hostname: 10.106.199.89 port: 389

method: "plain"

base: "ou=project1,dc=project,dc=com"

filter: ""

uid: "uid"

authentication: enable: true bind_dn: "cn=admin,dc=project,dc=com" password: "Project"

You can get this information like this:

WARNING: Nokogiri was built against LibXML version 2.9.1, but has dynamically loaded 2.8.0 rake aborted! Psych::SyntaxError: (/portus/config/config.yml): could not find expected ':' while scanning a simple key at line 110 column 1 /portus/lib/portus/config.rb:15:in fetch' /portus/config/initializers/config.rb:4:in<top (required)>' /portus/config/environment.rb:5:in `<top (required)>' Tasks: TOP => portus:info => environment (See full trace by running task with --trace)

OCI runtime exec failed: exec failed: container_linux.go:344: starting container process caused "exec: \"portusctl\": executable file not found in $PATH": unknown

CONFIG HERE

Portus version: with commit if possible. You can get this info too with the above commands. Portus 2.9.1

amirakhan commented 5 years ago

Can someone from Portus help us here please? i am still stuck with an issue.

matiasmagallanes commented 4 years ago

Hi, @amirakhan in your configuration you are using "enable" and the correct keyword is "enabled". Change it and test again.

stale[bot] commented 4 years ago

Thanks for all your contributions! This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.