ldap_config.sh Catastrophic error while running LDAP configuration

  • KM03262054
  • 02-Oct-2018
  • 14-Apr-2021

Summary

Changing from SSL to non-SSL LDAP configuration fails with the error "encountered a catastrophic error while running LDAP configuration. msg=: java.io.FileInputStream.open0(Native Method)"

Question

While changing from SSL to non-SSL LDAP configuration, the change appears to be working until the very end...

.

.

.
Are you sure? [Y] :
Saving LDAP configuration ...
encountered a catastrophic error while running LDAP configuration. msg=: java.io.FileInputStream.open0(Native Method)
java.io.FileInputStream.open(FileInputStream.java:195)
java.io.FileInputStream.<init>(FileInputStream.java:138)
java.io.FileInputStream.<init>(FileInputStream.java:93)
java.io.FileReader.<init>(FileReader.java:58)
com.opsware.ldap.configurator.LdapConfigurator.getFileContent(LdapConfigurator.java:366)
com.opsware.ldap.configurator.LdapConfigurator.setProperties(LdapConfigurator.java:435)
com.opsware.ldap.configurator.LdapConfigurator.rock_n_roll(LdapConfigurator.java:1311)
com.opsware.ldap.configurator.LdapConfigurator.main(LdapConfigurator.java:1323)

Answer

This is a defect were Changing from SSL to non-SSL where the previous "aaa.ldap.servercert.ca.fname" no longer exists on the filesystem throw this error.

There is a simple workaround on this if you can identify the filename of the server CA that is currently configured, and then simply create a file there so that ldap_config has something to load, that would allow you to move forward.

If you don't recall what the previously configured server CA file name please contact to Microfocus Support.