File: rpam.rb

package info (click to toggle)
ruby-rpam-ruby19 1.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 96 kB
  • sloc: ansic: 72; ruby: 26; makefile: 2
file content (18 lines) | stat: -rw-r--r-- 306 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require 'rpam_ext'

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

  class <<self
    def auth user, password, options = {}
      options = options.dup
      options[:service] ||= 'rpam'

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

    alias :authpam :auth
  end
end