go389

command module
v0.0.0-...-eaa9f7c Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: MIT Imports: 4 Imported by: 0

README

go389

A Simple LDAP Server

Features

  • Pluggable backend
    • LDAP
    • YAML
  • Pluggable Auth
    • Simple (hash based - sha256,md5,bcrypt)
    • PAM

Build

task build
Supported Build Tags
  • Backend
    • yaml
  • Auth
    • pam
  • App Config
    • yaml
    • ini

Sample App Config

server: ldap
backend: yaml

servers:
  ldap:
    Bind: "localhost:8389"

backends:
  yaml:
    Path: db.yml
    BaseDN: "dc=example,dc=com"

auths:
  pam:
    Service: go389

Sample Backend YAML DB


settings:
  sa:
    dn: cn=sa
    bindAttr: sa
  user:
    dn: cn=users
    objectclass: user
    bindAttr: mail
    searchAttr: mail
  group:
    dn: cn=groups
    objectclass: group
    bindAttr: cn
    searchAttr: name
    alias:
      cn: name

serviceAccounts:
  sa1:
    auths:
      - "bcrypt:$2a$10$dsfdsfdsf.dsfdsfdsfsfdf"

users:
  test@example.com:
    attrs:
      name: test
      groups:
        - admin
    alias:
      uid: name
    auths:
      - "sha256:asdfgewy45645645645"

References

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
cfg
cmd
log

Jump to

Keyboard shortcuts

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