Something went wrong. Try again.
Code Review Workflow for IT Programming at BCTC West
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536""" This file lists errors related to LDAP Authentication"""
class LDAPAuthException(Exception): """ This exception is used to represent an error with authenticating through LDAP """
pass
class LDAPInvalidCredentials(LDAPAuthException): """ This exception is used when the credentials provided are invalid """
pass
class LDAPConnectionError(LDAPAuthException): """ This exception is used when we can't contact ActiveDirectory """
pass
class LDAPNotInContextException(LDAPAuthException): """ This exception is used when we can't find the user in the LDAP_BASE_CONTEXT, this could mean that the user is not in our class/campus """
pass