You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by zh...@apache.org on 2017/07/15 06:38:20 UTC
ranger git commit: RANGER-1690:Ranger usersync created error users.
Ranger usersync got System Virtual User Group Name instead of real group name
when built the unix user list.
Repository: ranger
Updated Branches:
refs/heads/master c5332d123 -> 66e1ce2e1
RANGER-1690:Ranger usersync created error users. Ranger usersync got System Virtual User Group Name instead of real group name when built the unix user list.
Signed-off-by: peng.jianhua <pe...@zte.com.cn>
Project: http://git-wip-us.apache.org/repos/asf/ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/ranger/commit/66e1ce2e
Tree: http://git-wip-us.apache.org/repos/asf/ranger/tree/66e1ce2e
Diff: http://git-wip-us.apache.org/repos/asf/ranger/diff/66e1ce2e
Branch: refs/heads/master
Commit: 66e1ce2e1eb2bcf894178be5a6b64f60dc8faeed
Parents: c5332d1
Author: peng.jianhua <pe...@zte.com.cn>
Authored: Tue Jul 11 22:11:31 2017 -0400
Committer: peng.jianhua <pe...@zte.com.cn>
Committed: Sat Jul 15 02:35:47 2017 -0400
----------------------------------------------------------------------
unixauthservice/conf.dist/ranger-ugsync-default.xml | 6 +++++-
unixauthservice/scripts/install.properties | 6 +++++-
unixauthservice/scripts/templates/installprop2xml.properties | 1 +
unixauthservice/scripts/templates/ranger-ugsync-template.xml | 4 ++++
4 files changed, 15 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ranger/blob/66e1ce2e/unixauthservice/conf.dist/ranger-ugsync-default.xml
----------------------------------------------------------------------
diff --git a/unixauthservice/conf.dist/ranger-ugsync-default.xml b/unixauthservice/conf.dist/ranger-ugsync-default.xml
index 5ed5b89..708e651 100644
--- a/unixauthservice/conf.dist/ranger-ugsync-default.xml
+++ b/unixauthservice/conf.dist/ranger-ugsync-default.xml
@@ -19,7 +19,7 @@
<configuration>
<property>
<name>ranger.usersync.port</name>
- <value>5151</value>
+ <value>5151</value>
</property>
<property>
<name>ranger.usersync.ssl</name>
@@ -46,6 +46,10 @@
<value>500</value>
</property>
<property>
+ <name>ranger.usersync.unix.minGroupId</name>
+ <value>500</value>
+ </property>
+ <property>
<name>ranger.usersync.ldap.username.caseconversion</name>
<value>none</value>
</property>
http://git-wip-us.apache.org/repos/asf/ranger/blob/66e1ce2e/unixauthservice/scripts/install.properties
----------------------------------------------------------------------
diff --git a/unixauthservice/scripts/install.properties b/unixauthservice/scripts/install.properties
index 13ae1e5..00ddef5 100644
--- a/unixauthservice/scripts/install.properties
+++ b/unixauthservice/scripts/install.properties
@@ -28,13 +28,17 @@ POLICY_MGR_URL =
# defaults to unix
SYNC_SOURCE = unix
-
#
# Minimum Unix User-id to start SYNC.
# This should avoid creating UNIX system-level users in the Policy Manager
#
MIN_UNIX_USER_ID_TO_SYNC = 500
+# Minimum Unix Group-id to start SYNC.
+# This should avoid creating UNIX system-level users in the Policy Manager
+#
+MIN_UNIX_GROUP_ID_TO_SYNC = 500
+
# sync interval in minutes
# user, groups would be synced again at the end of each sync interval
# defaults to 5 if SYNC_SOURCE is unix
http://git-wip-us.apache.org/repos/asf/ranger/blob/66e1ce2e/unixauthservice/scripts/templates/installprop2xml.properties
----------------------------------------------------------------------
diff --git a/unixauthservice/scripts/templates/installprop2xml.properties b/unixauthservice/scripts/templates/installprop2xml.properties
index 1a9bf36..fc69f36 100644
--- a/unixauthservice/scripts/templates/installprop2xml.properties
+++ b/unixauthservice/scripts/templates/installprop2xml.properties
@@ -15,6 +15,7 @@
# limitations under the License.
POLICY_MGR_URL = ranger.usersync.policymanager.baseURL
MIN_UNIX_USER_ID_TO_SYNC = ranger.usersync.unix.minUserId
+MIN_UNIX_GROUP_ID_TO_SYNC = ranger.usersync.unix.minGroupId
SYNC_INTERVAL = ranger.usersync.sleeptimeinmillisbetweensynccycle
SYNC_LDAP_URL = ranger.usersync.ldap.url
SYNC_LDAP_BIND_DN = ranger.usersync.ldap.binddn
http://git-wip-us.apache.org/repos/asf/ranger/blob/66e1ce2e/unixauthservice/scripts/templates/ranger-ugsync-template.xml
----------------------------------------------------------------------
diff --git a/unixauthservice/scripts/templates/ranger-ugsync-template.xml b/unixauthservice/scripts/templates/ranger-ugsync-template.xml
index 0025dc8..5321dc6 100644
--- a/unixauthservice/scripts/templates/ranger-ugsync-template.xml
+++ b/unixauthservice/scripts/templates/ranger-ugsync-template.xml
@@ -162,6 +162,10 @@
<value></value>
</property>
<property>
+ <name>ranger.usersync.unix.minGroupId</name>
+ <value></value>
+ </property>
+ <property>
<name>ranger.usersync.keystore.file</name>
<value></value>
</property>