Add a new service attribute to LDAP user entries, as well as methods to enable and disable services. This can then be used in LDAP filters for the various services to only allow users with the enabled service to actually log in.
New users automatically get the entries added when confirming their account. Once services are configured to check for the new attribute/role, this also fixes the current problem of users being able to log in to services before having confirmed their email address.
Adding default services for existing users in production should be easy with the Rails console:
Add a new service attribute to LDAP user entries, as well as methods to enable and disable services. This can then be used in LDAP filters for the various services to only allow users with the enabled service to actually log in.
New users automatically get the entries added when confirming their account. Once services are configured to check for the new attribute/role, this also fixes the current problem of users being able to log in to services before having confirmed their email address.
Adding default services for existing users in production should be easy with the Rails console:
```ruby
User.confirmed.each { |u| u.devise_after_confirmation }
```
raucao
added the feature label 2023-02-27 15:49:43 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Add a new service attribute to LDAP user entries, as well as methods to enable and disable services. This can then be used in LDAP filters for the various services to only allow users with the enabled service to actually log in.
New users automatically get the entries added when confirming their account. Once services are configured to check for the new attribute/role, this also fixes the current problem of users being able to log in to services before having confirmed their email address.
Adding default services for existing users in production should be easy with the Rails console:
👍