Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-4521

add-user script fails when there is no domain configuration

XMLWordPrintable

    • Hide
      1. Use Galleaon utility to provision a custom wildfly installation:
      bin/galleon.sh install wildfly:current --layers=cloud-profile,core-server,core-tools --dir=../my-custom-wildfly-server
      
      cd ../my-custom-wildfly-server
      $ bin/add-user.sh
      
      What type of user do you wish to add?
       a) Management User (mgmt-users.properties)
       b) Application User (application-users.properties)
      (a):
      
       * Error *
      WFLYDM0023: No mgmt-users.properties files found.
      
      Show
      Use Galleaon utility to provision a custom wildfly installation: bin/galleon.sh install wildfly:current --layers=cloud-profile,core-server,core-tools --dir=../my-custom-wildfly-server cd ../my-custom-wildfly-server $ bin/add-user.sh What type of user do you wish to add? a) Management User (mgmt-users.properties) b) Application User (application-users.properties) (a): * Error * WFLYDM0023: No mgmt-users.properties files found.
    • Hide

      Specify -sc option to point the location of the configuration directory:

      $ ./bin/add-user.sh -sc standalone/configuration/
      
      Show
      Specify -sc option to point the location of the configuration directory: $ ./bin/add-user.sh -sc standalone/configuration/

      When you have a wildfly installation with no domain configuration directory (WILDFLY_HOME/domain) the bin/add-user.sh fails because it expects both (standalone and domain) configs to exists in order to update the properties file...

      It seems this behavior is fixed in the code implementation at org.jboss.as.domain.management.security.adduser.AddUser.java

              bstansbe@redhat.com Brian Stansberry
              rafael.soares Rafael Soares
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: