[MGNLLDAP-40] Provide a simple tool to validate LDAP configuration Created: 26/Oct/10 Updated: 30/Nov/10 Resolved: 01/Nov/10 |
|
| Status: | Closed |
| Project: | LDAP Connector |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 1.4.1 |
| Type: | New Feature | Priority: | Major |
| Reporter: | Magnolia International | Assignee: | Philipp Bärfuss |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Σ Remaining Estimate: | Not Specified | Remaining Estimate: | Not Specified |
| Σ Time Spent: | Not Specified | Time Spent: | Not Specified |
| Σ Original Estimate: | Not Specified | Original Estimate: | Not Specified |
| Attachments: |
|
||||||||||
| Sub-Tasks: |
|
||||||||||
| Template: |
|
||||||||||
| Patch included: |
Yes
|
||||||||||
| Acceptance criteria: |
Empty
|
||||||||||
| Date of First Response: |
| Description |
|
It's quite tedious to validate an ldap configuration by modifying the configuration, restarting Magnolia and attempting to log a user in until "it works". A simple tool/cli application could help validating the configuration with less hassle. |
| Comments |
| Comment by Magnolia International [ 26/Oct/10 ] |
|
Here's a crude version of such a tool, which seems to do the job. |
| Comment by Magnolia International [ 26/Oct/10 ] |
|
Here's a patch for the pom which would create an extra standalone jar, executable and including the dependencies. There are quite a few transitive dependencies needed at runtime though, so asking the user to build a -classpath won't be very practical either. |
| Comment by Philipp Bärfuss [ 27/Oct/10 ] |
|
I think a runnable standalone jar can alternatively be built with the assembly plugin.
Would that solve the problem? |
| Comment by Magnolia International [ 27/Oct/10 ] |
|
Could be yeah, I'll check. The good thing with the shade plugin and the minimizeJar option is that it takes the jar down to 500k (instead of 12mb if blindly including all deps) |
| Comment by Magnolia International [ 01/Nov/10 ] |
|
The new magnolia-ldap-tester artifact is an executable jar, which can simply be executed with java -jar magnolia-ldap-tester-<version>.jar <LoginModule class name> <config.properties> <username> <password>; it contains (or should contain) all needed dependencies. It simulates a user login with the given credentials and configuration, outputs the main results, and logs everything else in magnolia-ldap-tester.log. |