Giter Site home page Giter Site logo

Terraform: adding new groups fail about lldap HOT 6 OPEN

imyller avatar imyller commented on May 29, 2024
Terraform: adding new groups fail

from lldap.

Comments (6)

nitnelave avatar nitnelave commented on May 29, 2024 1

Creating groups via LDAP is not yet supported.

from lldap.

nitnelave avatar nitnelave commented on May 29, 2024 1

Hey @ibizaman ! This issue is not in my roadmap for now, and anyway I have precious little time these days (I don't spend as much time on LLDAP as I'd like!)
If you were to tackle it, it should be a nice task for a new contributor. The infrastructure is already in place, the only thing to do is to map the LDAP message to the internal group creation. And we already have something in place for users, so there's a template you can follow.

Regarding declaring the groups in a config file, I'm not convinced:

  • is it only for first time setup?
  • is it a complete list of groups, or just a minimum? What if one of the groups gets deleted?
  • in case of a HA setup, which node does the initialization?

There are several answers to these questions, and not everyone will agree on them.

This sounds like extra logic that doesn't really belong in the LLDAP project. With the API (either the existing graphql or through LLDAP if you add it) it's easy to write a script implementing that logic. It could be part of the entry point.

That said, I'd be willing to provide in the repo a script that loads users/groups from a config file if you want to write that. The best would probably be to write it in rust, to have the same language throughout the repo, be able to share code and minimize the dependencies.

from lldap.

ddiawara avatar ddiawara commented on May 29, 2024

others way to do it ?

from lldap.

nitnelave avatar nitnelave commented on May 29, 2024

No automatic way, you would have to create the groups manually on the web interface (or script it via the graphql API)

from lldap.

ibizaman avatar ibizaman commented on May 29, 2024

@nitnelave is this planned or wanted? I don't have any idea when but it's something I'd be comfortable tackling. I'd also be happy to discuss any architectural considerations before implementing something like this. Btw, I'd like to be able to declare groups declaratively through the configuration file.

from lldap.

ibizaman avatar ibizaman commented on May 29, 2024

About loading from a config file, I was thinking about deploying code with NixOS which as you may know is declarative and have a list of groups defined in NixOS. But having a second binary talking to the API works too.

Thanks for the explanation of how to implement this. It makes sense indeed.

from lldap.

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.