Skip to content

DavidCaudill/code-sample

Repository files navigation

alt text Build Status

HPaccess

A Python utility to manage the admin account password and LDAP membership of the OA and the VCM

Prerequisites

  • Linux Ubuntu 14.04 server
  • Python 2.7

Installation

wget -O install.sh https://redacted/install.sh
chmod +x install.sh
sudo ./install.sh [venv]
# Note: venv is optional but recommended - if specified will install all packages in a Python virtual environment

Usage

Create required environment variables

export hpaccess_username=<'Your AD User'>
export hpaccess_password=<'Your AD Password'>
export hpaccess_admin_pass=<'New Admin Password for OAs and VCMs'>

Create Yaml config file

cp hpaccess_config.yaml.example ~/hpaccess_config.yaml
vim ~/hpaccess_config.yaml

Run the script

python src/main/python/HPaccess/hpaccess.py

Development Server Installation

Clone the repository

git clone https://redacted.git
cd HPaccess

Install packages and dependencies

chmod +x build.sh
sudo ./build.sh
source venv/bin/activate

Build the application

pyb -X

Link module for development

cd target/dist/HPaccess*/
python setup.py develop

Run unit tests

pyb run_unit_tests

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published