Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/glauth/glauth-mysql
https://github.com/glauth/glauth-mysql
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/glauth/glauth-mysql
- Owner: glauth
- Created: 2022-10-18T03:20:42.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-19T01:58:19.000Z (10 months ago)
- Last Synced: 2024-02-19T02:46:17.744Z (10 months ago)
- Language: Go
- Size: 10.7 KB
- Stars: 0
- Watchers: 4
- Forks: 3
- Open Issues: 2
-
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
```## Database Plugins
To use a database plugin, edit the configuration file (see pkg/plugins/sample-database.cfg) so that:
```
...
[backend]
datastore = "plugin"
plugin = "dynamic library you created using the previous 'make' command"
database = "database connection string"
...
```
so, let's say you built the 'sqlite' plugin, you would now specify its library: `database = sqlite.so`### SQLite, MySQL, Postgres
Tables:
- users, ldapgroups are self-explanatory
- includegroups store the 'includegroups' relationships
- othergroups, on the other hand, are a comma-separated list found in the users table (performance)For documentation on seeding your database schema, and more, please visit this page:
https://glauth.github.io/docs/databases.html