Skip to content

Commit

Permalink
Turned into boot
Browse files Browse the repository at this point in the history
  • Loading branch information
SavvasMisaghMoayyed committed Jan 5, 2017
1 parent 827f534 commit 410fe72
Show file tree
Hide file tree
Showing 7 changed files with 259 additions and 197 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
*.class
.idea
target
28 changes: 20 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
Java Keystore LDAPS Test
Java LDAP Test
====================

##Configuration
See [`Test.properties`](https://github.com/mmoayyed/java-ldap-ssl-test/blob/master/Test.properties).
This is a small test utility that attempts to connect to an LDAP instance,
authenticate a given credential and retrieve attributes. It is very helpful
for testing secure connections, LDAPS and certificate configuration.

##Build
To compile and then use, execute:
## Configuration

See [`Test.properties`](https://github.com/mmoayyed/java-ldap-ssl-test/blob/master/src/main/resources/Test.properties).

## Build

```bash
mvn clean package
```
javac Test.java
java Test

## Usage

- Download the JAR from [here](https://github.com/UniconLabs/java-ldap-ssl-test/releases)
- Run:

```
java -jar <jar-file-name>
```

##Sample output

The log below demonstrates a sample of the program output configured to hit 5 ldap urls.

```
Expand Down Expand Up @@ -86,4 +99,3 @@ The log below demonstrates a sample of the program output configured to hit 5 ld
[INFO] Ldap search completed successfully.
```

184 changes: 0 additions & 184 deletions Test.java

This file was deleted.

41 changes: 41 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>net.unicon</groupId>
<artifactId>java-ldap-keystore-test</artifactId>
<version>0.0.1</version>
<name>Java LDAP Keystore Test Utility</name>
<packaging>jar</packaging>
<description>Java CLI utility to execute LDAP connections.</description>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
<version>1.4.3.RELEASE</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>1.4.3.RELEASE</version>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
</project>
Loading

0 comments on commit 410fe72

Please sign in to comment.