|
Hello, |
Replies: 3 comments
|
Thanks for the suggestion. I agree that LDAP/LDAPS support could be very useful, especially for local and lab environments. I need to think through the implementation carefully before committing to a concrete approach, because this touches the security boundary of WebSSH rather than being just another login adapter. LDAPS or StartTLS with proper certificate validation, safe handling of bind credentials, correctly escaped LDAP filters, clear and fail-closed group-to-role mapping, and the handling of active sessions when a directory account is disabled or removed all need to be defined from the start. We also need a sensible decision on just-in-time provisioning versus synchronization and a controlled local break-glass administrator. I would rather design authentication, provisioning, and authorization together than ship a partial integration. The idea remains open while I work through that design. |
|
Implemented and merged in #106. LDAP and LDAPS authentication is now available as an optional feature. How it is designed:
Short path to enable it:
docker compose -f docker-compose.yml -f docker-compose.ldap.yml --profile ldap-tools run --rm ldap-tools set-password
docker compose -f docker-compose.yml -f docker-compose.ldap.yml --profile ldap-tools run --rm -T ldap-tools install-ca --stdin < company-ca.pem
docker compose -f docker-compose.yml -f docker-compose.ldap.yml up -d
I am currently building out the project wiki. The complete operator guide, including Active Directory and OpenLDAP examples, filters, certificates, rollback, and troubleshooting, will be available there. Until then, the README and |
|
Please find the manual here: https://github.com/bifrost0x/webssh/wiki/LDAP-and-Active-Directory |
Implemented and merged in #106. LDAP and LDAPS authentication is now available as an optional feature.
How it is designed:
docker-compose.ldap.ymloverlay. No separate image and no.envfile are required.ldap-toolsprofile manages the bind password and CA certificate in a separate secret volume. WebSSH mounts that volume read-only.ldap://always uses mandatory StartTLS before any bind.ldaps://starts TLS immediately. Certificate verification is mandatory for both.