Comments (6)
Creating groups via LDAP is not yet supported.
from lldap.
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.
others way to do it ?
from lldap.
No automatic way, you would have to create the groups manually on the web interface (or script it via the graphql API)
from lldap.
@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.
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)
- Plea for a new release HOT 11
- [BUG] WebUI Case Sensitivity HOT 18
- [BUG] LLDAP_ADMIN_USERNAME should bootstrap admin username HOT 2
- [CLEANUP] Polish attribute creation form controls
- [CLEANUP] Use new form components across all components
- [FEATURE REQUEST] Add support for https HOT 3
- Attributes are not sorted, users are not sorted, or previous user didn't consume all the attributes HOT 20
- [BUG] First name and Last name are empty HOT 1
- [CLEANUP] Create component for confirmation dialogs
- [BUG] Regular users can view group attributes
- [INTEGRATION] Dolibarr update HOT 3
- [BUG] Repetitive Validation Loop for 'admin' User in lldap/lldap:2024-02-06-debian-rootless Container Logs HOT 2
- [BUG] email for password reset is case sensitive, without error message HOT 2
- [BUG] if no displayname set, the dropdown list in groups should print the userID [EASY FIX]
- [BUG] Kubernetes: invalid value for ldap-port HOT 2
- No such file or directory (os error 2) HOT 4
- [INTEGRATION] Creating a DB with k8s setup fails HOT 26
- [BUG] error: Invalid JWT HOT 3
- [BUG] Uppercase names not searchable HOT 7
- [FEATURE REQUEST] Package lldap_set_password in lldap deb package or distribute a deb package in the same repository HOT 3
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 lldap.