search for: bind_format

Displaying 6 results from an estimated 6 matches for "bind_format".

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 26
17
activeldap
...gn_key => ''memberUid'', :local_key => ''uid'' def self.login(username, password) begin ActiveLDAP::Base.connect( :host => "srv1.azapple.com", :port => 389, :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 mak...
2006 Jul 18
0
Rails Error w/ ActiveLdap
.../1.8/gems/ruby-activeldap-0.7.4/lib/activeldap/configuration.rb | grep -v "#" module ActiveLDAP module Configuration DEFAULT_CONFIG = {} DEFAULT_CONFIG[:host] = ''127.0.0.1'' DEFAULT_CONFIG[:port] = 636 DEFAULT_CONFIG[:method] = :ssl DEFAULT_CONFIG[:bind_format] = "cn=%s,dc=<CORRECT>,dc=<CORRECT>,dc=net" DEFAULT_CONFIG[:user] = ENV[''USER''] DEFAULT_CONFIG[:password_block] = nil DEFAULT_CONFIG[:password] = "letmein" DEFAULT_CONFIG[:store_password] = true DEFAULT_CONFIG[:allow_anonymous]...
2006 Jul 18
1
Rail w/ ActiveLdap
.../1.8/gems/ruby-activeldap-0.7.4/lib/activeldap/configuration.rb | grep -v "#" module ActiveLDAP module Configuration DEFAULT_CONFIG = {} DEFAULT_CONFIG[:host] = ''127.0.0.1'' DEFAULT_CONFIG[:port] = 636 DEFAULT_CONFIG[:method] = :ssl DEFAULT_CONFIG[:bind_format] = "cn=%s,dc=<CORRECT>,dc=<CORRECT>,dc=net" DEFAULT_CONFIG[:user] = ENV[''USER''] DEFAULT_CONFIG[:password_block] = nil DEFAULT_CONFIG[:password] = "letmein" DEFAULT_CONFIG[:store_password] = true DEFAULT_CONFIG[:allow_anonymous]...
2006 Mar 05
2
ActiveLDAP maintain user connection
...def self.login(username, password) begin ActiveLDAP::Base.connect( :host => HOST, :port => PORT, :base => BASE, :bind_format => "uid=#{username},#{USER_PREFIX},#{BASE}", :password_block => Proc.new { password }, :allow_anonymous => false, :try_sasl => false )...
2006 Jul 21
6
pulling information from LDAP server using Ruby on Rails
Hello, I am currently working on a project using Ruby on Rails. So far, I have a well-populated mySQL database the RoR refers to and the basic scaffolding functions implemented. I also designed views/layouts that furthers the basic scaffolding interface. No problem and no big accomplishment by any means. Now, I want to pull user information from an already existing LDAP server and put that