Skip to content

Implementation of LDAP server for user authentication.

Notifications You must be signed in to change notification settings

jenhao-thesis/LdapServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LDAP server

Implementation of LDAP server for user authentication. This server is the in-memory LDAP server (IM-LDAP) and it is for non-production environments.

Getting started

Prerequisites

  • node

    apt install nodejs
    node -v
  • npm

    apt install npm
    npm -v
  • OpenLDAP

    apt-get install slapd ldap-utils

Installation

  1. Clone the repo
    git clone https://github.com/jenhao-thesis/LdapServer.git
  2. Install NPM packages
    npm install
  3. Launch a node app
    node ldapServer.js

Setup LDAP server

The qwer.ldif is a pre-define hierarchical directory structure file.

  1. Initial a hierarchical directory structure for user data

    ldapadd -H ldap://localhost:1389 -D "cn=root" -w secret -f qwer.ldif
  2. (optional) Search specific user

    ldapsearch -H ldap://localhost:1389 -x -D "cn=root" -w "secret" -b "ou=location2,dc=jenhao,dc=com"

About

Implementation of LDAP server for user authentication.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published