Module: Rpam
- Defined in:
- lib/rpam.rb,
ext/Rpam/rpam_ext.c
Defined Under Namespace
Modules: Ext
Class Method Summary collapse
- .auth(user, password, options = {}) ⇒ Object (also: authpam)
Instance Method Summary collapse
Class Method Details
.auth(user, password, options = {}) ⇒ Object Also known as: authpam
9 10 11 12 13 14 |
# File 'lib/rpam.rb', line 9 def auth user, password, = {} = .dup [:service] ||= 'rpam' Rpam::Ext.authpam(user, password, [:service]) end |
Instance Method Details
#authpam(*args) ⇒ Object
4 5 6 |
# File 'lib/rpam.rb', line 4 def authpam *args ::Rpam.auth(*args) end |