| | __| _/____ ______ _____ __ ___/ |_| |__ ____ ____
| | / __ |\__ \ \____ \ ______ \__ \ | | \ __\ | \_/ __ \ / \
| |__/ /_/ | / __ \| |_> > /_____/ / __ \| | /| | | Y \ ___/| | \
|____/\____ |(____ / __/ (____ /____/ |__| |___| /\___ >___| /
\/ \/|__| \/ \/ \/ \/
__ .__ __ .__ .__ __
_/ |_|__| ____ _____ _/ |_|__| ____ ____ __ _ _|__|/ |_
\ __\ |/ ___\\__ \\ __\ |/ _ \ / \ ______ \ \/ \/ / \ __\
| | | \ \___ / __ \| | | ( <_> ) | \ /_____/ \ /| || |
|__| |__|\___ >____ /__| |__|\____/|___| / \/\_/ |__||__|
\/ \/ \/
.__
| |__ ___________ ____ __ ________ ______
| | \ ______ / ___\_ __ \/ _ \| | \____ \/ ___/
| Y \ /_____/ / /_/ > | \( <_> ) | / |_> >___ \
|___| / \___ /|__| \____/|____/| __/____ >
\/ /_____/ |__| \/
-----------------------------------------------------------------------
Working code that provides a starting point for LDAP Authentication and Group Membership checking. Uses ruby-net-ldap library to avoid native dependency.
USAGE:
* Edit rename ldap.yml and edit for your environment.
* ruby example.rb
Only tested against Active Directory.