If you ever needed to use kanboard with FreeIPA LDAP, without too much config thanks to docker, you certainly realized that the official docker hub image for KanBoard doesn't work with LDAP in it.
Here it is ! Just follow the steps below.
- LDAP support
- Bind to the config.php file to easily edit it
Follow these steps to install docker, select your OS on the left.
Follow these steps to install docker-compose
Run git clone https://github.com/larueli/kanboard_freeipa_ldap.git
or download the whole project as a zip and unzip it in a folder we'll call kanboard_freeipa_ldap
.
In your ldap, create :
- a user only allowed to bind and search in the LDAP. Click here to see how to do it with FreeIPA
- a group for the users, you'll call
kanboard_users
. Only these users will be allowed to log in. - a group for the managers, you'll call
kanboard_managers
. These users will be allowed to create projects. - a group for the admins, you'll call
kanboard_admins
. These users will be allowed to manage all the KanBoard web app.
You must set up a link between kanboard_admins, kanboard_managers to kanboard_users to allow people in those groups to log in.
If you want to know more about the permissions in Kanboard, click here
You must edit several values inside the config.php :
LDAP_SERVER
: put the IP of your FreeIPA LDAP serverLDAP_USERNAME
: the full DN to the user used for the bindLDAP_PASSWORD
: the password of the user used for the bindLDAP_USER_BASE_DN
: Change the dcLDAP_USER_FILTER
: Change the name of the users group if you didn't called it kanboard_usersLDAP_GROUP_ADMIN_DN
: Change the dc and the name of the admins group if you didn't called it kanboard_adminsLDAP_GROUP_MANAGERS_DN
: Change the dc and the name of the managers group if you didn't called it kanboard_managers
Check this page to see all other LDAP vars. On the left you can see all the possibilities and explainations linked to LDAP in Kanboard (sync, filter, auth, groups, ...)
Make sure the following folders exists (used as volumes for docker-compose) :
- kanboard_data
- kanboard_plugins
- kanboard_ssl
Inside kanboard ssl put the SSL files (if you have them) :
- kanboard.crt
- kanboard.key
Run docker-compose up -d
inside the folder to start the whole system
Note : if you make any change to the config.php file, you have to restart the system with docker-compose restart -d
I am Ivann LARUELLE, engineering student in Networks & Telecommunications at the Université de Technologie de Troyes in France, which is a public engineering university.
This tool was made in collaboration with Jonas DOREL for the UTT Net Group, an non profit organization which aims to provide IT Service to all UTT students and student organizations.
Contact me for any issue : ivann.laruelle[at]gmail.com
You are free to download, use, modify, redistribute theses files. The only thing is that you must credit me and keep the header of the files.