ViViDboarder / vaultwarden_ldap

Automate LDAP invites to Vaultwarden
GNU General Public License v3.0
162 stars 29 forks source link

Allow for use of multiple LDAP servers #170

Open suprovsky opened 1 month ago

suprovsky commented 1 month ago

Hey, most of companies use more than one LDAP server and I think it could be a cool enhancement if the app could connect to the directory thru more than one host. Thanks!

ViViDboarder commented 1 month ago

I don’t quite understand. Like load balance between two? Or invite users from two different servers?

suprovsky commented 1 month ago

If I'm getting it right, the app works as a service polling LDAP servers and many companies have more than one domain controller with AD (basically redundant servers for the same domain). So, it would be cool if it would be possible to define more than one controller in the configuration.

ViViDboarder commented 1 month ago

I see. If this is about redundancy, you could run multiple instances of the sync. It won't invite users who have already been invited.

As far as implementing multiple servers in one instance, I'm open to a PR. Probably best to start with a proposal for how it would work. Iterate through all, round robin, random select, or failover.