Skip to content
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

Specifying admin user via LDAP #106

Closed
psefranek opened this issue Aug 16, 2023 · 3 comments
Closed

Specifying admin user via LDAP #106

psefranek opened this issue Aug 16, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@psefranek
Copy link

Hi,

I would like to ask if it would be possible to leverage existing LDAP authentication for specifying admin user. The current situation is that you can have all your user accounts (admin included) stored in LDAP, but you have to specify admin username and password by utilizing environment variables like ADMIN_LOGIN and ADMIN_PASSWORD. It would be very handy to leverage existing user database for that purpose.

To give you an example: in another application we are using there is a configuration option called Admin Filter that accepts values like (&(objectClass=posixAccount)(uid=%s)(memberOf=cn=calendar,ou=groups,dc=example,dc=com)). Any LDAP account that matches this filter is then considered to be an administrator account - simple and effective.

Thank you for your great application and have a nice day
Pavel

@tchapi tchapi added enhancement New feature or request good first issue Good for newcomers labels Aug 28, 2023
@tchapi
Copy link
Owner

tchapi commented Aug 28, 2023

Hi Pavel,

Very clear, thanks for the issue!

It would be possible, yes, but it would need a bit of a rewrite for the admin auth part.
I'd gladly add the feature but I have no LDAP server to test this easily (and no extended expertise), so it's hard for me to have a clear path for this feature for now.

@z3ky
Copy link

z3ky commented Nov 27, 2023

Maybe the davical ldap driver helps to implement such a feature

https://gitlab.com/davical-project/davical/-/blob/master/inc/drivers_ldap.php

It supports user and group filters and synchronization. This could help to import (sync) groups from ldap.

@tchapi tchapi removed the good first issue Good for newcomers label Feb 1, 2024
@tchapi
Copy link
Owner

tchapi commented Feb 26, 2024

Closing in favor of the Github project created for the roadmap: https://github.com/users/tchapi/projects/1/views/1

@tchapi tchapi closed this as completed Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants