Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/glauth/glauth-pam
https://github.com/glauth/glauth-pam
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/glauth/glauth-pam
- Owner: glauth
- Created: 2022-10-18T06:24:13.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-19T02:00:37.000Z (10 months ago)
- Last Synced: 2024-02-19T03:21:57.885Z (10 months ago)
- Language: Go
- Size: 11.7 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GLAuth Plugin
This is a GLAuth plugin; that is, a backend that are not compiled in GLAuth by default.
To quote 'Butonic' (Jörn Friedrich Dreyer):
> Just keep the 'lightweight' in mind.
To build either back-end, type
```
make plugin_name
```
where 'name' is the plugin's name; so, for instance: `make plugin_sqlite`To build back-ends for specific architectures, specify `PLUGIN_OS` and `PLUGIN_ARCH` --
For instance, to build the sqlite plugin for the new Mac M1s:
```
make plugin_sqlite PLUGIN_OS=darwin PLUGIN_ARCH=arm64
```## PAM Plugin
To authenticate against local users, edit the configuration file (see pkg/plugins/sample-pam.cfg) so that:
```
...
[backend]
datastore = "plugin"
plugin = "bin/pam.so"
...
```When building this plugin, one must first ensure that the proper development headers are installed. For instance, on Ubuntu:
```
sudo apt-get install libpam0g-dev
```You will likely also wish to tweak the `groupWithSearchCapability` setting, to assign an appropriate secondary group.
Then, to perform a search:
```
ldapsearch -LLL -H ldap://localhost:3893 -D cn=,ou=,dc=glauth,dc=com -w -x -bdc=glauth,dc=com cn=
```