[PR #1335] [MERGED] ability to populate is_staff and is_superuser flags at LDAP authentication #4395

Closed
opened 2026-03-15 01:42:17 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ArchiveBox/ArchiveBox/pull/1335
Author: @vladimirdulov
Created: 1/24/2024
Status: Merged
Merged: 1/24/2024
Merged by: @pirate

Base: devHead: feature/is_staff-is_superuser-flags-defaults


📝 Commits (5)

  • 95580ee populate is_staff and is_superuser flags at LDAP authentication
  • 914df75 Merge branch 'dev' into feature/is_staff-is_superuser-flags-defaults
  • 3f48560 Merge branch 'ArchiveBox:main' into feature/is_staff-is_superuser-flags-defaults
  • 5de9d93 Merge branch 'dev' into feature/is_staff-is_superuser-flags-defaults
  • e877251 Update archivebox/core/auth_ldap.py

📊 Changes

5 files changed (+33 additions, -0 deletions)

View changed files

📝 archivebox/config.py (+1 -0)
📝 archivebox/core/__init__.py (+2 -0)
📝 archivebox/core/apps.py (+5 -0)
archivebox/core/auth.py (+13 -0)
archivebox/core/auth_ldap.py (+12 -0)

📄 Description

On LDAP authentication, it sets is_staff flag to True for all LDAP users and sets is_superuser to True if LDAP_CREATE_SUPERUSER config setting is set to True accordingly.

It's needed to make LDAP auth properly working.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ArchiveBox/ArchiveBox/pull/1335 **Author:** [@vladimirdulov](https://github.com/vladimirdulov) **Created:** 1/24/2024 **Status:** ✅ Merged **Merged:** 1/24/2024 **Merged by:** [@pirate](https://github.com/pirate) **Base:** `dev` ← **Head:** `feature/is_staff-is_superuser-flags-defaults` --- ### 📝 Commits (5) - [`95580ee`](https://github.com/ArchiveBox/ArchiveBox/commit/95580ee743b53c1e6770e6b6cce5dfddc81d71b9) populate is_staff and is_superuser flags at LDAP authentication - [`914df75`](https://github.com/ArchiveBox/ArchiveBox/commit/914df75ee7015d26ca9c37f8be2e91ba4884d158) Merge branch 'dev' into feature/is_staff-is_superuser-flags-defaults - [`3f48560`](https://github.com/ArchiveBox/ArchiveBox/commit/3f48560e9cccacc981537c7cb09af35faabb884f) Merge branch 'ArchiveBox:main' into feature/is_staff-is_superuser-flags-defaults - [`5de9d93`](https://github.com/ArchiveBox/ArchiveBox/commit/5de9d934afa0e33664a79c035cf1632a592d6a17) Merge branch 'dev' into feature/is_staff-is_superuser-flags-defaults - [`e877251`](https://github.com/ArchiveBox/ArchiveBox/commit/e8772513ca502f0c57059967f60a944ab45c6ab7) Update archivebox/core/auth_ldap.py ### 📊 Changes **5 files changed** (+33 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `archivebox/config.py` (+1 -0) 📝 `archivebox/core/__init__.py` (+2 -0) 📝 `archivebox/core/apps.py` (+5 -0) ➕ `archivebox/core/auth.py` (+13 -0) ➕ `archivebox/core/auth_ldap.py` (+12 -0) </details> ### 📄 Description On LDAP authentication, it sets `is_staff` flag to `True` for all LDAP users and sets` is_superuser` to `True` if `LDAP_CREATE_SUPERUSER` config setting is set to True accordingly. It's needed to make LDAP auth properly working. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-15 01:42:17 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ArchiveBox#4395
No description provided.