Repository: incubator-ranger Updated Branches: refs/heads/ranger-0.5 72b4df5c0 -> a3c9d8c6b
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/a3c9d8c6 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/a3c9d8c6 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/a3c9d8c6 Branch: refs/heads/ranger-0.5 Commit: a3c9d8c6b1b4f72b0ef6c23abb49693c2c73e504 Parents: 72b4df5 Author: Gautam Borad <[email protected]> Authored: Wed Sep 9 14:55:19 2015 +0530 Committer: Velmurugan Periasamy <[email protected]> Committed: Thu Sep 10 01:46:01 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/a3c9d8c6/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")
