You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by co...@apache.org on 2016/12/13 15:07:09 UTC
incubator-ranger git commit: Trivial whitespace/spelling mistake
changes
Repository: incubator-ranger
Updated Branches:
refs/heads/master d3d03a10d -> a51da0013
Trivial whitespace/spelling mistake changes
Project: http://git-wip-us.apache.org/repos/asf/incubator-ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ranger/commit/a51da001
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/a51da001
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/a51da001
Branch: refs/heads/master
Commit: a51da0013e82dd2e416991704a745fbe5d1ef47f
Parents: d3d03a1
Author: Colm O hEigeartaigh <co...@apache.org>
Authored: Mon Dec 12 16:12:33 2016 +0000
Committer: Colm O hEigeartaigh <co...@apache.org>
Committed: Mon Dec 12 16:12:33 2016 +0000
----------------------------------------------------------------------
.../apache/ranger/ldapconfigcheck/AuthenticationCheck.java | 8 ++++----
.../java/org/apache/ranger/ldapconfigcheck/LdapConfig.java | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/a51da001/ugsync/ldapconfigchecktool/ldapconfigcheck/src/main/java/org/apache/ranger/ldapconfigcheck/AuthenticationCheck.java
----------------------------------------------------------------------
diff --git a/ugsync/ldapconfigchecktool/ldapconfigcheck/src/main/java/org/apache/ranger/ldapconfigcheck/AuthenticationCheck.java b/ugsync/ldapconfigchecktool/ldapconfigcheck/src/main/java/org/apache/ranger/ldapconfigcheck/AuthenticationCheck.java
index a94a955..b2b37dd 100644
--- a/ugsync/ldapconfigchecktool/ldapconfigcheck/src/main/java/org/apache/ranger/ldapconfigcheck/AuthenticationCheck.java
+++ b/ugsync/ldapconfigchecktool/ldapconfigcheck/src/main/java/org/apache/ranger/ldapconfigcheck/AuthenticationCheck.java
@@ -73,8 +73,8 @@ public class AuthenticationCheck {
public void discoverAuthProperties() {
- ambariProps.println("\n# Possible values for authetication properties:");
- installProps.println("\n# Possible values for authetication properties:");
+ ambariProps.println("\n# Possible values for authentication properties:");
+ installProps.println("\n# Possible values for authentication properties:");
if (authMethod.equalsIgnoreCase("AD")) {
installProps.println("xa_ldap_ad_url=" + ldapUrl);
installProps.println("xa_ldap_ad_domain=" + adDomain);
@@ -187,10 +187,10 @@ public class AuthenticationCheck {
LdapAuthenticationProvider ldapAuthenticationProvider = new LdapAuthenticationProvider(bindAuthenticator,defaultLdapAuthoritiesPopulator);
- if (userName != null && userPassword != null && !userName.trim().isEmpty()&& !userPassword.trim().isEmpty()) {
+ if (userName != null && userPassword != null && !userName.trim().isEmpty() && !userPassword.trim().isEmpty()) {
final List<GrantedAuthority> grantedAuths = new ArrayList<>();
grantedAuths.add(new SimpleGrantedAuthority("ROLE_USER"));
- final UserDetails principal = new User(userName, userPassword,grantedAuths);
+ final UserDetails principal = new User(userName, userPassword, grantedAuths);
final Authentication finalAuthentication = new UsernamePasswordAuthenticationToken(principal, userPassword, grantedAuths);
result = ldapAuthenticationProvider.authenticate(finalAuthentication);
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/a51da001/ugsync/ldapconfigchecktool/ldapconfigcheck/src/main/java/org/apache/ranger/ldapconfigcheck/LdapConfig.java
----------------------------------------------------------------------
diff --git a/ugsync/ldapconfigchecktool/ldapconfigcheck/src/main/java/org/apache/ranger/ldapconfigcheck/LdapConfig.java b/ugsync/ldapconfigchecktool/ldapconfigcheck/src/main/java/org/apache/ranger/ldapconfigcheck/LdapConfig.java
index b544638..5a90b1c 100644
--- a/ugsync/ldapconfigchecktool/ldapconfigcheck/src/main/java/org/apache/ranger/ldapconfigcheck/LdapConfig.java
+++ b/ugsync/ldapconfigchecktool/ldapconfigcheck/src/main/java/org/apache/ranger/ldapconfigcheck/LdapConfig.java
@@ -91,7 +91,7 @@ public class LdapConfig {
private static final String LGSYNC_GROUP_MEMBER_ATTRIBUTE_NAME = "ranger.usersync.group.memberattributename";
- //Authentication relate properties
+ //Authentication related properties
private static final String AUTHENTICATION_METHOD = "ranger.authentication.method";
private static final String AD_DOMAIN = "ranger.ldap.ad.domain";
private static final String USER_DN_PATTERN = "ranger.ldap.user.dnpattern";