Comments (7)
Can i create groups by passing environment variable for now or running a command. Is any way possible? i just need to create 2 groups
from lldap.
I could work on a Django Web app for this project if i can get documentation on how we can add data to the database. Any api or anything.
from lldap.
If you need a quick hack around, editing the SQLite database is the easiest path forward. It has very few tables (users, groups, memberships) with straightforward definitions.
If you want to build a django web app, it will be a bit more involved: the API part is easy, it's GraphQL, with the schema described in schema.graphql
. However, logging in requires an OPAQUE client, I'm not sure what python has to go for that. Maybe https://github.com/GeorgeLyon/Opaque ? The parameters for OPAQUE (algorithms, hasher, rounds and so on) are found here: https://github.com/nitnelave/lldap/blob/main/auth/src/opaque.rs#L18-L55
from lldap.
did some research about this and found out that Django supports password hashing by default to a user model. sqlite database is also supported by it but ldap functionality will need to be implemented with the framework.
from lldap.
I'm not sure we're on the same page about the project's architecture. I invite you to reread the readme, but in a few words: the project has a backend listening on two ports, one for LDAP (works as an LDAP server, not client), and one for http. The port for http serves 3 things:
- the authentication API that returns the JWT necessary for taking to the GraphQL API. Note that it's more than just password hashing: the client never send the password to the server, but proves that it knows the right password.
- the GraphQL API that implements the backend functions needed for the web frontend
- the static files for the web frontend.
The web frontend is also written in Rust, compiled to WebAssembly.
If you want to write another frontend in addition to the one in development, you'll just have to talk to the authentication and GraphQL APIs. If you're talking to SQLite or do anything related to LDAP, then you're not doing the frontend but the backend. In that case, you don't need my project at all but you're reimplementing everything in python!
The fastest way forward is just to keep working on the existing Rust frontend. If you have web design skills, that is my weakest part so I welcome help in this domain :)
from lldap.
All the GraphQL methods are in place, I just need to write the front-end components to list/create/delete/modify groups. Probably something quite similar to the users.
from lldap.
Fixed with #53
from lldap.
Related Issues (20)
- [BUG] Users should not be able to edit non editable attributes
- [FEATURE] Allow logging in with email instead of username
- [BUG] lldap website auth's username is case sensitive, while password reset is not
- Kasm Integration HOT 3
- [BUG] Migration issue with key going from 0.4.3 to 0.5 HOT 1
- [BUG] Treat `database_url` as secret HOT 2
- [FEATURE REQUEST] ldap query filter supports regualr expression HOT 11
- [BUG] SSSD integration HOT 12
- [FEATURE REQUEST] Accept .pem input for CERT_FILE and KEY_FILE HOT 1
- [BUG] No Emails Attempted To Be Sent HOT 4
- [BUG] It's possible to add a user several times to the same group by graphql api
- [FEATURE REQUEST] Detect private key changes
- [FEATURE REQUEST] Force reset admin user/password
- [FEATURE REQUEST] Ability to disable LDAP users HOT 6
- [BUG] Password reset UI is enabled even when the feature is disabled
- [FEATURE REQUEST] Build `rootless` container image HOT 7
- [BUG] LLDAP stuck in restart loop with UNIQUE constraint failures on fresh sqlite install - lldap exited code 132 HOT 18
- Need Help. Invalid Login for Web Interface HOT 6
- [BUG] LDAP: Filtering custom attributes by value doesn't work HOT 2
- [FEATURE REQUEST] Documentation needs some clarification HOT 2
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.