Crates.io | ldap-test-server-cli |
lib.rs | ldap-test-server-cli |
version | 0.1.2 |
source | src |
created_at | 2023-03-30 11:03:11.318933 |
updated_at | 2024-11-10 20:29:47.237268 |
description | Command line for running OpenLDAP server for testing |
homepage | |
repository | https://gitlab.com/mateuszkj/ldap-test-server |
max_upload_size | |
id | 824969 |
size | 47,442 |
This tool allow to start local OpenLDAP (slapd) server for integration tests.
OpenLDAP server is created in temporary directory and uses random free port.
Deepness (Ubuntu)
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y slapd ldap-utils openssl
sudo systemctl stop slapd
sudo systemctl disable slapd
sudo ln -s /etc/apparmor.d/usr.sbin.slapd /etc/apparmor.d/disable/
sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.slapd
Install via cargo
cargo install ldap-test-server-cli
ldap-test-server-cli -b "dc=planetexpress,dc=com"
You can find in example directory
Usage: ldap-test-server-cli [OPTIONS]
Options:
-b, --base-dn <BASE_DN> Base DN [default: dc=planetexpress,dc=com]
--bind-addr <BIND_ADDR> Bind ldap server on address
--port <PORT> Port of ldap server
--ssl-port <SSL_PORT> Port of ldaps server
-s, --schema-dir <SCHEMA_DIR> Directory of ldif files with schema which be installed in database 0
-d, --data-dir <DATA_DIR> Directory of ldif files with data which be installed in database 1
-h, --help Print help
-V, --version Print version
Licensed under either of: