Repository navigation
Conversation
* feat: add verified LDAP transport and filter support * feat: integrate optional LDAP login with Shield sessions * docs: disable remembered sessions in LDAP-only setup * refactor: align LDAP login and exceptions with Shield conventions * refactor: standardize LDAP class and file names * refactor: isolate LDAP from Shield login defaults * test: cover LDAP authentication and transport edge cases * fix: redact native LDAP passwords from exception traces * docs: configure LDAP through Auth properties * chore: trigger GitHub Actions for LDAP review * docs: connect the LDAP guide and use a controller login action * docs: document the public LDAP API * test: resolve Psalm errors in LDAP tests * fix: preload migrations config for Rector analysis * fix: remove migrations config from Rector bootstrap * refactor: configure LDAP connections through AuthLDAP properties * docs: address LDAP guide review feedback * chore: retrigger PR checks after LDAP guide review * refactor: persist LDAP identities as UserIdentity entities * test: run OpenLDAP integration checks in CI * fix: restore Rector analysis for LDAP changes
michalsn
left a comment
There was a problem hiding this comment.
Personally, I'm not a big fan of adding LDAP support to the core. While I understand its usefulness in certain environments, I don't think it justifies the additional complexity and long-term maintenance overhead.
I'd rather see this implemented as a separate package that integrates with Shield. If our current architecture makes such an integration difficult, I'd be more in favor of improving Shield's extensibility than adding LDAP support directly to the core.
That said, let's see what others think. This is just my personal opinion.
Port the implementation, documentation, and LDAP test suites from codeigniter4/shield#1412 at d1965af1.
|
Thanks for the feedback, @datamweb and @michalsn. I understand your concerns about long-term maintenance. I've already extracted the implementation into a standalone package: https://github.com/maniaba/shield-ldap. This keeps LDAP support outside Shield's core, so I'll close this PR. Thanks for your time and feedback! |
Description
Issue: #1413
Add opt-in LDAPv3 authentication for Active Directory and OpenLDAP. Applications register the
ldapauthenticator and direct their login POST route to it. LDAP verifies the directory credentials and uses Shield's existing users, sessions, login actions, and authorization checks.objectGUIDor OpenLDAPentryUUID. Shield does not store directory passwords.ext-ldap. Identity links use the existingauth_identitiestable. Setup examples and bounded diagnostic APIs are documented in the LDAP guide.Scope
Directory group filters can restrict login eligibility. Group assignment and synchronization, scheduled reconciliation, and revalidation of existing sessions are follow-up work.
Checklist: