public class LdapAuthBeanTester extends Object
Constructor and Description |
---|
LdapAuthBeanTester() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] sa)
Run this method to try and test configuration settings for LdapAuthBeans,
or to troubleshoot.
|
public static void main(String[] sa) throws IOException
Passwords typed on the command line are inherently not secure, so only use this program when the computer it is run on is secured and where your command line may not be observed, directly or indirectly, by others.
Set the properties in a properties file to match your LDAP security and Directory Information Tree structure and use this program to check everything between the LdapAuthBean and your LDAP server. You then know the exact settings to use for an LdapAuthBean that you can plug into AuthBeanMultiplexer.
Run with no arguments to see required syntax.
The property file may contain any of the following properties, which exactly match the corresponding setter methods in this class.
'javax.net.ssl.trustStore'.
- startTls. Takes a boolean value according to
method java.util.Boolean.parseBoolean.
- roleSchemaValuePattern. Correponds to method
setRoleSchemaValuePatternString
- accessValuePattern. Correponds to method
setAccessValuePatternString
- ldapPort
- securityMechanism
- ldapHost
- principalTemplate
- initialContextFactory
- saslRealm
- parentDn
- rdnAttribute
- rolesSchemaAttribute
- accessAttribute
The file sample/ldap-exerciser.properties in the HyperSQL distribution may be used as a template or example.
IOException
Copyright �� 2001 - 2013 HSQL Development Group.