diff -Naur src/com/openexchange/umin.orig/OXUsermin.java src/com/openexchange/umin/OXUsermin.java --- src/com/openexchange/umin.orig/OXUsermin.java 2007-01-03 16:38:14.000000000 +0100 +++ src/com/openexchange/umin/OXUsermin.java 2007-01-03 17:35:07.000000000 +0100 @@ -404,7 +404,10 @@ Hashtable env = new Hashtable(4); env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory"); - env.put(Context.PROVIDER_URL, "ldap://"+host+":"+port+"/"+baseDN); + if (host.startsWith("ldaps://")) { + env.put("java.naming.ldap.factory.socket", "com.openexchange.tools.ssl.TrustAllSSLSocketFactory"); + } + env.put(Context.PROVIDER_URL, host+":"+port+"/"+baseDN); env.put(Context.SECURITY_AUTHENTICATION,"simple"); env.put(Context.SECURITY_PRINCIPAL, bindDN); env.put(Context.SECURITY_CREDENTIALS, bindPW);