Add support for ldaps:// urls. (Fix for SEC-146).
This commit is contained in:
+6
@@ -40,6 +40,12 @@ public class DefaultInitialDirContextFactoryTests extends AbstractLdapServerTest
|
||||
|
||||
}
|
||||
|
||||
public void testSecureLdapUrlIsSupported() {
|
||||
idf = new DefaultInitialDirContextFactory("ldaps://localhost/dc=acegisecurity,dc=org");
|
||||
assertEquals("dc=acegisecurity,dc=org", idf.getRootDn());
|
||||
}
|
||||
|
||||
|
||||
public void testConnectionFailure() throws Exception {
|
||||
// Use the wrong port
|
||||
idf = new DefaultInitialDirContextFactory("ldap://localhost:60389");
|
||||
|
||||
Reference in New Issue
Block a user