bob1de / ldap-auth-sh

A simple but configurable shell script to authenticate against LDAP
GNU General Public License v3.0
80 stars 21 forks source link

A Simple Shell Script to Authenticate Against LDAP

This is a simple but extensible shell script to authenticate users by binding to LDAP. Additional checks, such as requiring group memberships, can easily be configured. The credentials are read from environment variables. In case of a successful authentication, it exits with exit code 0, non-zero otherwise.

ldap-auth-sh is known to work with:

However, it's of course not limited to these platforms.

Requirements

You need:

Getting Started

Just copy the file ldap-auth.sh <ldap-auth.sh>_ and read the comments therein.

Sample configurations are shipped in the examples <examples>_ directory.