
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
= rpam2
== DESCRIPTION:
This extension provides a PAM (Pluggable Authentication Modules) integration to ruby. It is inspired by rpam but provides much functionality and is licensed under MIT.
== EXAMPLE:
require 'rpam2'
if Rpam2.auth("servicename", "user", "password") puts "Authentication successful" else puts "Authentication failed" end
puts Rpam2.listenv(nil, "user", "password") # uses default (rpam) puts Rpam2.listenv("servicename", "user", "password") puts Rpam2.listenv("servicename", "user", "password", true) puts Rpam2.listenv("servicename", "user", "password", true, "RUSER", "RHOST") puts Rpam2.listenv("servicename") # error
== REQUIREMENTS:
== INSTALL:
gem install rpam2
or if it should not depend on pam:
ALLOW_NOPAM=true gem install rpam2
WARNING: Don't use rpam2 in this case except for test. It isn't safe
Or manually:
== Usage:
require 'rpam2'
Rpam2.auth("servicename", "username", "password", ["RUSER", "RHOST"]) => (true/false)
Rpam2.account("servicename", "username") => (true/false)
Rpam2.getenv("servicename", "username", "password", "envvar", [opensession(true/false), ["RUSER", "RHOST"]]) => (string/nil)
Rpam2.listenv("servicename", "username", "password", [opensession(true/false), ["RUSER", "RHOST"]]) => (hash/nil)
== Testing: For test purposes can Rpam2 be filled with fake data. For this mode pam is not neccessary but then you may should not access not specified services. Only services in fake_data are emulated the rest is redirected to real pam.
Rpam2.fake_data = { usernames: Set['alex', 'hugo', 'thomas'], servicenames: Set['service1', 'service2'], password: '123456', env: { email: 'me@example.com'} }
FAQs
Unknown package
We found that rpam2 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.