diff --git a/.travis.yml b/.travis.yml index f99af63..fd0f42a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,7 +21,7 @@ install: # #script: # - coverage run --source=ldapcherry setup.py test -script: "if [[ $TEST_PEP8 == '1' ]]; then pep8 --repeat --show-source --exclude=.venv,.tox,dist,docs,build,*.egg,tests,misc . scripts/ldapcherryd; else coverage run --source=ldapcherry setup.py test; fi" +script: "if [[ $TEST_PEP8 == '1' ]]; then pep8 --repeat --show-source --exclude=.venv,.tox,dist,docs,build,*.egg,tests,misc,setup.py . scripts/ldapcherryd; else coverage run --source=ldapcherry setup.py test; fi" matrix: include: - python: "2.7" diff --git a/ldapcherry/backend/backendAD.py b/ldapcherry/backend/backendAD.py index e59ca8c..37c194c 100644 --- a/ldapcherry/backend/backendAD.py +++ b/ldapcherry/backend/backendAD.py @@ -28,6 +28,7 @@ class MissingAttr(Exception): self.log = 'attributes "cn" and "unicodePwd" must be declared ' \ 'in attributes.yml for all Active Directory backends.' + NO_ATTR = 0 DISPLAYED_ATTRS = 1 LISTED_ATTRS = 2