Giter Club home page Giter Club logo

srelapd's Introduction

srelapd

SRE LDAP Server

SuperLight weight LDAP Server.

Configuration

Create a configuration .JSON file

Password is generated using:

$: echo -n "password" | openssl dgst -sha256
{
  "baseDN": "dc=tsocial,dc=com",
  "users": [
    {
      "name": "ldap10",
      "givenname": "Test",
      "sn": "Account",
      "mail": "[email protected]",
      "unixid": 5002,
      "primarygroup": 5501,
      "loginShell": "/bin/bash",
      "homeDir": "/home/ldap10",
      "passsha256": "652c7dc687d98c9889304ed2e408c74b611e86a40caa51c4b43f1dd5913c5cd0",
    },
    {
      "name": "otpuser",
      "unixid": 5004,
      "primarygroup": 5501,
      "passsha256": "652c7dc687d98c9889304ed2e408c74b611e86a40caa51c4b43f1dd5913c5cd0",
      "otpsecret": "3hnvnk4ycv44glziedqfefw6s25j4dougs3rk"
    }
  ],
  "groups": [
    {
      "name": "sre",
      "unixid": 5501
    }
  ]
}

Binary

$: make build

Will output a dist/srelapd

Start

./srelapd --config=/config.json

TLS

You can choose to keep a Bind password or use TLS for certs

usage: srelapd --config=CONFIG [<flags>]

Flags:
  --help                         Show context-sensitive help (also try --help-long and --help-man).
  --listen="9899"                Listening on port
  --skip-tls                     Skip using TLS while connecting to the server.
  --root-cert-file=ROOT-CERT-FILE  
                                 Root Cert File
  --cert-file=CERT-FILE          Cert File
  --key-file=KEY-FILE            Key File
  --upstream-addr="localhost:8080"  
                                 Upstream server address, the main server.
  --tls-server-name="localhost"  ServerName in tls Config
  --config=CONFIG                Config File

srelapd's People

Contributors

meson10 avatar

Watchers

Jaideep Khandelwal avatar

Forkers

cbluth one2nc

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.