You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by al...@apache.org on 2016/03/03 01:06:56 UTC

[32/50] [abbrv] incubator-ranger git commit: RANGER-642 : Update USERSEARCHFILTER for Ranger Authentication on Windows

RANGER-642 : Update USERSEARCHFILTER for Ranger Authentication on Windows

Signed-off-by: Velmurugan Periasamy <ve...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/incubator-ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ranger/commit/9faec69c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/9faec69c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/9faec69c

Branch: refs/heads/HDP-2.3.2-groupid
Commit: 9faec69c8419114b82dca0cb9d8fa367dbcb36d5
Parents: 6d5440e
Author: Gautam Borad <gb...@gmail.com>
Authored: Wed Sep 9 14:55:19 2015 +0530
Committer: Velmurugan Periasamy <ve...@apache.org>
Committed: Thu Sep 10 01:57:00 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/9faec69c/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")