From 72ae3db4267d80e2710679d136a10ea0c6fe6cac Mon Sep 17 00:00:00 2001 From: Raffael Schmid Date: Mon, 22 Oct 2012 19:30:27 +0300 Subject: [PATCH] Extend Readme.md with some more LDAP auth stuff --- README.md | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) diff --git a/README.md b/README.md index 28b0471..810d375 100644 --- a/README.md +++ b/README.md @@ -280,6 +280,10 @@ GITHUB_ACCESS_SCOPE=repo,public_repo * In `config/config.yml`, set `user_has_username` to `true` * Follow the instructions at https://github.com/cschiewek/devise_ldap_authenticatable to set up the devise_ldap_authenticatable gem. + * Create a new initializer (e.g. ```config/initializers/devise_ldap.rb```) and add the following code to enable ldap authentication in the User-model: +```ruby +Errbit::Config.devise_modules << :ldap_authenticatable +``` * If you are authenticating by `username`, you will need to set the user's email manually before authentication. You must add the following lines to `app/models/user.rb`: -- libgit2 0.21.2