-
Notifications
You must be signed in to change notification settings - Fork 70
Home
battosai30 edited this page Nov 20, 2020
·
5 revisions
Welcome to the ldapcherry wiki!
apk update
apk add python3 python3-dev build-base openldap-dev git
git clone https://github.com/kakwa/ldapcherry && cd ldapcherry
export SYSCONFDIR=/etc && export DATAROOTDIR=/usr/share/
python3 setup.py install
vi /etc/ldapcherry/ldapcherry.ini
vi /etc/ldapcherry/roles.yml
vi /etc/ldapcherry/attributes.yml
ldapcherryd -c /etc/ldapcherry/ldapcherry.ini -D &
If you want to run it as a service, create init.d file :
vi /etc/init.d/ldapcherry
Paste this in :
#!/sbin/openrc-run
command="/usr/bin/ldapcherryd"
supervisor="supervise-daemon"
command_background="true"
command_args="-c /etc/ldapcherry/ldapcherry.ini -D"
pidfile=/var/run/ldapcherry.pid
name="LDAP Cherry Daemon"
description="LDAP Cherry is so cool"
Make it executable :
chmod +x /etc/init.d/ldapcherry
You're done :)
You can run it with service ldapcherry start
and make it running on boot with rc-update add ldapcherry