HUE-2012 [core] AD multidomain support

Review Request #4311 — Created April 14, 2014 and submitted

abec
old-hue-rw
HUE-2012
hue
enricoberti, romain
commit 6d96dd927616efe156adcb89065215fbc3accce2
Author: Abraham Elmahrek <abraham@elmahrek.com>
Date:   Tue Mar 4 09:24:42 2014 -0800

    HUE-2012 [core] AD multidomain support
    
    ldap_servers takes precidence over normal ldap config.
    backward compatible since original ldap config can be provided.
    Add server selection logic on front end.
    Split tests by configs: test_ldap_deprecated and test_ldap.
    The former will test deprecated configs and the later will test new configs.
    The Synchronization middleware will choose the first LDAP Server
    config when deciding which server to synchronize with.

:100644 100644 15c3be4... b43d4bc... M	apps/useradmin/src/useradmin/forms.py
:100644 100644 ae3412f... 532e8e7... M	apps/useradmin/src/useradmin/ldap_access.py
:100644 100644 c09d2ac... 99b2772... M	apps/useradmin/src/useradmin/management/commands/import_ldap_group.py
:100644 100644 39e20f9... 5245b09... M	apps/useradmin/src/useradmin/management/commands/import_ldap_user.py
:100644 100644 9221a4c... 5b9a813... M	apps/useradmin/src/useradmin/management/commands/sync_ldap_users_and_groups.py
:100644 100644 7332bfe... 53de7b4... M	apps/useradmin/src/useradmin/middleware.py
:000000 100644 0000000... d7dca85... A	apps/useradmin/src/useradmin/test_ldap.py
:000000 100644 0000000... ad49cbc... A	apps/useradmin/src/useradmin/test_ldap_deprecated.py
:100644 100644 0b2c203... a1ae47a... M	apps/useradmin/src/useradmin/tests.py
:100644 100644 c13deb4... 750b0d8... M	apps/useradmin/src/useradmin/views.py
:100644 100644 e35aab6... 4991a5b... M	desktop/conf.dist/hue.ini
:100644 100644 0e16d9d... aae9d28... M	desktop/conf/pseudo-distributed.ini.tmpl
:100644 100644 119039f... b47be4a... M	desktop/core/src/desktop/auth/backend.py
:100644 100644 ab8d13b... b290aea... M	desktop/core/src/desktop/auth/forms.py
:100644 100644 821fc6a... de58bee... M	desktop/core/src/desktop/auth/views.py
:100644 100644 094b33b... 77d4e1f... M	desktop/core/src/desktop/auth/views_test.py
:100644 100644 4f89251... 3f7b0d7... M	desktop/core/src/desktop/conf.py
:100644 100644 7322026... fa9dbbc... M	desktop/core/src/desktop/templates/login.mako

commit 56283a415f9e30fcf3467460403b51de1854764c
Author: Abraham Elmahrek <abraham@elmahrek.com>
Date:   Thu Apr 10 16:52:38 2014 -0700

    HUE-2012 [core] upgrade django auth ldap

:100644 000000 3ab48d4... 0000000... D	desktop/core/ext-py/django-auth-ldap-1.0.7/PKG-INFO
:100644 000000 2e33ac7... 0000000... D	desktop/core/ext-py/django-auth-ldap-1.0.7/django_auth_ldap/backend.py
:100644 000000 8ce89b0... 0000000... D	desktop/core/ext-py/django-auth-ldap-1.0.7/django_auth_ldap/config.py
:100644 000000 ff8cf1c... 0000000... D	desktop/core/ext-py/django-auth-ldap-1.0.7/django_auth_ldap/dn.py
:100644 000000 52c58ab... 0000000... D	desktop/core/ext-py/django-auth-ldap-1.0.7/django_auth_ldap/models.py
:100644 000000 64ea3ea... 0000000... D	desktop/core/ext-py/django-auth-ldap-1.0.7/django_auth_ldap/tests.py
:100644 000000 9050ab6... 0000000... D	desktop/core/ext-py/django-auth-ldap-1.0.7/docs/Makefile
:100644 000000 adad226... 0000000... D	desktop/core/ext-py/django-auth-ldap-1.0.7/docs/conf.py
:100644 000000 ef6f64e... 0000000... D	desktop/core/ext-py/django-auth-ldap-1.0.7/docs/index.rst
:100644 000000 b8f4caf... 0000000... D	desktop/core/ext-py/django-auth-ldap-1.0.7/setup.py
:000000 100644 0000000... d38d73b... A	desktop/core/ext-py/django-auth-ldap-1.2.0/CHANGES
:000000 100644 0000000... b16b2c0... A	desktop/core/ext-py/django-auth-ldap-1.2.0/LICENSE
:000000 100644 0000000... e475724... A	desktop/core/ext-py/django-auth-ldap-1.2.0/MANIFEST.in
:000000 100644 0000000... 7c2c255... A	desktop/core/ext-py/django-auth-ldap-1.2.0/PKG-INFO
:000000 100644 0000000... bf19c70... A	desktop/core/ext-py/django-auth-ldap-1.2.0/README
:000000 100644 0000000... 4372633... A	desktop/core/ext-py/django-auth-ldap-1.2.0/django_auth_ldap/__init__.py
:000000 100644 0000000... 5070c7f... A	desktop/core/ext-py/django-auth-ldap-1.2.0/django_auth_ldap/backend.py
:000000 100644 0000000... 833f911... A	desktop/core/ext-py/django-auth-ldap-1.2.0/django_auth_ldap/config.py
:000000 100644 0000000... e234303... A	desktop/core/ext-py/django-auth-ldap-1.2.0/django_auth_ldap/dn.py
:000000 100644 0000000... b48d7a3... A	desktop/core/ext-py/django-auth-ldap-1.2.0/django_auth_ldap/models.py
:000000 100644 0000000... 1b489d5... A	desktop/core/ext-py/django-auth-ldap-1.2.0/django_auth_ldap/tests.py
:000000 100644 0000000... e60d33b... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/Makefile
:000000 100644 0000000... 83f84cf... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/_templates/globaltoc.html
:000000 100644 0000000... 0c0a8b9... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/archive/versions/1.0.19/.buildinfo
:000000 100644 0000000... 16f56a0... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/archive/versions/1.0.19/_sources/index.txt
:000000 100644 0000000... 61faf8c... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/archive/versions/1.0.19/_static/ajax-loader.gif
:000000 100644 0000000... 43e8baf... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/archive/versions/1.0.19/_static/basic.css
:000000 100644 0000000... 551517b... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/archive/versions/1.0.19/_static/comment-bright.png
:000000 100644 0000000... 09b54be... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/archive/versions/1.0.19/_static/comment-close.png
:000000 100644 0000000... 92feb52... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/archive/versions/1.0.19/_static/comment.png
:000000 100644 0000000... 1c7297d... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/archive/versions/1.0.19/_static/default.css
:000000 100644 0000000... d4619fd... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/archive/versions/1.0.19/_static/doctools.js
:000000 100644 0000000... 6f7ad78... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/archive/versions/1.0.19/_static/down-pressed.png
:000000 100644 0000000... 3003a88... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/archive/versions/1.0.19/_static/down.png
:000000 100644 0000000... d18082e... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/archive/versions/1.0.19/_static/file.png
:000000 100644 0000000... 7c24308... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/archive/versions/1.0.19/_static/jquery.js
:000000 100644 0000000... da1c562... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/archive/versions/1.0.19/_static/minus.png
:000000 100644 0000000... b3cb374... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/archive/versions/1.0.19/_static/plus.png
:000000 100644 0000000... d79caa1... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/archive/versions/1.0.19/_static/pygments.css
:000000 100644 0000000... 663be4c... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/archive/versions/1.0.19/_static/searchtools.js
:000000 100644 0000000... a45e192... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/archive/versions/1.0.19/_static/sidebar.js
:000000 100644 0000000... 5d89914... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/archive/versions/1.0.19/_static/underscore.js
:000000 100644 0000000... 8bd587a... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/archive/versions/1.0.19/_static/up-pressed.png
:000000 100644 0000000... b946256... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/archive/versions/1.0.19/_static/up.png
:000000 100644 0000000... e9bd1b8... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/archive/versions/1.0.19/_static/websupport.js
:000000 100644 0000000... 3e0997d... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/archive/versions/1.0.19/genindex.html
:000000 100644 0000000... 7b3e945... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/archive/versions/1.0.19/index.html
:000000 100644 0000000... 7fd77a3... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/archive/versions/1.0.19/objects.inv
:000000 100644 0000000... d8c6f8a... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/archive/versions/1.0.19/py-modindex.html
:000000 100644 0000000... a74bc16... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/archive/versions/1.0.19/search.html
:000000 100644 0000000... 6ab9e6f... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/archive/versions/1.0.19/searchindex.js
:000000 100644 0000000... 888ca8f... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/ext/daldocs.py
:000000 100644 0000000... 86ce4c5... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/source/.spell.utf-8.add
:000000 100644 0000000... e57fe0a... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/source/.spell.utf-8.add.spl
:000000 100644 0000000... dc18b5c... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/source/authentication.rst
:000000 100644 0000000... d503051... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/source/changes.rst
:000000 100644 0000000... 8deb43f... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/source/conf.py
:000000 100644 0000000... f692cde... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/source/example.rst
:000000 100644 0000000... bce6262... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/source/groups.rst
:000000 100644 0000000... 0df1bf1... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/source/index.rst
:000000 100644 0000000... 533112f... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/source/install.rst
:000000 100644 0000000... 46c6789... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/source/logging.rst
:000000 100644 0000000... a3822ef... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/source/multiconfig.rst
:000000 100644 0000000... ec38ec1... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/source/performance.rst
:000000 100644 0000000... 9a15103... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/source/permissions.rst
:000000 100644 0000000... a887b24... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/source/reference.rst
:000000 100644 0000000... 42a5565... A	desktop/core/ext-py/django-auth-ldap-1.2.0/docs/source/users.rst
:000000 100644 0000000... 861a9f5... A	desktop/core/ext-py/django-auth-ldap-1.2.0/setup.cfg
:000000 100644 0000000... 48ca5cb... A	desktop/core/ext-py/django-auth-ldap-1.2.0/setup.py
Altered tests for deprecated config.
Added tests for new config.
Tested auth with LDAP in old and new configs.
Tested import users and groups from useradmin with old and new config.

Still need to run tests with Hadoop.
Loading file attachments...

  • 0
  • 0
  • 2
  • 0
  • 2
Description From Last Updated
romain
  1. Seems really good!
    
    This is awesome to have the compat with before as last time it created some chaos!
    
    You can add the screenshot too!
  2. apps/useradmin/src/useradmin/views.py (Diff revision 1)
     
     
    needed? ;)
  3. desktop/core/src/desktop/conf.py (Diff revision 1)
     
     
    It starts below right? (better to remove this one)
    1. Indeed. Will remove.
  4. 
      
abec
abec
Review request changed

Status: Closed (submitted)

Loading...