开发者

LDAP - Authlogic

开发者 https://www.devze.com 2022-12-21 02:00 出处:网络
I have a ROR application with authlogic and LDAP, i follow the how to oh authologic and this http://pastie.org/385199 but the method (def valid_ldap_crede开发者_如何学运维ntials?(password_plaintext))

I have a ROR application with authlogic and LDAP, i follow the how to oh authologic and this http://pastie.org/385199 but the method (def valid_ldap_crede开发者_如何学运维ntials?(password_plaintext)) is not called....any help ?


I don't think you want to set :validate_password_field => false. My understanding is that this disables all password validation, so your custom method won't get called. Try taking that out and see what happens.

Also, the format appears incorrect -- Authlogic configuration options need to be done within a block like so:

  acts_as_authentic do |c|
    c.validate_password_field = false
  end
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号