ldapweb: bump image and config

Change-Id: I5dd24c3dca84f191c45d453f31812f2091d3036c
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1622
Reviewed-by: q3k <q3k@hackerspace.pl>
This commit is contained in:
radex 2023-09-22 23:05:46 +02:00 committed by q3k
parent 97b5cd7b58
commit a7c36ed9f3

View file

@ -4,7 +4,7 @@ local kube = import "../../kube/kube.libsonnet";
{
cfg:: {
# Manually built from code.hackerspace.pl/informatic/ldap-web-public.
image: "registry.k0.hswaw.net/informatic/ldap-web:1633769899",
image: "registry.k0.hswaw.net/radex/ldap-web:1695415920",
webFQDN: error "webFQDN must be set!",
},
@ -35,7 +35,6 @@ local kube = import "../../kube/kube.libsonnet";
metadata+: ldapweb.metadata,
data: {
"config.py": |||
# -*- coding: utf-8 -*-
import flask_wtf
import wtforms
import secrets
@ -43,8 +42,18 @@ local kube = import "../../kube/kube.libsonnet";
secret_key = secrets.token_hex(32)
ldap_url = 'ldap://ldap.hackerspace.pl'
dn_format = "uid=%s,ou=people,dc=hackerspace,dc=pl"
dn_format = "uid=%s,ou=people,dc=hackerspace,dc=pl"
ldapweb_admin_group = 'cn=zarzad,ou=Group,dc=hackerspace,dc=pl'
ldap_base = 'dc=hackerspace,dc=pl'
ldap_people = 'ou=People,dc=hackerspace,dc=pl'
admin_groups = {
'Fatty': 'cn=fatty,ou=Group,dc=hackerspace,dc=pl',
'Starving': 'cn=starving,ou=Group,dc=hackerspace,dc=pl',
'Potato': 'cn=potato,ou=Group,dc=hackerspace,dc=pl',
}
admin_dn = 'cn=ldapweb,ou=Services,dc=hackerspace,dc=pl'
admin_pw = 'unused'
@ -59,6 +68,7 @@ local kube = import "../../kube/kube.libsonnet";
'telephonenumber': 'Phone Number',
'mobiletelephonenumber': 'Mobile Number',
'sshpublickey': 'SSH Public Key',
'mifareidhash': 'MIFARE ID Hash',
}
full_name = {
@ -73,8 +83,9 @@ local kube = import "../../kube/kube.libsonnet";
'telephonenumber',
'mobiletelephonenumber',
'sshpublickey',
'mifareidhash',
])
can_delete = can_add
can_delete = can_add
can_modify = can_add | set([
'givenname', 'surname', 'commonname', 'gecos',
])