Нема описа

Daniel Moore a2e065cccd Added installation instructions to README. Fixes #1 пре 11 година
include 3f21eab0b8 first draft ldap_auth handle_req пре 11 година
priv fa5ce2612d first front-to-back working version пре 11 година
src e87727c4c0 fixing get_group_memberships пре 11 година
test fa5ce2612d first front-to-back working version пре 11 година
.gitignore c921993586 added .DS_Store to gitconfig пре 11 година
LICENSE d8ced6645f Initial commit пре 11 година
README.md a2e065cccd Added installation instructions to README. Fixes #1 пре 11 година
rebar.config 3f21eab0b8 first draft ldap_auth handle_req пре 11 година

README.md

LDAP Authentication Handler for CouchDB

Features

  • Basic authentication handler
  • Session handler
    • works with CouchDB built-in cookie_authentication_handler
  • Supports users and recursive-group association

Installation

First, check out the source and cd into it.

Prerequisites

  • Erlang
  • Rebar

Build from Source

rebar clean compile

Run Tests

rebar test

Install binaries and config

# Create module folder
mkdir /usr/local/lib/couchdb/erlang/lib/ldap-auth
# Copy binaries
cp -R ebin /usr/local/lib/couchdb/erlang/lib/ldap-auth/

# Copy/overwrite the default config
cp -f priv/default.d/* /usr/local/etc/couchdb/default.d/

# Copy (but don't overwrite!) the custom config
cp -n priv/local.d/* /usr/local/etc/couchdb/local.d/

Configuration

See ldap_auth.ini for details.