https://github.com/evolvedbinary/existdb-set-password
Set the password of an eXist-db user account
https://github.com/evolvedbinary/existdb-set-password
Last synced: 10 months ago
JSON representation
Set the password of an eXist-db user account
- Host: GitHub
- URL: https://github.com/evolvedbinary/existdb-set-password
- Owner: evolvedbinary
- License: gpl-3.0
- Created: 2023-10-01T20:34:49.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-01T21:51:40.000Z (over 2 years ago)
- Last Synced: 2024-04-24T12:23:47.010Z (about 2 years ago)
- Language: Java
- Size: 37.1 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eXist-db Set Password Utility
[](https://github.com/evolvedbinary/existdb-set-password/actions/workflows/ci.yml)
[](https://adoptopenjdk.net/)
[](https://www.gnu.org/licenses/gpl-3.0.html)
A utility that allows you to set the password of an eXist-db user account. It only requires access to the eXist-db on disk data folder and config file (`conf.xml`).
This can be useful if you are working with an eXist-db database, and you no longer know the password.
**NOTE** eXist-db must not be running when you execute this utility!
## Building from Source
```bash
git clone https://github.com/evolvedbinary/existdb-set-password.git
cd existdb-set-password
mvn clean package -P6
```
If you wish to build a version compatible with a different version of eXist-db, just replace the `6` in `-P6` with the major version of eXist-db that you need.
## Example - Set the password of the `admin` user
Assuming that `$EXIST_HOME` points to an exist-db 6.x.x installation where you wish to change the password of the Admin user.
```bash
existdb-set-password-cli/target/appassembly/bin/existdb-set-password.sh \
--existdb-version 6 \
--existdb-conf $EXIST_HOME/etc/conf.xml
--username admin --password MY-NEW-PASSWORD
```