Repository: incubator-ranger Updated Branches: refs/heads/master c80ee0470 -> 2a6efecc3
RANGER-642 : Update USERSEARCHFILTER for Ranger Authentication on Windows Signed-off-by: Velmurugan Periasamy <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/incubator-ranger/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ranger/commit/2a6efecc Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/2a6efecc Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/2a6efecc Branch: refs/heads/master Commit: 2a6efecc3c5586238601226185e49ef4f31886c0 Parents: c80ee04 Author: Gautam Borad <[email protected]> Authored: Wed Sep 9 14:55:19 2015 +0530 Committer: Velmurugan Periasamy <[email protected]> Committed: Thu Sep 10 01:45:19 2015 -0400 ---------------------------------------------------------------------- security-admin/src/bin/ranger_install.py | 8 ++++++++ 1 file changed, 8 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/2a6efecc/security-admin/src/bin/ranger_install.py ---------------------------------------------------------------------- diff --git a/security-admin/src/bin/ranger_install.py b/security-admin/src/bin/ranger_install.py index 2970715..99c8ab8 100644 --- a/security-admin/src/bin/ranger_install.py +++ b/security-admin/src/bin/ranger_install.py @@ -944,6 +944,10 @@ def update_properties(): propertyName="ranger.ldap.referral" newPropertyValue=os.getenv("RANGER_LDAP_REFERRAL") updatePropertyToFilePy(propertyName ,newPropertyValue ,to_file_ranger) + + propertyName="ranger.ldap.user.searchfilter" + newPropertyValue=os.getenv("RANGER_LDAP_USERSEARCHFILTER") + updatePropertyToFilePy(propertyName ,newPropertyValue ,to_file_ranger) elif os.getenv("RANGER_AUTHENTICATION_METHOD") == "ACTIVE_DIRECTORY": propertyName="ranger.authentication.method" @@ -974,6 +978,10 @@ def update_properties(): newPropertyValue=os.getenv("RANGER_LDAP_AD_REFERRAL") updatePropertyToFilePy(propertyName ,newPropertyValue ,to_file_ranger) + propertyName="ranger.ldap.ad.user.searchfilter" + newPropertyValue=os.getenv("RANGER_LDAP_AD_USERSEARCHFILTER") + updatePropertyToFilePy(propertyName ,newPropertyValue ,to_file_ranger) + def setup_authentication(authentication_method, xmlPath): if authentication_method == "UNIX": # log("Setting up UNIX authentication for : " + xmlPath,"debug")
