This is an automated email from the ASF dual-hosted git repository. pradeep pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/ranger.git
The following commit(s) were added to refs/heads/master by this push: new 9728fbf RANGER-2678: RangerUgSyncRESTClient sets password as username for basic auth 9728fbf is described below commit 9728fbf7362920ce2c7d8099491c27917c5501da Author: Pradeep <prad...@apache.org> AuthorDate: Mon Dec 23 18:16:16 2019 +0530 RANGER-2678: RangerUgSyncRESTClient sets password as username for basic auth --- src/main/assembly/usersync.xml | 2 ++ ugsync/pom.xml | 12 ++++++++++-- .../ranger/unixusersync/process/RangerUgSyncRESTClient.java | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/main/assembly/usersync.xml b/src/main/assembly/usersync.xml index 220126c..7e81006 100644 --- a/src/main/assembly/usersync.xml +++ b/src/main/assembly/usersync.xml @@ -59,6 +59,8 @@ <include>com.kstruct:gethostname4j:jar:${kstruct.gethostname4j.version}</include> <include>net.java.dev.jna:jna:jar:${jna.version}</include> <include>net.java.dev.jna:jna-platform:jar:${jna-platform.version}</include> + <include>org.codehaus.jackson:jackson-core-asl:jar:${codehaus.jackson.version}</include> + <include>org.codehaus.jackson:jackson-jaxrs:jar:${codehaus.jackson.version}</include> </includes> <unpack>false</unpack> </dependencySet> diff --git a/ugsync/pom.xml b/ugsync/pom.xml index 9e33d3d..b1d695a 100644 --- a/ugsync/pom.xml +++ b/ugsync/pom.xml @@ -132,8 +132,16 @@ <version>${apacheds.version}</version> <scope>test</scope> </dependency> - - + <dependency> + <groupId>org.codehaus.jackson</groupId> + <artifactId>jackson-core-asl</artifactId> + <version>${codehaus.jackson.version}</version> + </dependency> + <dependency> + <groupId>org.codehaus.jackson</groupId> + <artifactId>jackson-jaxrs</artifactId> + <version>${codehaus.jackson.version}</version> + </dependency> </dependencies> <build> diff --git a/ugsync/src/main/java/org/apache/ranger/unixusersync/process/RangerUgSyncRESTClient.java b/ugsync/src/main/java/org/apache/ranger/unixusersync/process/RangerUgSyncRESTClient.java index e4024a2..991d71f 100644 --- a/ugsync/src/main/java/org/apache/ranger/unixusersync/process/RangerUgSyncRESTClient.java +++ b/ugsync/src/main/java/org/apache/ranger/unixusersync/process/RangerUgSyncRESTClient.java @@ -80,7 +80,7 @@ public class RangerUgSyncRESTClient extends RangerRESTClient { setClient(Client.create(config)); if (StringUtils.isNotEmpty(getUsername()) && StringUtils.isNotEmpty(getPassword())) { - getClient().addFilter(new HTTPBasicAuthFilter(getPassword(), getPassword())); + getClient().addFilter(new HTTPBasicAuthFilter(getUsername(), getPassword())); } } }