--- LdapServerImpl.old.jav 2006-01-29 17:28:06.000000000 +0100 +++ LdapServerImpl.new.java 2006-01-29 17:27:48.000000000 +0100 @@ -87,7 +87,7 @@ if (url.startsWith("ldaps")) { // Handle SSL connections // remove the 's' from "ldaps" - url = "ldap" + url.substring(5); + url.replaceAll("ldaps:", "ldap:"); this.env.put(Context.SECURITY_PROTOCOL,"ssl"); }