-
-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Administration interface #10
Comments
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 |
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. |
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 |
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. |
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:
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 :) |
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. |
Fixed with #53 |
All about user management.
If people want to help with this, it's fairly easy to add methods in the relevant handlers by copying similar ones. The places to add code:
model/src/lib.rs
for the request and response. Example:CreateUserRequest
.src/domain/handler.rs
and the correspondingsql_handler.rs
. Example:list_users
src/infra/tcp_api.rs
and a handler, calling the method above. Example:user_list_handler
app/src/api.rs
to call the server, and a component to send the request and display the result. Example:app/src/user_table.rs
(Note: specific files listed here are likely to move around a bit)
The text was updated successfully, but these errors were encountered: