Skip to content

Conversation

@crossplatformconsulting
Copy link
Contributor

@crossplatformconsulting crossplatformconsulting commented Oct 31, 2024

include ldap check to get the correct model - when using ldap, check for the database model.
(ldap still uses the App\Models\User, just indirectly)

Replaces #2744

@crossplatformconsulting
Copy link
Contributor Author

apologies.. i accidentally deleted my fork before the PR was completed. re-initiated.

@drbyte drbyte changed the title Ldap adjustments LDAP model lookup from Auth Provider Oct 31, 2024
@crossplatformconsulting
Copy link
Contributor Author

could it be the :?string ? here:
function getModelForGuard(string $guard): ?string

@drbyte
Copy link
Collaborator

drbyte commented Feb 13, 2025

Thanks

@drbyte drbyte merged commit 6c7b1de into spatie:main Feb 13, 2025
39 checks passed
@lantis1008
Copy link

Just ran into this integrating laravel-permission and ldaprecord. Thanks for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants