Class: IBMW3::Authenticate
- Inherits:
-
Object
- Object
- IBMW3::Authenticate
- Defined in:
- lib/ibm_w3.rb
Constant Summary collapse
- @@host =
'bluepages.ibm.com'- @@base =
'ou=bluepages,o=ibm.com'- @@port =
636
Class Method Summary collapse
Class Method Details
.do(email, password) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/ibm_w3.rb', line 11 def self.do(email, password) user = find_user_from_email(email) if user.nil? return false elsif self.authenticated?(user[:dn], password) return user else return false end end |