mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 09:06:02 +03:00
[GH-ISSUE #1279] AUTH_LDAP_USER_FLAGS_BY_GROUP implementation #785
Labels
No labels
expected: maybe someday
expected: next release
expected: release after next
expected: unlikely unless contributed
good first ticket
help wanted
pull-request
scope: all users
scope: windows users
size: easy
size: hard
size: medium
size: medium
status: backlog
status: blocked
status: done
status: idea-phase
status: needs followup
status: wip
status: wontfix
touches: API/CLI/Spec
touches: configuration
touches: data/schema/architecture
touches: dependencies/packaging
touches: docs
touches: js
touches: views/replayers/html/css
why: correctness
why: functionality
why: performance
why: security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ArchiveBox#785
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @vladimirdulov on GitHub (Dec 5, 2023).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1279
Please add AUTH_LDAP_USER_FLAGS_BY_GROUP settings implementation to set values of "is_staff" and "is_superuser" for Django LDAP authenticated users.
https://django-auth-ldap.readthedocs.io/en/latest/reference.html#auth-ldap-user-flags-by-group
https://django-auth-ldap.readthedocs.io/en/latest/example.html
e.g.
@pirate commented on GitHub (Dec 6, 2023):
This sounds reasonable to add but I don't have any experience with LDAP myself, would you be willing to submit a PR for this change?
@vladimirdulov commented on GitHub (Dec 6, 2023):
Sure, I'll try to get a time for it.
Currently LDAP users cannot login at all as
is_staffis False, at the same time the local user auth doesn't work either as it's replaced with LDAP auth (when LDAP env var is True).As a workaround we are updating
is_staffandis_superuserflags for every LDAP user using DJANGO console.Apparently it's not convenient.
@pirate commented on GitHub (Dec 19, 2023):
I believe this is fixed now that https://github.com/ArchiveBox/ArchiveBox/pull/1281 is merged, post back here if you're still having problems and I can reopen the issue.