Skip to content

Commit 5c77d91

Browse files
author
Santiago Gala
committed
In FIPS-mode, run ApacheDS without FIPS
1 parent a0f46b4 commit 5c77d91

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

core/src/main/groovy/noe/server/ApacheDS.groovy

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,16 @@ abstract class ApacheDS extends ServerAbstract {
5252

5353
portsAvailable()
5454
CmdCommand cmdCommand = new CmdBuilder<>(start).setWorkDir(new File(apacheDSBin)).build()
55+
Map cmdProps = cmdCommand.getEnvProperties()
56+
if(platform.isFips()) {
57+
//ApacheDS won't start with FIPS
58+
def opts = cmdProps.getOrDefault("JAVA_OPTS","")
59+
if(opts.size()>0) {
60+
opts+=' '
61+
}
62+
opts+='-Dcom.redhat.fips=false'
63+
cmdProps.put("JAVA_OPTS", opts)
64+
}
5565
process = Cmd.startProcess(cmdCommand)
5666
process.consumeProcessOutput(System.out, System.err)
5767
waitForStartComplete()

0 commit comments

Comments
 (0)