Commit 72ae3db4267d80e2710679d136a10ea0c6fe6cac
1 parent
b15f979f
Exists in
master
and in
1 other branch
Extend Readme.md with some more LDAP auth stuff
You need to add the devise strategy to enable LDAP lookups.
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
README.md
... | ... | @@ -280,6 +280,10 @@ GITHUB_ACCESS_SCOPE=repo,public_repo |
280 | 280 | * In `config/config.yml`, set `user_has_username` to `true` |
281 | 281 | * Follow the instructions at https://github.com/cschiewek/devise_ldap_authenticatable |
282 | 282 | to set up the devise_ldap_authenticatable gem. |
283 | + * Create a new initializer (e.g. ```config/initializers/devise_ldap.rb```) and add the following code to enable ldap authentication in the User-model: | |
284 | +```ruby | |
285 | +Errbit::Config.devise_modules << :ldap_authenticatable | |
286 | +``` | |
283 | 287 | |
284 | 288 | * If you are authenticating by `username`, you will need to set the user's email manually |
285 | 289 | before authentication. You must add the following lines to `app/models/user.rb`: | ... | ... |