{"id":19031443,"url":"https://github.com/plandes/userauth","last_synced_at":"2026-05-03T07:30:18.374Z","repository":{"id":57730037,"uuid":"230769897","full_name":"plandes/userauth","owner":"plandes","description":"Java Command Line User Authentication","archived":false,"fork":false,"pushed_at":"2023-12-05T22:41:22.000Z","size":502,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-02T04:14:37.508Z","etag":null,"topics":["command-line","java","pam","pam-authentication","pam-module","pwauth"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/plandes.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2019-12-29T15:38:21.000Z","updated_at":"2022-12-13T18:51:16.000Z","dependencies_parsed_at":"2025-01-02T04:14:46.757Z","dependency_job_id":"a78e16a9-76e1-4422-9fdc-b1be727f83c7","html_url":"https://github.com/plandes/userauth","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plandes%2Fuserauth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plandes%2Fuserauth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plandes%2Fuserauth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plandes%2Fuserauth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/plandes","download_url":"https://codeload.github.com/plandes/userauth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240080751,"owners_count":19744920,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["command-line","java","pam","pam-authentication","pam-module","pwauth"],"created_at":"2024-11-08T21:23:29.263Z","updated_at":"2026-05-03T07:30:18.301Z","avatar_url":"https://github.com/plandes.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Java Command Line User Authentication\n\n[![Travis CI Build Status][travis-badge]][travis-link]\n[![Maven Central][maven-badge]][maven-link]\n\nThis is an interface to authenticate and get user information in UNIX/Linux\nenvironments.  This just wraps command line utilities and so that JNI, and\nthus, system specific compilation can be avoided.\n\nSpecifically, this provides:\n* User authentication using the [pwauth] program, which is commonly available\n  on UNIX/Linux machines as a package.\n* User full name and other basic information using the [getent] binary.\n* Can be used for the fairly simple and useful IPC/process API (`Command` class).\n* Pure Java implementation.\n\nPaths of these binaries default to those on Debian systems.  However, if the\npath isn't found `which` is used to find it.  You can override the default\npath with `com.zensols.unix.userauth.UserManager.overridePath`.\n\n\n## Obtaining\n\nIn your `pom.xml` file add\nthe\n[dependency XML element](https://plandes.github.io/userauth/dependency-info.html) below:\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.zensols.sys\u003c/groupId\u003e\n    \u003cartifactId\u003euserauth\u003c/artifactId\u003e\n    \u003cversion\u003e0.0.1\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Installation\n\nThe [pwauth] program is installed on Debian/Ubuntu machines with:\n```bash\napt-get install pwauth\n```\n\nOn Redhat/Fedora/CentOS:\n```bash\nyum install pwauth\n```\n\n\n## Documentation\n\nMore [documentation](https://plandes.github.io/userauth/):\n* [Javadoc](https://plandes.github.io/userauth/apidocs/index.html)\n* [Dependencies](https://plandes.github.io/userauth/dependencies.html)\n\n\n## Building\n\nTo build from source, do the following:\n\n- Install [Maven](https://maven.apache.org)\n- Install [GNU make](https://www.gnu.org/software/make/) (optional)\n- Build the software: `make`\n- Build the distribution binaries: `make dist`\n\nNote that you can also build a single jar file with all the dependencies with:\n`make package`.\n\n\n## Other Libraries\n\nJenkins has a [plugin] available, which uses [pwauth].  However, it is tightly\ncoupled their framework, for which libraries are difficult to find.\n\n\n## Changelog\n\nAn extensive changelog is available [here](CHANGELOG.md).\n\n\n## License\n\nCopyright © 2019 Paul Landes\n\nApache License version 2.0\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n\n\u003c!-- links --\u003e\n[travis-link]: https://travis-ci.org/plandes/userauth\n[travis-badge]: https://travis-ci.org/plandes/userauth.svg?branch=master\n\n[maven-link]: https://maven-badges.herokuapp.com/maven-central/com.zensols.sys/userauth\n[maven-badge]: https://maven-badges.herokuapp.com/maven-central/com.zensols.sys/userauth/badge.svg\n\n[pwauth]: https://github.com/phokz/pwauth\n[getent]: https://en.wikipedia.org/wiki/Getent\n[plugin]: https://github.com/jenkinsci/pwauth-plugin\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplandes%2Fuserauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplandes%2Fuserauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplandes%2Fuserauth/lists"}