Comments (6)
Ok, waiting for the new image on docker-hub.
from wg-portal.
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.
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.
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.
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.
OK, let see if 7042523 resolve this issue.
from wg-portal.
Related Issues (20)
- [v2] Keypairs/PublicKey can not be changed HOT 3
- Deploy and run HOT 1
- Squashed PostUp / PostDown HOT 2
- wg-portal deletes routes HOT 4
- User management
- LDAP disable Peers deleted from ldap HOT 1
- Issue with Postgres database HOT 1
- Redirect traffic to domain HOT 1
- Option to bind webserver to specific interface HOT 1
- Customizing homepage HOT 1
- Instructions/example for `field_map`? HOT 6
- Docker container refuses to find/load config.yml when not mapped directly to the file
- Peers are added to wg0.conf with a mask of /24
- LDAP Login Issue HOT 6
- Doc: Showing prominently config format for current stable version HOT 2
- Error when using mysql as database
- LDAP sync runs every 10 seconds, ldap_sync_interval is ignored
- Sending Wireguard-Config via Postfix Mailserver Fails
- no work with ghcr.io/wg-easy/wg-easy:latest after update HOT 1
- [ Feature Request ] - v2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wg-portal.