Displaying 3 results from an estimated 3 matches for "authenticationerror".
2006 Mar 26
17
activeldap
...:base => "dc=azapple,dc=com",
:bind_format => "uid=#{username},ou=People,dc=azapple,dc=com",
:password_block => Proc.new { password },
:allow_anonymous => false
)
ActiveLDAP::Base.close
return true
rescue ActiveLDAP::AuthenticationError
return false
end
end
end
which makes sense to me since this works...
$ ldapsearch -x -h srv1.azapple.com -W \
-D ''uid=craig,ou=People,dc=azapple,dc=com'' \
-b ''dc=azapple,dc=com'' ''(uid=craig)''
but the web page gives me this error a...
2006 Mar 14
3
LDAP Authentication
I have to do user authentication for a project i''m working on. The trick
is they want me to use the existing LDAP database for it. Does anyone
know how to authenticate using LDAP in RoR?
~Rahul
2006 Mar 05
2
ActiveLDAP maintain user connection
...:allow_anonymous => false,
:try_sasl => false
)
#ldap = ActiveLDAP::Base.connection
#ActiveLDAP::Base.close
return true
rescue ActiveLDAP::AuthenticationError
return false
end
end
end
</pre></code>
--
Posted via http://www.ruby-forum.com/.