Skip to content

kernel164/go389

Repository files navigation

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:
  [email protected]:
    attrs:
      name: test
      groups:
        - admin
    alias:
      uid: name
    auths:
      - "sha256:asdfgewy45645645645"

References

About

A Simple LDAP Server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published