Before You Start
⚠️ Important: LDAP Server Hostname Resolution
If your LDAP server uses a fully qualified domain name (FQDN) that doesn't resolve via DNS, you must add it to your /etc/hosts file before installation. This is a critical step for LDAP/LDAPS connectivity.
Example: If your LDAP server is at ldaps://sspr-test-002.admingloves.com:636 but the hostname doesn't resolve, add the entry:
# Option 1: Using tee (recommended)
echo "172.17.0.4 sspr-test-002.admingloves.com" | sudo tee -a /etc/hosts
# Option 2: Using sudo with sh -c
sudo sh -c 'echo "172.17.0.4 sspr-test-002.admingloves.com" >> /etc/hosts'
Replace:
172.17.0.4 with your actual LDAP server IP address
sspr-test-002.admingloves.com with your actual LDAP server FQDN
Verify the entry was added:
cat /etc/hosts | grep sspr-test-002
ping sspr-test-002.admingloves.com
Important: If you plan to use the database.sql script during installation:
- Locate
database.sql in the installer directory.
- You must edit it before installation to set the password for the
admingloves_app user.
- Find the line:
CREATE USER IF NOT EXISTS 'admingloves_app'@'%' IDENTIFIED BY 'CHANGE_ME_PASSWORD';
- Replace
CHANGE_ME_PASSWORD with your desired password.
- Save the file. The installer will not proceed until you confirm you've edited this file.
- During installation, when prompted for database credentials, use the same username (
admingloves_app) and password you set in database.sql.
Step 1: Unpack the Installer
cd /tmp
unzip AdminGloves-Installer.zip
cd AdminGloves-Installer
Step 2: Run the Installer
chmod +x install-admingloves-New.sh
sudo bash install-admingloves-New.sh
Note: Always use bash to run the installer, not sh, as the script requires bash-specific features.
Step 3: Choose Installation Mode
The installer offers two modes:
Option 1: Full Installation (Auto)
Select 1. Full Installation (Auto - installs Java, MariaDB, WildFly)
This mode will:
- Automatically detect your Linux distribution (Debian/Ubuntu or RHEL-family)
- Install OpenJDK 21 from your distribution's package repository
- Install MariaDB server and client and start the service
- Download and install WildFly 38 to
/opt/wildfly
- Ask for your license files path
- Optionally run
database.sql (if you edited it first)
- Guide you through configuring database credentials, LDAP, AES key, and optionally LDAPS certificate
Note: This mode requires root privileges and will install system packages. Supported distributions: Debian, Ubuntu, RHEL, CentOS, Rocky Linux, AlmaLinux, Oracle Linux.
Option 2: Full Installation (Manual)
Select 2. Full Installation (Manual - prerequisites already installed)
Use this mode if you have already installed Java 21, MariaDB/MySQL, and WildFly manually. The installer will:
- Ask you to provide paths to Java, WildFly, and MySQL/MariaDB
- Validate that all prerequisites are present
- Ask for your license files path
- Optionally run
database.sql (if you edited it first)
- Guide you through configuring database credentials, LDAP, AES key, and optionally LDAPS certificate
Step 4: Database Setup
⚠️ Important: The application requires the AdminGlovesDB database to function properly. Running database.sql is strongly recommended.
During installation, the installer will ask if you want to run database.sql (defaults to yes):
- You must confirm you've edited the file - The installer will loop until you answer "yes" to confirm you've edited
database.sql to set the password.
- MariaDB root password:
- If you have a root password, enter it when prompted.
- If you don't have a root password set, leave it blank and press Enter. The installer will automatically use
sudo mysql -u root to connect.
- The script will create the database (
AdminGlovesDB) and user (admingloves_app) as defined in database.sql.
- When prompted for database credentials later, use:
- Database name:
AdminGlovesDB
- Username:
admingloves_app
- Password: The password you set in
database.sql
- JDBC URL:
jdbc:mariadb://localhost:3306/AdminGlovesDB? or jdbc:mysql://localhost:3306/AdminGlovesDB?
Step 5: Configure Credentials
The installer will ask if you want to configure (you can skip any step and do it later):
- Database credentials — JDBC URL, username, password
- Standard values: Database
AdminGlovesDB, Username admingloves_app
- Sample JDBC URLs:
jdbc:mysql://localhost:3306/AdminGlovesDB? or jdbc:mariadb://localhost:3306/AdminGlovesDB?
- Use the password you set in
database.sql
- LDAP/LDAPS connection details — LDAPS address, base DN, service account credentials
- Use the FQDN you added to
/etc/hosts (e.g., ldaps://sspr-test-002.admingloves.com:636)
- If the hostname doesn't resolve, use the IP address directly (e.g.,
ldaps://172.17.0.4:636)
- AES encryption key — can be auto-generated (recommended) or you can provide your own
- LDAPS certificate import (optional but recommended) — provide the path to your exported AD/LDAPS CA certificate file (.cer, .crt, or .pem) to import into Java's
cacerts trust store. This is required if Java doesn't trust your LDAPS server's certificate.
Step 6: Deploy the Application
After installation completes, deploy to WildFly:
cd /opt/wildfly/bin
sudo ./deploy.sh
Step 7: Start WildFly Service (if configured)
sudo systemctl start wildfly
sudo systemctl enable wildfly