Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-6823

Configuration initialization appears to be case-sensitive

    Details

    • Type: Bug
    • Status: Done
    • Priority: Major
    • Resolution: Not a defect
    • Affects Version/s: 7.0.0
    • Fix Version/s: Not applicable
    • Component/s: config
    • Labels:
      None
    • Story Points:
      0

      Description

      Steps to reproduce:

      • setup a server but don't start it
      • use offline dsconfig to enable the "BCrypt" password storage scheme (the storage scheme is actually called "Bcrypt"):
        $ ./bin/dsconfig set-plugin-prop --plugin-name "Password Policy Import" --set default-user-password-storage-scheme:BCrypt --set default-auth-password-storage-scheme:BCrypt --offline --no-prompt
        $ ./bin/dsconfig set-password-policy-prop --policy-name "Default Password Policy" --set default-password-storage-scheme:BCrypt --offline --no-prompt
        
      • start the server:
        $ ./bin/start-ds 
        [27/Nov/2019:12:19:47 +0100] category=CORE severity=NOTICE msgID=134 msg=ForgeRock Directory Services 7.0.0-SNAPSHOT (build 20191127110838, revision number 622f18e9872b5910ed3bc7e652a24f1965264701) starting up
        [27/Nov/2019:12:19:47 +0100] category=JVM severity=NOTICE msgID=21 msg=Installation Directory:  /home/matt/ds-pwd-storage-benchmarks/BCrypt@2
        [27/Nov/2019:12:19:47 +0100] category=JVM severity=NOTICE msgID=23 msg=Instance Directory:      /home/matt/ds-pwd-storage-benchmarks/BCrypt@2
        [27/Nov/2019:12:19:47 +0100] category=JVM severity=NOTICE msgID=17 msg=JVM Information: 1.8.0_232-ea-8u232-b09-0ubuntu1-b09 by Private Build, 64-bit architecture, 7449083904 bytes heap size
        [27/Nov/2019:12:19:47 +0100] category=JVM severity=NOTICE msgID=18 msg=JVM Host: localhost default/Janel_Criswell, running Linux 5.3.0-23-generic amd64, 33518235648 bytes physical memory size, number of processors available 8
        [27/Nov/2019:12:19:47 +0100] category=JVM severity=NOTICE msgID=19 msg=JVM Arguments: "-Dorg.opends.server.scriptName=start-ds"
        [27/Nov/2019:12:19:49 +0100] category=BACKEND severity=NOTICE msgID=513 msg=The database backend appData containing 0 entries has started
        [27/Nov/2019:12:19:49 +0100] category=CONFIG severity=ERROR msgID=245 msg=An error occurred while attempting to initialize an instance of class org.opends.server.plugins.PasswordPolicyImportPlugin as a Directory Server plugin using the information in configuration entry cn=Password Policy Import,cn=Plugins,cn=config: ConfigException: Auth password storage scheme cn=BCrypt,cn=Password Storage Schemes,cn=config referenced by the password policy import plugin is not configured for use in the server (PasswordPolicyImportPlugin.java:134 PasswordPolicyImportPlugin.java:87 PluginConfigManager.java:379 PluginConfigManager.java:341 DirectoryServer.java:1578 DirectoryServer.java:4146). This plugin will be disabled
        [27/Nov/2019:12:19:49 +0100] category=PROTOCOL severity=NOTICE msgID=276 msg=Started listening for new connections on Administration Connector 0.0.0.0:4444
        [27/Nov/2019:12:19:49 +0100] category=PROTOCOL severity=NOTICE msgID=276 msg=Started listening for new connections on LDAP 0.0.0.0:1389
        [27/Nov/2019:12:19:49 +0100] category=PROTOCOL severity=NOTICE msgID=276 msg=Started listening for new connections on HTTPS 0.0.0.0:8443
        [27/Nov/2019:12:19:49 +0100] category=PROTOCOL severity=NOTICE msgID=276 msg=Started listening for new connections on LDAPS 0.0.0.0:1636
        [27/Nov/2019:12:19:49 +0100] category=CORE severity=NOTICE msgID=135 msg=The Directory Server has started successfully
        [27/Nov/2019:12:19:49 +0100] category=CORE severity=NOTICE msgID=139 msg=The Directory Server has sent an alert notification generated by class org.opends.server.core.DirectoryServer (alert type org.opends.server.DirectoryServerStarted, alert ID org.opends.messages.core-135): The Directory Server has started successfully
        
      • Or perform an offline import:
        [27/11/2019:11:58:43 +0100] category=CORE seq=0 severity=SEVERE msg=An error occurred while attempting to initialize an instance of class org.opends.server.plugins.PasswordPolicyImportPlugin as a Directory Server plugin using the information in configuration entry cn=Password Policy Import,cn=Plugins,cn=config: ConfigException: Auth password storage scheme cn=BCrypt,cn=Password Storage Schemes,cn=config referenced by the password policy import plugin is not configured for use in the server (PasswordPolicyImportPlugin.java:134 PasswordPolicyImportPlugin.java:87 PluginConfigManager.java:379 PluginConfigManager.java:341 DirectoryServer.java:912 DirectoryServer.java:813 ImportLdif.java:550 ImportLdif.java:533 TaskToolHelper.java:311 ImportLdif.java:360 Utils.java:961 Utils.java:938 ImportLdif.java:205). This plugin will be disabled
        [27/11/2019:11:58:43 +0100] category=JVM seq=1 severity=INFO msg=ForgeRock Directory Services 7.0.0-SNAPSHOT (build 20191127110838, revision number 622f18e9872b5910ed3bc7e652a24f1965264701) starting up
        [27/11/2019:11:58:43 +0100] category=JVM seq=2 severity=INFO msg=Installation Directory:  /home/matt/ds-pwd-storage-benchmarks/BCrypt@1
        [27/11/2019:11:58:43 +0100] category=JVM seq=3 severity=INFO msg=Instance Directory:      /home/matt/ds-pwd-storage-benchmarks/BCrypt@1
        [27/11/2019:11:58:43 +0100] category=JVM seq=4 severity=INFO msg=JVM Information: 1.8.0_232-ea-8u232-b09-0ubuntu1-b09 by Private Build, 64-bit architecture, 7449083904 bytes heap size
        [27/11/2019:11:58:43 +0100] category=JVM seq=5 severity=INFO msg=JVM Host: localhost default/Janel_Criswell, running Linux 5.3.0-23-generic amd64, 33518235648 bytes physical memory size, number of processors available 8
        ...
        

      Sadly I'm unable to fix the problem with dsconfig because it does use the correct schema, so all changes are treated as no-ops because it thinks "BCrypt" is the same as "Bcrypt".

        Attachments

          Activity

            People

            • Assignee:
              matthew Matthew Swift
              Reporter:
              matthew Matthew Swift
              Dev Assignee:
              Matthew Swift
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: