Nextcloud version: 31.0.8
I want to use LDAP to authenticate user logins. However, I want to specify which accounts can login. I also do not want to sync the entire LDAP directory to my Nextcloud instance.
If I create the accounts in Nextcloud with a dummy password, how can I only allow those enabled accounts to authenticate via LDAP and not every user in the LDAP directory?
For example:
- LDAP directory has 100 users (I cannot modify any LDAP directories or groups).
- On Nextcloud, I create two users whose username/email matches those used in LDAP.
- I only want those two users to be able to login via LDAP, and not the other 98 users in the directory. I also don’t want 98 other accounts created inside Nextcloud.
From what I’ve understood, the LDAP filters are for the directory-side only and not filtering against Nextcloud groups.
Thanks.