通过ldap和数据库进行用户身份验证 [英] User authentication by both ldap and database

查看:129
本文介绍了通过ldap和数据库进行用户身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们计划构建一个同时使用LDAP和数据库身份验证方式的Rails应用程序.

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

我们计划采用devise和devise_ldap_authenticatable来实现这一目标.

we plan to take devise and devise_ldap_authenticatable to accomplish that.

身份验证逻辑可能是这样的,内部使用通过LDAP完成身份验证,但是,外部用户必须首次注册,然后应用程序才能进行数据库身份验证.

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.

我通过Google搜索时,Devise和devise_ldap_authenticatable无法结合使用,这里的任何人都有类似的用法,或者通过其他某种方式来实现?

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?

提前谢谢.

推荐答案

我在这里找到了一些有价值的链接,但是,我们必须使用不同的模型.

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

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

这篇关于通过ldap和数据库进行用户身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆