search for: password_block

Displaying 4 results from an estimated 4 matches for "password_block".

2006 Mar 26
17
activeldap
...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 makes sense to me since this works... $ ldapsearch -x -h srv1.azapple.com -W \ -D '...
2006 Jul 18
0
Rails Error w/ ActiveLdap
...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] = false DEFAULT_CONFIG[:sasl_quiet] = false DEFAULT_CONFIG[:try_sasl] = false DEFAULT_CONFIG[:retries] = 3 DEFAULT_CONFIG[:retry_wait] = 3...
2006 Jul 18
1
Rail w/ ActiveLdap
...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] = false DEFAULT_CONFIG[:sasl_quiet] = false DEFAULT_CONFIG[:try_sasl] = false DEFAULT_CONFIG[:retries] = 3 DEFAULT_CONFIG[:retry_wait] = 3...
2006 Mar 05
2
ActiveLDAP maintain user connection
...ase.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 ) #ldap = ActiveLDAP::Base.connection #ActiveLDAP::Base.close...