ergo-ldap

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

README

ergo-ldap

This is an authentication plugin for Ergo that defers password checking to an LDAP server.

To build the plugin, install Go 1.14 or higher, then run make; this will build an ergo-ldap binary.

See example.yaml for LDAP authentication options.

To configure Ergo to use this plugin, add a section like this to your accounts block:

    auth-script:
        enabled: true
        command: "/path/to/ergo-ldap"
        # constant list of args to pass to the command; the actual authentication
        # data is transmitted over stdin/stdout:
        args: ["/path/to/ldap-config.yaml"]
        # should we automatically create users if the plugin returns success?
        autocreate: true
        # timeout for process execution, after which we send a SIGTERM:
        timeout: 9s
        # how long after the SIGTERM before we follow up with a SIGKILL:
        kill-timeout: 1s

You will most likely also want to set require-sasl: true and accounts.registration.enabled: false.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL