diff --git a/images/lldap.png b/images/lldap.png new file mode 100644 index 0000000..2b6fd8a Binary files /dev/null and b/images/lldap.png differ diff --git a/template/apps/lldap.json b/template/apps/lldap.json new file mode 100644 index 0000000..12ba566 --- /dev/null +++ b/template/apps/lldap.json @@ -0,0 +1,46 @@ +{ + "categories": [ + "Tools", + "Productivity" + ], + "description": "This project is a lightweight authentication server that provides an opinionated, simplified LDAP interface for authentication.", + "env": [ + { + "default": "somesecretjwt", + "label": "LLDAP_JWT_SECRET", + "name": "LLDAP_JWT_SECRET" + }, + { + "default": "someadminpassword", + "label": "LLDAP_LDAP_USER_PASS", + "name": "LLDAP_LDAP_USER_PASS" + }, + { + "default": "dc=example,dc=com", + "label": "LLDAP_LDAP_BASE_DN", + "name": "LLDAP_LDAP_BASE_DN" + } + ], + "image_arm32": "nitnelave/lldap:stable-debian", + "image_arm64": "nitnelave/lldap:stable", + "image_amd64": "nitnelave/lldap:stable", + "logo": "https://raw.githubusercontent.com/pi-hosted/pi-hosted/master/images/lldap.png", + "name": "LLDAP", + "officialDoc": "https://github.com/nitnelave/lldap", + "preInstallScript": "install_lldap.sh", + "platform": "linux", + "ports": [ + "3890:3890/tcp", + "17170:17170/tcp" + ], + "restart_policy": "unless-stopped", + "title": "LLDAP", + "type": 1, + "volumes": [ + { + "bind": "/portainer/Files/AppData/Config/lldap/data", + "container": "/data" + } + ], + "webpage": "https://github.com/nitnelave/lldap" +} diff --git a/tools/install_lldap.sh b/tools/install_lldap.sh new file mode 100755 index 0000000..2a5248f --- /dev/null +++ b/tools/install_lldap.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +function error { + echo -e "\\e[91m$1\\e[39m" + exit 1 +} + +#function check_internet() { +# printf "Checking if you are online..." +# wget -q --spider http://github.com +# if [ $? -eq 0 ]; then +# echo "Online. Continuing." +# else +# error "Offline. Go connect to the internet then run the script again." +# fi +#} + +check_internet + +echo "Creating directories..." +sudo mkdir -p /portainer/Files/AppData/Config/lldap/data || error "Failed to create Maloja data directory!"