Module: Rpam

Defined in:
lib/rpam.rb,
ext/Rpam/rpam_ext.c

Defined Under Namespace

Modules: Ext

Class Method Summary collapse

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, options = {}
  options = options.dup
  options[:service] ||= 'rpam'

  Rpam::Ext.authpam(user, password, options[:service])
end

Instance Method Details

#authpam(*args) ⇒ Object



4
5
6
# File 'lib/rpam.rb', line 4

def authpam *args
  ::Rpam.auth(*args)
end