README.md in devise_ldap_authenticatable-0.4.0 vs README.md in devise_ldap_authenticatable-0.4.1
- old
+ new
@@ -60,10 +60,11 @@
**_Please Note_**
This devise plugin has not been tested with DatabaseAuthenticatable enabled at the same time. This is meant as a drop in replacement for DatabaseAuthenticatable allowing for a semi single sign on approach.
+The field that is used for logins is the first key that's configured in the `config/devise.rb` file under `config.authentication_keys`, which by default is email. For help changing this, please see the [Railscast](http://railscasts.com/episodes/210-customizing-devise) that goes through how to customize Devise.
Configuration
-------------
In initializer `config/initializers/devise.rb` :
@@ -79,16 +80,18 @@
* Where to find the LDAP config file. Commented out to use the default, change if needed.
* ldap\_update\_password _(default: true)_
* When doing password resets, if true will update the LDAP server. Requires admin password in the ldap.yml
-
* ldap\_check\_group_membership _(default: false)_
* When set to true, the user trying to login will be checked to make sure they are in all of groups specified in the ldap.yml file.
* ldap\_check\_attributes _(default: false)_
* When set to true, the user trying to login will be checked to make sure they have all of the attributes in the ldap.yml file.
+
+* ldap\_use\_admin\_to\_bind _(default: false)_
+ * When set to true, the admin user will be used to bind to the LDAP server during authentication.
Testing
-------
This has been tested using the following setup: