{"id":28481426,"url":"https://github.com/dev-sec/pam-tester","last_synced_at":"2026-04-01T17:22:41.002Z","repository":{"id":53749331,"uuid":"341179463","full_name":"dev-sec/pam-tester","owner":"dev-sec","description":null,"archived":false,"fork":false,"pushed_at":"2026-02-03T20:52:15.000Z","size":43,"stargazers_count":8,"open_issues_count":7,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-04T09:37:06.551Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dev-sec.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-02-22T11:36:32.000Z","updated_at":"2025-10-08T02:15:41.000Z","dependencies_parsed_at":"2024-06-27T20:03:22.802Z","dependency_job_id":"12423359-176a-4092-8d40-3a2831212ee6","html_url":"https://github.com/dev-sec/pam-tester","commit_stats":null,"previous_names":["dev-sec/pam-tester"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/dev-sec/pam-tester","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-sec%2Fpam-tester","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-sec%2Fpam-tester/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-sec%2Fpam-tester/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-sec%2Fpam-tester/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dev-sec","download_url":"https://codeload.github.com/dev-sec/pam-tester/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-sec%2Fpam-tester/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31018556,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-27T03:51:26.850Z","status":"ssl_error","status_checked_at":"2026-03-27T03:51:09.693Z","response_time":164,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-07T20:07:22.014Z","updated_at":"2026-03-27T04:11:51.141Z","avatar_url":"https://github.com/dev-sec.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pam-tester\n\npam-tester is a tool to verify PAM auth configurations. It is intended to run in CI settings where you want to make sure you are generating a working PAM configuration. But it can also be used in many other settings.\n\nFeatures:\n\n* support username and password auth with one factor\n* check different pam stacks\n* check for failed auth conditions\n\n## Installation\n\nYou can either clone this repository and run `pam-tester.py` with your local Python. Or you can use a prebuild executable that should be usable on most current Linux distributions.\n\n### Download\n\n```bash\nwget https://github.com/schurzi/pam-tester/releases/download/latest/pam-tester\nchmod +x pam-tester\n./pam-tester\n```\n\n### Build\n\n```bash\ngit clone https://github.com/schurzi/pam-tester\ncd pam-tester\npip install -r requirements.txt\npython pam-tester.py\n```\n\n## Usage\n\n```text\nUsage: pam-tester [OPTIONS]\n\n  A basic testing programm for PAM tests.\n\nOptions:\n  --user TEXT      username for authentication.\n  --password TEXT  Password of the user.\n  --stack TEXT     PAM stack to test.\n  --expectfail     invert return code (True if PAM stack failed, False if success).\n\n  --help           Show this message and exit.\n```\n\nIf you call this tool without any options, it will try to authenticate as `root`. The password will be queried, if you do not specify one via option. The default PAM stack `login` is used, if you want to check any other stack (indicated by the filename in `/etc/pam.d`) you have to specify this stack by name.\n\n### Examples\n\n```bash\nuseradd -m testuser\necho \"Sup3rPassw0rd\" | passwd testuser --stdin\n# --------------------------------------------------\n./pam-tester --user testuser --password Sup3rPassw0rd\n# authenticating user testuser in PAM stack login, status: PAM code 0, PAM reason Success\necho $?\n# 0\n# --------------------------------------------------\n./pam-tester --user testuser --password test\n# authenticating user testuser in PAM stack login, status: PAM code 7, PAM reason Authentication failure\necho $?\n# 1\n# --------------------------------------------------\n./pam-tester --user testuser --password Sup3rPassw0rd --expectfail\n# authenticating user testuser in PAM stack login, status: PAM code 0, PAM reason Success\necho $?\n# 1\n# --------------------------------------------------\n./pam-tester --user testuser --password test --expectfail\n# authenticating user testuser in PAM stack login, status: PAM code 7, PAM reason Authentication failure\necho $?\n# 0\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-sec%2Fpam-tester","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdev-sec%2Fpam-tester","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-sec%2Fpam-tester/lists"}