Comments (4)
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.
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.
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.
Thanks for testing. I will close this now and add some documentation.
from directory-connector.
Related Issues (20)
- Suggested AzureAD connecter API permissions to permissive HOT 1
- Group members are not synced with FreeIPA LDAP (lack of uid and cn member support?) HOT 4
- CLI Linux "invalid_client (401): AADSTS7000215: Invalid client secret is provided." HOT 2
- Directory Sync ungracefully fails when multiple users have the same e-mail address HOT 2
- Sync fails if the domain contains circular groups
- Missing paren(thesis ?) in directory connector HOT 4
- Connection issues for sync groups with Microsoft Azure AD HOT 1
- LDAP sync doesn't work with on-prem server HOT 1
- bwdc sync failed HOT 3
- Local LAN IP as LDAP server host? HOT 2
- Default configuration is invalid HOT 1
- TEST
- Unable to run bwdc HOT 1
- Directory-Connector Sync Error and Not Working with OKTA HOT 2
- GUI App Updates Fail HOT 2
- An unhandled server error has occurred. HOT 1
- Dependency Dashboard
- Release tags do not belong to any branch HOT 2
- test
- Renamed user deleted and created as new, instead of renamed, losing data HOT 1
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 directory-connector.