add lldap (#132)
This commit is contained in:
committed by
GitHub
parent
29ece86686
commit
2884e0057e
BIN
images/lldap.png
Normal file
BIN
images/lldap.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 47 KiB |
46
template/apps/lldap.json
Normal file
46
template/apps/lldap.json
Normal file
@@ -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"
|
||||
}
|
||||
21
tools/install_lldap.sh
Executable file
21
tools/install_lldap.sh
Executable file
@@ -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!"
|
||||
Reference in New Issue
Block a user