Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

LDAP based authentication support for hug

Project Description


Easy to use LDAP based authentication support for hug:

import hug
import hug_authentication_ldap

authentication = hug_authentication_ldap.basic('', 'uid={user_name},ou=people')

def say_hello(hug_user):
    return 'Hello {}!'.format(

Or, for general reusable LDAP password verification within hug:

import hug
import hug_authentication_ldap

ldap_check = hug_authentication_ldap.verify('', 'uid={user_name},ou=people')

def check(user_name, password):
    if ldap_check(user_name, password):
        return True

    return False

Installing hug_authentication_ldap

Installing hug_authentication_ldap is as simple as:

pip3 install hug_authentication_ldap --upgrade

Ideally, within a virtual environment.

What is hug_authentication_ldap?

An extension for hug that provides LDAP based authentication support

Thanks and I hope you find hug_authentication_ldap helpful!

~Timothy Crosley

Release History

Release History

This version
History Node


History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
hug_authentication_ldap-1.0.3.tar.gz (4.0 kB) Copy SHA256 Checksum SHA256 Source Apr 11, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting