Giter VIP home page Giter VIP logo

Comments (4)

kspearrin avatar kspearrin commented on May 25, 2024

It seems like we just need an update that will allow people to optionally store the secret values in the data.json file in plaintext. Maybe an environment variable can override the default behavior that requires keytar/x11.

from directory-connector.

kspearrin avatar kspearrin commented on May 25, 2024

Could you try the latest dev build from here:
https://ci.appveyor.com/project/bitwarden/directory-connector/build/job/lpitiinai8yusl50/artifacts

Then set the following environment variable:

export BITWARDENCLI_CONNECTOR_PLAINTEXT_SECRETS=true

This will allow you to then store and read the ldap password as a plaintext string in the data.json file.

This should also remove the dependency on keytar and x11.

NOTE: The desktop application is not compatible with plaintext secrets, so you will not be able to use it with the bwdc CLI app.

from directory-connector.

fgierlinger avatar fgierlinger commented on May 25, 2024

It worked with the latest build and the environment variable set.

$ ./bwdc test
Cannot autolaunch D-Bus without X11 $DISPLAY
$ export BITWARDENCLI_CONNECTOR_PLAINTEXT_SECRETS=true
$ ./bwdc test
{"groups":[{"externalId":"...}]}

Before the successfull run we had a blocked port between the host and the LDAP-Server and ran into a timeout. This lead to an unhandled exception error.

./bwdc test
events.js:167
      throw er; // Unhandled 'error' event
      ^

Error: connect ETIMEDOUT 172.x.x.x:389
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1158:14)
Emitted 'error' event at:
    at Backoff.<anonymous> (/snapshot/directory-connector/node_modules/ldapjs/lib/client/client.js:1231:12)
    at Backoff.emit (events.js:182:13)
    at Backoff.backoff (/snapshot/directory-connector/node_modules/backoff/lib/backoff.js:41:14)
    at /snapshot/directory-connector/node_modules/ldapjs/lib/client/client.js:1217:15
    at f (/snapshot/directory-connector/node_modules/once/once.js:25:25)
    at Socket.onResult (/snapshot/directory-connector/node_modules/ldapjs/lib/client/client.js:1016:7)
    at Object.onceWrapper (events.js:273:13)
    at Socket.emit (events.js:182:13)
    at emitErrorNT (internal/streams/destroy.js:82:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)

from directory-connector.

kspearrin avatar kspearrin commented on May 25, 2024

Thanks for testing. I will close this now and add some documentation.

from directory-connector.

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.