0
我已經安裝了openLDAP並使用net-ldap與Ruby on Rails一起使用。這裏的事情是,我能夠結合並檢索算法與此寶石,但qhen它來添加一個條目到目錄:rails net-ldap:未初始化的常量:: NET錯誤
@auth = {:method => :simple, :username => "cn=admin,dc=example,dc=test", :password => "password"}
PORT = 389
HOST = "127.0.1.1"
NET::LDAP.open(:host => HOST, :port => PORT, :auth => @auth) do |ldap|
@ldap.add(:dn => dn, :attributes => attr) .
此錯誤停止everyhing:uninitialized constant LdapsController::NET
,[點開行]
- 淨LDAP安裝
- 紅寶石2
- 導軌4
- OS:Ubuntu的13.4
我正要做,但還沒有。謝謝。 – Kaveh