| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2007-2008 Sun Microsystems, Inc. |
| | | * Copyright 2007-2010 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.backends; |
| | | |
| | |
| | | import org.opends.server.loggers.debug.DebugTracer; |
| | | import org.opends.server.types.*; |
| | | import org.opends.server.util.CertificateManager; |
| | | import org.opends.server.util.SetupUtils; |
| | | import org.opends.server.util.Validator; |
| | | |
| | | |
| | |
| | | private static String getADSCertificateSubjectDN() |
| | | throws UnknownHostException |
| | | { |
| | | String hostname = |
| | | java.net.InetAddress.getLocalHost().getCanonicalHostName(); |
| | | return "cn=" + Rdn.escapeValue(hostname) + ",O=OpenDS Certificate"; |
| | | String hostName = |
| | | SetupUtils.getHostNameForCertificate(DirectoryServer.getServerRoot()); |
| | | return "cn=" + Rdn.escapeValue(hostName) + ",O=OpenDS Certificate"; |
| | | } |
| | | |
| | | /** |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public void preloadEntryCache() throws UnsupportedOperationException { |
| | | throw new UnsupportedOperationException("Operation not supported."); |
| | | } |