mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Ludovic Poitou
29.21.2013 e3e7f2d28351c4d0c025facf83b0949ef64b89bf
Fix for OPENDJ-1129. Move the temp config file for JAAS / GSSAPI / Kerb login under instance/config.
CR-2231. Thanks Matt
1 files modified
7 ■■■■■ changed files
opends/src/server/org/opends/server/extensions/GSSAPISASLMechanismHandler.java 7 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/extensions/GSSAPISASLMechanismHandler.java
@@ -30,6 +30,7 @@
import static org.opends.messages.ExtensionMessages.*;
import static org.opends.server.config.ConfigConstants.CONFIG_DIR_NAME;
import static org.opends.server.loggers.ErrorLogger.*;
import static org.opends.server.loggers.debug.DebugLogger.*;
import static org.opends.server.util.ServerConstants.*;
@@ -302,9 +303,9 @@
  private String configureLoginConfFile(
      GSSAPISASLMechanismHandlerCfg configuration)
  throws IOException, InitializationException {
    String configFileName;
    File tempFile = File.createTempFile("login", ".conf");
    configFileName = tempFile.getAbsolutePath();
    File tempFile = File.createTempFile("login", ".conf",
        getFileForPath(CONFIG_DIR_NAME));
    String configFileName = tempFile.getAbsolutePath();
    tempFile.deleteOnExit();
    BufferedWriter w = new BufferedWriter(new FileWriter(tempFile, false));
    w.write(getClass().getName() + " {");