Code Monkey home page Code Monkey logo

Comments (3)

ViViDboarder avatar ViViDboarder commented on May 23, 2024

Take a look at #1 (comment). This appears to be the same issue.

from vaultwarden_ldap.

PioneerX avatar PioneerX commented on May 23, 2024

Thanks ViVDboarder,

Thanks for such a quick responce. I have solved the issue with your pointer, but just to add the details for anyone else who comes across the issue.

My LDAP is provided only as LDAPS (Azure Directory) and contains a self signed certificate. I had assumed that the parameter 'ldap_no_tls_verify' would prevent the connector from checking the certificate and therefore simply use it in the same way the TLS_REQCERT=ALLOW does for ldapsearch. However this is not the case.

The problem was solved by taking my self-signed cert and uploading it to the bitwarden_rs hosting server as a CA by placing the certificate in /usr/local/share/ca-certificates/ (my OS Debian) and running update-ca-certificates. This only solved half my issue, the certificate is still invaild as its SAN is my domain name and I do not maintain a DNS entry for the LDAPS server. In this case my docker-compose.yml was modfied to add a host entry to the container that matches my LDAPS server IP with the domain name contained in the certificate....

  ldap:
    image: vividboarder/bitwarden_rs_ldap:latest
    restart: always
    depends_on:
      - bitwarden
    volumes:
      - ./bw-ldap:/data:ro
    extra_hosts:
      - "{DOMAINNAME}:{IPADDRESS}"
    environment:
      CONFIG_PATH: /data/config.toml

....and my config.toml was modified to use the domain name in ldap_host rather than the IP address.

This solved my problem - Thanks

from vaultwarden_ldap.

PioneerX avatar PioneerX commented on May 23, 2024

Just a quick comment as I'm not sure where feature requests go.

It would be nice to round out the process with the following additions....

  • mapping between organisation and ldap_search_filter as this would allow for directory groups to be used to control organisation invites
  • Removal of user from directory group removes them from organisation

Just something that would (IMHO) complete the integration perfectly

from vaultwarden_ldap.

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.