[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: Text File MGNLLDAP-40.pom.patch     Text File Tester.java    
Sub-Tasks:
Key
Summary
Type
Status
Assignee
MGNLLDAP-44 Split build of the ldap module and it... Sub-task Closed Magnolia International  
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.
It's big compared to the original jar, although 500k seems acceptable. Unfortunately, the shade-plugin currently seems to require changing the scope of needed dependencies to :compile, which is undesirable for the bundle. See MSHADE-89.

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.

Generated at Mon Feb 12 02:20:59 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.