Coder Social home page Coder Social logo

LDAPS with certcheck=false about wg-portal HOT 6 CLOSED

h44z avatar h44z commented on September 15, 2024
LDAPS with certcheck=false

from wg-portal.

Comments (6)

PandemiK911 avatar PandemiK911 commented on September 15, 2024 1

Ok, waiting for the new image on docker-hub.

from wg-portal.

PandemiK911 avatar PandemiK911 commented on September 15, 2024 1

It works like a charm : no more errors in logs and loggued successully with a LDAP user !

Thanks a lot a for this quick fix and sorry for pointing out the wrong function (or half of it ;-)

from wg-portal.

h44z avatar h44z commented on September 15, 2024

Thanks, nice catch. I just pushed the changes to the master branch. If you are using the docker image, can you test the changes using the latest tag (h44z/wg-portal:latest)? (Might take a few minutes for docker-hub to rebuild the image...)

from wg-portal.

PandemiK911 avatar PandemiK911 commented on September 15, 2024

Still the same errors :

INFO[2021-04-21 08:45:06] starting WireGuard Portal Server [latest-e65a4a8]... 
[...]
WARN[2021-04-21 08:45:06] failed to setup LDAP connection, LDAP features disabled 
ERRO[2021-04-21 08:45:06] skipping provider registration: unable to open ldap connection: LDAP Result Code 200 "Network Error": x509: certificate signed by unknown authority

I don't have more debug info with LOG_LEVEL=trace.

My LDAP config (in case I missed something) :

      # LDAP Settings
      - LDAP_ENABLED=true
      - LDAP_TYPE=OpenLDAP
      - LDAP_URL=ldaps://ldap.company.com:636
      - LDAP_BASEDN=dc=company,dc=com
      - LDAP_USER=uid=viewonly,cn=users,cn=accounts,dc=company,dc=com
      - LDAP_PASSWORD=strongpasswordofcourse
      - LDAP_ADMIN_GROUP=cn=vpnadmins,cn=groups,cn=accounts,dc=company,dc=com
      - LDAP_STARTTLS=false
      - LDAP_CERT_VALIDATION=false

Same result with LDAP_STARTTLS=true, which is not surprising.

As configuring a LDAPS server is some kind of nightmare, I can provide a readonly account to ldap.company.com for debugging purposes. Thinking of it, only the hostname would be enough, no need to be able to bind.

from wg-portal.

h44z avatar h44z commented on September 15, 2024

I see. I have overlooked the ldap connection code of the auth provider, the previous commit only updated the ldap connection that is used for the user-synchronization.

from wg-portal.

PandemiK911 avatar PandemiK911 commented on September 15, 2024

OK, let see if 7042523 resolve this issue.

from wg-portal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.