|
1 | | -# webmethods-integrationserver-wxpassword |
2 | | -Ensure non-default passwords |
| 1 | +# WxPassword |
| 2 | + |
| 3 | +Initial functionality is to change the passwords of the built-in users |
| 4 | +(Administrator, Replicator, Developer). The primary use-case is deployment |
| 5 | +in a container. |
| 6 | + |
| 7 | +## Usage |
| 8 | + |
| 9 | +Installing the package is all that needs to be done. The service |
| 10 | +`wx.password.pub:nonDefaultPasswordsForStandardAccounts` is defined |
| 11 | +as a start-up service and therefore gets executed automatically. |
| 12 | + |
| 13 | +### Specific passwords |
| 14 | + |
| 15 | +In a typical production deployment, the desired passwords need to |
| 16 | +be provide as environment variables. The naming convention is |
| 17 | +`SAG_WXPASSWORD_SET_<USERNAME>`. So for the `Administrator` account |
| 18 | +the variable `SAG_WXPASSWORD_SET_Administrator` must be defined. |
| 19 | + |
| 20 | +### Random passwords |
| 21 | + |
| 22 | +If no password is defined a random one will be generated and saved in |
| 23 | +clear text in the working directory. For each user a separate file will |
| 24 | +be created and its name matches the user name. |
| 25 | + |
| 26 | +**Intended only for |
| 27 | +non-production environments!** |
| 28 | + |
| 29 | +### Working directory |
| 30 | + |
| 31 | +The working directory needs to be provided as an environment variable |
| 32 | +(`SAG_WXPASSWORD_DIR`). If nothing is specified, the fall-back value |
| 33 | +is `$IS_HOME/config/WxPassword`. In both cases, the directory will |
| 34 | +be created, if it does not exist. If the creation fails, a |
| 35 | +`ServiceException` is thrown and now further activities performed. |
| 36 | + |
| 37 | +### Disable execution |
| 38 | + |
| 39 | +To disable the execution from the outside you need to create a semaphore |
| 40 | +file (name: `disable_WxPassword`) in the working directory. If this is |
| 41 | +found, WxPassword will effectively be completely disabled. |
| 42 | + |
| 43 | +## Getting Started |
| 44 | + |
| 45 | +You can use this package in multiple ways. |
| 46 | + |
| 47 | +1. Simply make use of the existing functionality |
| 48 | +1. Use it as a source of inspiration for your own development |
| 49 | +1. Contribute to WxPassword by adding new functionality and/or fixing bugs |
| 50 | + |
| 51 | +### Installing a Release |
| 52 | + |
| 53 | +This is the suitable approach, if you either just want to use WxPassword or use it as a starting point for |
| 54 | +your own development. |
| 55 | + |
| 56 | +* Download `WxPassword.zip` from the [latest release](https://github.com/SoftwareAG/webmethods-integrationserver-wxpassword/releases), place it into `$IS_HOME/replicate/inbound/`, and install via "Packages / Management / Install Inbound Releases" |
| 57 | + |
| 58 | +### Installation from Source |
| 59 | + |
| 60 | +- Prerequisite: You need "Local Service Development" installed (located in Designer preferences at "Software AG / Service Development / Local Service Development") |
| 61 | +- Get sources |
| 62 | + - Via Software AG Designer (no separate Git installation needed) |
| 63 | + - Open "Java" perspective |
| 64 | + - Click "Import projects" |
| 65 | + - Select "Git / Projects from Git" |
| 66 | + - Select "Clone URI" |
| 67 | + - Paste Git URI from green "Clone or download" button above |
| 68 | + - Adjust target directory to `<WORKSPACE>/WxPassword` |
| 69 | + - Confirm defaults on all further dialogues and finish the import |
| 70 | + - Via command line (requires local Git installation) |
| 71 | + - Go into Designer workspace (e.g. `/home/john/workspace105`) |
| 72 | + - Clone Git repository into new directory `git clone https://github.com/SoftwareAG/webmethods-integrationserver-wxpassword.git WxPassword` |
| 73 | + - Import as existing project into workspace |
| 74 | +- Activate package in Integration Server |
| 75 | + - If the "Service Development" perspective has not been active before you openend the "Java" perspective, you must quickly switch there and then directly back to "Java". This is needed to initialize the Local Service Development feature. |
| 76 | + - In the "Java" perspective right-click the project name and select "Move Project to IS Package" |
| 77 | + - Switch to the "Service Development" perspective and the WxPassword package should show up |
| 78 | +- Compile and frag package (required because for Java services neither the class files nor the frag files are versioned) |
| 79 | + - Open Command Promopt (`cmd.exe`) and go into `$IS_HOME/bin` directory |
| 80 | + - Execute the following commands |
| 81 | + ``` |
| 82 | + jcode makeall WxPassword |
| 83 | + jcode fragall WxPassword |
| 84 | + ``` |
3 | 85 |
|
4 | 86 |
|
5 | 87 | ------------------------------ |
|
0 commit comments