Giter Site home page Giter Site logo

Comments (4)

xet7 avatar xet7 commented on May 23, 2024

@salcinad

Try syncing LDAP users with this script:
https://github.com/wekan/wekan/blob/main/ldap-sync/ldap-sync.py

from wekan.

salcinad avatar salcinad commented on May 23, 2024

@xet7
Thank you for pointing to that external script. I guess this should be run from wekan pod because of the "env" stuff inside script? Is there any syntax or just start script without any parameters.

from wekan.

xet7 avatar xet7 commented on May 23, 2024

@salcinad

That MONGO_URL should have access to MongoDB database, because it directly syncs between MongoDB and LDAP.

For dependencies at the start of script, you should install them, like for example:

pip install ldap pymongo

Or using package manager:

sudo apt -y install python3-ldap python3-pymongo

For any env( , those need to be in bash or bat script, for example, at Linux:

start.sh

export MONGO_URL=...

python3 ldap-sync.py

start.bat

SET MONGO_URL=...

python3 ldap-sync.py

Although, it would be better to integrate these directly to WeKan LDAP Javascript code:
https://github.com/wekan/wekan/tree/main/packages/wekan-ldap

from wekan.

salcinad avatar salcinad commented on May 23, 2024

Thanks for info in regard how to run that ldap-script. For our problem we changed the username in MongoDB directly over mongo shell:

mongosh

show dbs
use wekan
show collections

db.users.find( {} )

With " db.users.find( {} ) " we geht _id which we can use to change the username. For example "_id: "MuBraazRKxCZTmNav"".

db.users.update(
   { _id: "MuBraazRKxCZTmNav" },
   {
     $set: {
       username: "x.useratdomain.com"
     }
   }
)

from wekan.

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.