mirror of
https://github.com/glauth/glauth.git
synced 2026-10-25 21:49:50 +00:00
2eb2215ae4
This commit actually covers a few items. In future commits, I will keep features distinct. This is only happening this time around due to how long it took to merge this branch. Covered: - Database plugins (at this time: SQLite, MySQL, Postgres) - Backends acting as middleware: added the [[Backends]] configuration directive while retaining backward compatibility with [Backend] - Schema introspection (root DSE query with base scope) - When proxying, insert queried attribute back in upstream response, if absent, so that the LDAP library does not filter out all entries - When chaining backends, any backend can be used to inject OTP value in password, before reaching a non-OTP-aware backend (currently guarded by a True statement in case we find an issue (I did thoroughly test but you never know)) - Handling of special "1.1" attributes filter meaning "I do not want attributes" (RFC 4511, 4.5.1.8) - Support for "want types only" queries, even when proxying
23 lines
812 B
Makefile
23 lines
812 B
Makefile
#####################
|
|
# Plugins Targets
|
|
#####################
|
|
|
|
# Note: to make a plugin compatible with a binary built in debug mode, add `-gcflags='all=-N -l'`
|
|
|
|
plugins: plugin_mysql plugin_postgres plugin_sqlite
|
|
|
|
plugin_mysql: bin/mysql.so
|
|
|
|
bin/mysql.so: pkg/plugins/mysql.go pkg/plugins/basesqlhandler.go
|
|
GOOS=linux GOARCH=amd64 go build ${TRIM_FLAGS} -ldflags "${BUILD_VARS}" -buildmode=plugin -o $@ $^
|
|
|
|
plugin_postgres: bin/postgres.so
|
|
|
|
bin/postgres.so: pkg/plugins/postgres.go pkg/plugins/basesqlhandler.go
|
|
GOOS=linux GOARCH=amd64 go build ${TRIM_FLAGS} -ldflags "${BUILD_VARS}" -buildmode=plugin -o $@ $^
|
|
|
|
plugin_sqlite: bin/sqlite.so
|
|
|
|
bin/sqlite.so: pkg/plugins/sqlite.go pkg/plugins/basesqlhandler.go
|
|
GOOS=linux GOARCH=amd64 go build ${TRIM_FLAGS} -ldflags "${BUILD_VARS}" -buildmode=plugin -o $@ $^
|