Skip to content

Chicken and egg problem - Scope and syncing #657

Answered by stevebauman
acharseth asked this question in Q&A
Discussion options

You must be logged in to vote

I don't think I agree with this in general. For a widely available application, yes, it could make sense to have all (relevant) users synced in. For an application with restricted availability however I belive only users with correct group membership should be synced (reducing slightly the attack surface).

Ok, then the --delete-missing option is what you're looking for.

In this case I could use soft deletes and then have a job which physically deletes the user after a specific time. May be you could add an option for this?

Use Laravel's model pruning feature to take care of this -- it doesn't need to be baked into LdapRecord-Laravel:

https://laravel.com/docs/10.x/eloquent#pruning-models

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@stevebauman
Comment options

Answer selected by acharseth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants