forked from Deuxfleurs/bottin
Add ldap clients to image
This commit is contained in:
parent
40d0e3d837
commit
29996fa2fc
3 changed files with 337 additions and 5 deletions
|
@ -1,4 +1,6 @@
|
||||||
FROM scratch
|
FROM alpine:3.14
|
||||||
|
|
||||||
|
RUN apk add --no-cache openldap-clients
|
||||||
|
|
||||||
ADD bottin.static /bottin
|
ADD bottin.static /bottin
|
||||||
|
|
||||||
|
|
8
Makefile
8
Makefile
|
@ -1,6 +1,6 @@
|
||||||
BIN=bottin
|
BIN=bottin
|
||||||
SRC=main.go ssha.go util.go acl.go read.go write.go memberof.go
|
SRC=main.go ssha.go util.go acl.go read.go write.go memberof.go
|
||||||
DOCKER=lxpz/bottin_amd64
|
DOCKER=192.168.6.10:5000/bottin
|
||||||
|
|
||||||
all: $(BIN)
|
all: $(BIN)
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ $(BIN).static: $(SRC)
|
||||||
CGO_ENABLED=0 GOOS=linux go build -a -v -o $(BIN).static
|
CGO_ENABLED=0 GOOS=linux go build -a -v -o $(BIN).static
|
||||||
|
|
||||||
docker: $(BIN).static
|
docker: $(BIN).static
|
||||||
docker build -t $(DOCKER):$(TAG) .
|
docker build -t $(DOCKER):latest .
|
||||||
docker push $(DOCKER):$(TAG)
|
# docker push $(DOCKER):$(TAG)
|
||||||
docker tag $(DOCKER):$(TAG) $(DOCKER):latest
|
# docker tag $(DOCKER):$(TAG) $(DOCKER):latest
|
||||||
docker push $(DOCKER):latest
|
docker push $(DOCKER):latest
|
||||||
|
|
330
ldif/complete.ldif
Normal file
330
ldif/complete.ldif
Normal file
|
@ -0,0 +1,330 @@
|
||||||
|
# LDIF Export for dc=earthnet,dc=local
|
||||||
|
# Server: ldap (ldap)
|
||||||
|
# Search Scope: sub
|
||||||
|
# Search Filter: (objectClass=*)
|
||||||
|
# Total Entries: 30
|
||||||
|
#
|
||||||
|
# Generated by phpLDAPadmin (http://phpldapadmin.sourceforge.net) on February 8, 2022 7:42 pm
|
||||||
|
# Version: 1.2.5
|
||||||
|
|
||||||
|
version: 1
|
||||||
|
|
||||||
|
# Entry 1: dc=earthnet,dc=local
|
||||||
|
dn: dc=earthnet,dc=local
|
||||||
|
dc: earthnet
|
||||||
|
objectclass: top
|
||||||
|
objectclass: domain
|
||||||
|
|
||||||
|
# Entry 2: ou=Groups,dc=earthnet,dc=local
|
||||||
|
dn: ou=Groups,dc=earthnet,dc=local
|
||||||
|
objectclass: top
|
||||||
|
objectclass: organizationalunit
|
||||||
|
ou: Groups
|
||||||
|
|
||||||
|
# Entry 3: cn=admin,ou=Groups,dc=earthnet,dc=local
|
||||||
|
dn: cn=admin,ou=Groups,dc=earthnet,dc=local
|
||||||
|
cn: admin
|
||||||
|
objectclass: top
|
||||||
|
objectclass: group
|
||||||
|
member: uid=simon.beck,ou=People,dc=earthnet,dc=local
|
||||||
|
member: uid=admin,ou=People,dc=earthnet,dc=local
|
||||||
|
|
||||||
|
# Entry 4: cn=bookstack,ou=Groups,dc=earthnet,dc=local
|
||||||
|
dn: cn=bookstack,ou=Groups,dc=earthnet,dc=local
|
||||||
|
cn: bookstack
|
||||||
|
objectclass: top
|
||||||
|
objectclass: group
|
||||||
|
member: uid=simon.beck,ou=People,dc=earthnet,dc=local
|
||||||
|
member: uid=regula.trueb,ou=People,dc=earthnet,dc=local
|
||||||
|
|
||||||
|
# Entry 5: cn=default-roles-master,ou=Groups,dc=earthnet,dc=local
|
||||||
|
dn: cn=default-roles-master,ou=Groups,dc=earthnet,dc=local
|
||||||
|
cn: default-roles-master
|
||||||
|
objectclass: top
|
||||||
|
objectclass: group
|
||||||
|
member: cn=empty-membership-placeholder
|
||||||
|
member: uid=replication test,ou=People,dc=earthnet,dc=local
|
||||||
|
|
||||||
|
# Entry 6: cn=gitea,ou=Groups,dc=earthnet,dc=local
|
||||||
|
dn: cn=gitea,ou=Groups,dc=earthnet,dc=local
|
||||||
|
cn: gitea
|
||||||
|
objectclass: top
|
||||||
|
objectclass: group
|
||||||
|
member: uid=Dixit Nemesis,ou=People,dc=earthnet,dc=local
|
||||||
|
member: uid=matthias.luppi,ou=People,dc=earthnet,dc=local
|
||||||
|
member: uid=simon.beck,ou=People,dc=earthnet,dc=local
|
||||||
|
|
||||||
|
# Entry 7: cn=grafana,ou=Groups,dc=earthnet,dc=local
|
||||||
|
dn: cn=grafana,ou=Groups,dc=earthnet,dc=local
|
||||||
|
cn: grafana
|
||||||
|
objectclass: top
|
||||||
|
objectclass: group
|
||||||
|
member: uid=simon.beck,ou=People,dc=earthnet,dc=local
|
||||||
|
|
||||||
|
# Entry 8: cn=graylog,ou=Groups,dc=earthnet,dc=local
|
||||||
|
dn: cn=graylog,ou=Groups,dc=earthnet,dc=local
|
||||||
|
cn: graylog
|
||||||
|
objectclass: top
|
||||||
|
objectclass: group
|
||||||
|
member: uid=simon.beck,ou=People,dc=earthnet,dc=local
|
||||||
|
|
||||||
|
# Entry 9: cn=hostsigner,ou=Groups,dc=earthnet,dc=local
|
||||||
|
dn: cn=hostsigner,ou=Groups,dc=earthnet,dc=local
|
||||||
|
cn: hostsigner
|
||||||
|
objectclass: top
|
||||||
|
objectclass: group
|
||||||
|
member: uid=hostsigner,ou=People,dc=earthnet,dc=local
|
||||||
|
|
||||||
|
# Entry 10: cn=jellyfin,ou=Groups,dc=earthnet,dc=local
|
||||||
|
dn: cn=jellyfin,ou=Groups,dc=earthnet,dc=local
|
||||||
|
cn: jellyfin
|
||||||
|
objectclass: top
|
||||||
|
objectclass: group
|
||||||
|
member: uid=simon.beck,ou=People,dc=earthnet,dc=local
|
||||||
|
member: uid=regula.trueb,ou=People,dc=earthnet,dc=local
|
||||||
|
member: uid=john.lemon,ou=People,dc=earthnet,dc=local
|
||||||
|
member: uid=Dixit Nemesis,ou=People,dc=earthnet,dc=local
|
||||||
|
member: uid=joel.fluri,ou=People,dc=earthnet,dc=local
|
||||||
|
|
||||||
|
# Entry 11: cn=komga,ou=Groups,dc=earthnet,dc=local
|
||||||
|
dn: cn=komga,ou=Groups,dc=earthnet,dc=local
|
||||||
|
cn: komga
|
||||||
|
objectclass: top
|
||||||
|
objectclass: group
|
||||||
|
member: uid=simon.beck,ou=People,dc=earthnet,dc=local
|
||||||
|
|
||||||
|
# Entry 12: cn=mail,ou=Groups,dc=earthnet,dc=local
|
||||||
|
dn: cn=mail,ou=Groups,dc=earthnet,dc=local
|
||||||
|
cn: mail
|
||||||
|
objectclass: top
|
||||||
|
objectclass: group
|
||||||
|
member: uid=simon.beck,ou=People,dc=earthnet,dc=local
|
||||||
|
member: uid=mail user,ou=People,dc=earthnet,dc=local
|
||||||
|
member: uid=rsom,ou=People,dc=earthnet,dc=local
|
||||||
|
member: uid=john.lemon,ou=People,dc=earthnet,dc=local
|
||||||
|
|
||||||
|
# Entry 13: cn=offline_access,ou=Groups,dc=earthnet,dc=local
|
||||||
|
dn: cn=offline_access,ou=Groups,dc=earthnet,dc=local
|
||||||
|
cn: offline_access
|
||||||
|
objectclass: top
|
||||||
|
objectclass: group
|
||||||
|
member: cn=empty-membership-placeholder
|
||||||
|
member: uid=rsom,ou=People,dc=earthnet,dc=local
|
||||||
|
member: uid=hostsigner,ou=People,dc=earthnet,dc=local
|
||||||
|
member: uid=admin,ou=People,dc=earthnet,dc=local
|
||||||
|
member: uid=test,ou=People,dc=earthnet,dc=local
|
||||||
|
member: uid=test.user,ou=People,dc=earthnet,dc=local
|
||||||
|
member: uid=kid.gamer,ou=People,dc=earthnet,dc=local
|
||||||
|
member: uid=yannick.bammert,ou=People,dc=earthnet,dc=local
|
||||||
|
|
||||||
|
# Entry 14: cn=reader,ou=Groups,dc=earthnet,dc=local
|
||||||
|
dn: cn=reader,ou=Groups,dc=earthnet,dc=local
|
||||||
|
cn: reader
|
||||||
|
objectclass: top
|
||||||
|
objectclass: group
|
||||||
|
member: uid=simon.beck,ou=People,dc=earthnet,dc=local
|
||||||
|
|
||||||
|
# Entry 15: cn=seafile,ou=Groups,dc=earthnet,dc=local
|
||||||
|
dn: cn=seafile,ou=Groups,dc=earthnet,dc=local
|
||||||
|
cn: seafile
|
||||||
|
objectclass: top
|
||||||
|
objectclass: group
|
||||||
|
member: uid=simon.beck,ou=People,dc=earthnet,dc=local
|
||||||
|
|
||||||
|
# Entry 16: cn=synapse,ou=Groups,dc=earthnet,dc=local
|
||||||
|
dn: cn=synapse,ou=Groups,dc=earthnet,dc=local
|
||||||
|
cn: synapse
|
||||||
|
objectclass: top
|
||||||
|
objectclass: group
|
||||||
|
member: uid=Dixit Nemesis,ou=People,dc=earthnet,dc=local
|
||||||
|
member: uid=dimension dimension,ou=People,dc=earthnet,dc=local
|
||||||
|
member: uid=matthias.luppi,ou=People,dc=earthnet,dc=local
|
||||||
|
member: uid=regula.trueb,ou=People,dc=earthnet,dc=local
|
||||||
|
member: uid=john.lemon,ou=People,dc=earthnet,dc=local
|
||||||
|
member: uid=yannick.bammert,ou=People,dc=earthnet,dc=local
|
||||||
|
member: uid=simon.beck,ou=People,dc=earthnet,dc=local
|
||||||
|
|
||||||
|
# Entry 17: cn=uma_authorization,ou=Groups,dc=earthnet,dc=local
|
||||||
|
dn: cn=uma_authorization,ou=Groups,dc=earthnet,dc=local
|
||||||
|
cn: uma_authorization
|
||||||
|
objectclass: top
|
||||||
|
objectclass: group
|
||||||
|
member: cn=empty-membership-placeholder
|
||||||
|
member: uid=admin,ou=People,dc=earthnet,dc=local
|
||||||
|
member: uid=test,ou=People,dc=earthnet,dc=local
|
||||||
|
member: uid=test.user,ou=People,dc=earthnet,dc=local
|
||||||
|
member: uid=kid.gamer,ou=People,dc=earthnet,dc=local
|
||||||
|
member: uid=yannick.bammert,ou=People,dc=earthnet,dc=local
|
||||||
|
|
||||||
|
# Entry 18: ou=People,dc=earthnet,dc=local
|
||||||
|
dn: ou=People,dc=earthnet,dc=local
|
||||||
|
objectclass: top
|
||||||
|
objectclass: organizationalunit
|
||||||
|
ou: People
|
||||||
|
|
||||||
|
# Entry 19: uid=admin,ou=People,dc=earthnet,dc=local
|
||||||
|
dn: uid=admin,ou=People,dc=earthnet,dc=local
|
||||||
|
cn:
|
||||||
|
givenname:
|
||||||
|
objectclass: top
|
||||||
|
objectclass: inetOrgPerson
|
||||||
|
objectclass: organizationalPerson
|
||||||
|
objectclass: person
|
||||||
|
sn:
|
||||||
|
uid: admin
|
||||||
|
|
||||||
|
# Entry 20: uid=dimension dimension,ou=People,dc=earthnet,dc=local
|
||||||
|
dn: uid=dimension dimension,ou=People,dc=earthnet,dc=local
|
||||||
|
cn: dimension dimension
|
||||||
|
givenname: dimension
|
||||||
|
mail: dimension@earthnet.local
|
||||||
|
objectclass: top
|
||||||
|
objectclass: inetOrgPerson
|
||||||
|
objectclass: organizationalPerson
|
||||||
|
objectclass: person
|
||||||
|
sn: dimension
|
||||||
|
uid: dimension
|
||||||
|
uid: dimension dimension
|
||||||
|
userpassword: {SSHA512}wesLTWs6x6/p4kOsn3fJQiaN/hc3u0IFsv1AWJmESp5Y1RHUYlXhW
|
||||||
|
xSGAbtynCzRDn3uW0ihc3++GE1kT612s1vM4xW102Ek
|
||||||
|
|
||||||
|
# Entry 21: uid=Dixit Nemesis,ou=People,dc=earthnet,dc=local
|
||||||
|
dn: uid=Dixit Nemesis,ou=People,dc=earthnet,dc=local
|
||||||
|
cn: Lua Fluri
|
||||||
|
givenname: Lua
|
||||||
|
mail: DixitNemesis@earthnet.ch
|
||||||
|
objectclass: top
|
||||||
|
objectclass: inetOrgPerson
|
||||||
|
objectclass: organizationalPerson
|
||||||
|
objectclass: person
|
||||||
|
sn: Fluri
|
||||||
|
uid: DixitNemesis
|
||||||
|
uid: Dixit Nemesis
|
||||||
|
uid: dixit.nemesis
|
||||||
|
userpassword: {SSHA512}JZXzqjpHRZODVMBBusZRWbm05ot7FblEa7EXWME8+AOISbBnB7jss
|
||||||
|
lwia4PHniar5wG4NuLS3YC6BXcj7+Ef1AxoltzXDhx4
|
||||||
|
|
||||||
|
# Entry 22: uid=hostsigner,ou=People,dc=earthnet,dc=local
|
||||||
|
dn: uid=hostsigner,ou=People,dc=earthnet,dc=local
|
||||||
|
cn: hostsigner
|
||||||
|
givenname: hostsigner
|
||||||
|
objectclass: top
|
||||||
|
objectclass: inetOrgPerson
|
||||||
|
objectclass: organizationalPerson
|
||||||
|
objectclass: person
|
||||||
|
sn: hostsigner
|
||||||
|
uid: hostsigner
|
||||||
|
userpassword: {SSHA512}eQQPlm+LdMld6rOVzMdHYR54P4n2IEEKFHh51ovmfZQkJHYHciQTT
|
||||||
|
15/RlmZpCz/Ym1PgR8KmfH9t0i6ATMa+b3r2LaC4GZa
|
||||||
|
|
||||||
|
# Entry 23: uid=joel.fluri,ou=People,dc=earthnet,dc=local
|
||||||
|
dn: uid=joel.fluri,ou=People,dc=earthnet,dc=local
|
||||||
|
cn: Joel Fluri
|
||||||
|
givenname: Joel
|
||||||
|
mail: fluri.joel@gmail.com
|
||||||
|
objectclass: top
|
||||||
|
objectclass: inetOrgPerson
|
||||||
|
objectclass: organizationalPerson
|
||||||
|
objectclass: person
|
||||||
|
sn: Fluri
|
||||||
|
uid: joel.fluri
|
||||||
|
userpassword: {SSHA}a1zBFJT08ki+NhdV+WgWoDQrCSDRYU14Gog9bw==
|
||||||
|
|
||||||
|
# Entry 24: uid=john.lemon,ou=People,dc=earthnet,dc=local
|
||||||
|
dn: uid=john.lemon,ou=People,dc=earthnet,dc=local
|
||||||
|
cn: John Lemon
|
||||||
|
givenname: John
|
||||||
|
mail: john.lemon@earthnet.ch
|
||||||
|
objectclass: top
|
||||||
|
objectclass: inetOrgPerson
|
||||||
|
objectclass: organizationalPerson
|
||||||
|
objectclass: person
|
||||||
|
sn: Lemon
|
||||||
|
uid: john.lemon
|
||||||
|
userpassword: {SSHA512}1vkCNmm7u8yqGXauYdl83ycT5BLViD1RANG8H1cXozHFqsJk8O5p/
|
||||||
|
S39diDnW4KFV7Y1L9iMM6jDRDRIevLkulUCLxg6hyXb
|
||||||
|
|
||||||
|
# Entry 25: uid=mail user,ou=People,dc=earthnet,dc=local
|
||||||
|
dn: uid=mail user,ou=People,dc=earthnet,dc=local
|
||||||
|
cn: Mail User
|
||||||
|
givenname: mail
|
||||||
|
mail: mail.user@earthnet.ch
|
||||||
|
objectclass: top
|
||||||
|
objectclass: inetOrgPerson
|
||||||
|
objectclass: organizationalPerson
|
||||||
|
objectclass: person
|
||||||
|
sn: user
|
||||||
|
uid: mail.user
|
||||||
|
uid: mail user
|
||||||
|
userpassword: {SSHA512}/y+9GyIPnJFpUPxRbNK0H2VAG1MwImewEy7t7PbYPFJdlthpefdxg
|
||||||
|
hsOms/mpqcMitjQeREqKsBUE5B46362FsSA3lQ55YpRhnxVstJvis0lJDZo33IEIUuL33UBhfwI
|
||||||
|
|
||||||
|
# Entry 26: uid=matthias.luppi,ou=People,dc=earthnet,dc=local
|
||||||
|
dn: uid=matthias.luppi,ou=People,dc=earthnet,dc=local
|
||||||
|
cn: Matthias Luppi
|
||||||
|
givenname: Matthias
|
||||||
|
mail: matthias.luppi@earthnet.ch
|
||||||
|
objectclass: top
|
||||||
|
objectclass: inetOrgPerson
|
||||||
|
objectclass: organizationalPerson
|
||||||
|
objectclass: person
|
||||||
|
sn: Luppi
|
||||||
|
uid: matthias.luppi
|
||||||
|
userpassword: {SSHA512}XEslka1tvBXfeMmcKfXQuWi0/MHnQZuEjfiSzb0Xzq+m84mCQGnD6
|
||||||
|
CENUpERGFFz4gNEh9ZVHlRtUZYY3lzT07gWgynGLJx5
|
||||||
|
|
||||||
|
# Entry 27: uid=regula.trueb,ou=People,dc=earthnet,dc=local
|
||||||
|
dn: uid=regula.trueb,ou=People,dc=earthnet,dc=local
|
||||||
|
cn:: UmVndWxhIFRyw7xi
|
||||||
|
givenname: Regula
|
||||||
|
mail: regula.trueb@earthnet.ch
|
||||||
|
objectclass: top
|
||||||
|
objectclass: inetOrgPerson
|
||||||
|
objectclass: organizationalPerson
|
||||||
|
objectclass: person
|
||||||
|
sn:: VHLDvGI=
|
||||||
|
uid: regula.trueb
|
||||||
|
userpassword: {SSHA512}rj9jQDcpd9ebgSa/q+E2KbETMowgulsVYUFPRHwR9WcN3strV3WNF
|
||||||
|
tbIzJKvpCzLXD1jwwi3pUj2AHe3SlwF9aScGwE2wrQq
|
||||||
|
|
||||||
|
# Entry 28: uid=rsom,ou=People,dc=earthnet,dc=local
|
||||||
|
dn: uid=rsom,ou=People,dc=earthnet,dc=local
|
||||||
|
cn: rsom
|
||||||
|
givenname: R
|
||||||
|
mail: rsom@earthnet.ch
|
||||||
|
objectclass: top
|
||||||
|
objectclass: inetOrgPerson
|
||||||
|
objectclass: organizationalPerson
|
||||||
|
objectclass: person
|
||||||
|
sn: Som
|
||||||
|
uid: rsom
|
||||||
|
userpassword: {SSHA512}XDpUiDKXSAjqenBPpwdZaogox7s9SwmHuaO3X9Yf/EubKmBAsswOf
|
||||||
|
FTCeV++IaMlxoJ8uBWnnUUcl6B0TKLLZDjXAsFM8fJj
|
||||||
|
|
||||||
|
# Entry 29: uid=simon.beck,ou=People,dc=earthnet,dc=local
|
||||||
|
dn: uid=simon.beck,ou=People,dc=earthnet,dc=local
|
||||||
|
cn: Simon Beck
|
||||||
|
givenname: Simon
|
||||||
|
mail: simon.beck@earthnet.ch
|
||||||
|
objectclass: top
|
||||||
|
objectclass: inetOrgPerson
|
||||||
|
objectclass: organizationalPerson
|
||||||
|
objectclass: person
|
||||||
|
sn: Beck
|
||||||
|
uid: simon.beck
|
||||||
|
userpassword: {SSHA512}0II9QrOs6743o80XpOvypLUdKDfo+wrYbHuhIHLTEl3CvllWw1nDn
|
||||||
|
855nZAp5TyzThsOXzym2mQa5jLhlX4MZO4Jij4oBC5B2oF9u9/idkXkZL1Db955ZCYn2wtlxXWE
|
||||||
|
|
||||||
|
# Entry 30: uid=yannick.bammert,ou=People,dc=earthnet,dc=local
|
||||||
|
dn: uid=yannick.bammert,ou=People,dc=earthnet,dc=local
|
||||||
|
cn: Yannick Bammert
|
||||||
|
givenname: Yannick
|
||||||
|
mail: yan.bam@gmail.com
|
||||||
|
objectclass: top
|
||||||
|
objectclass: inetOrgPerson
|
||||||
|
objectclass: organizationalPerson
|
||||||
|
objectclass: person
|
||||||
|
sn: Bammert
|
||||||
|
uid: yannick.bammert
|
||||||
|
userpassword: {SSHA512}SgYMVqnVqI8xzrj5RzfZWKqYPOX6baW7b7fC4KUSfVb4vZPFvqumZ
|
||||||
|
Yo7JNSGDT3IN7zkVI59Wz9BTiS1DiPWPkO+ndLY/b1R
|
Loading…
Reference in a new issue