'Loads our settings from django.conf.settings, applying defaults for any
that are omitted.'

def __init__(self, prefix='AUTH_LDAP_'):

    from django.conf import settings
    for (name, default) in self.defaults.items():
        value = getattr(settings, (prefix + name), default)
        setattr(self, name, value)
