Search code examples
deviseruby-on-rails-3.2ldap

User authentication by both ldap and database


We are planing to build a Rails application which utilizes both LDAP and database authentication ways.

we plan to take devise and devise_ldap_authenticatable to accomplish that.

The authlogic maybe like this, internal use complete the authentication by LDAP, however, external user have to sign up for the first time, and then app could take the database authentication.

I search by google, Devise and devise_ldap_authenticatable can't work in combined way, anybody here has similar usage, or some other way to achieve that?

thanks in advance.


Solution

  • I find some valuable link here, however, we have to use different models.

    https://groups.google.com/forum/#!topic/plataformatec-devise/-Fnr3LWXxBg