return proper home dir from userdb
This commit is contained in:
parent
09cf75eccb
commit
659e14a87d
12
.gitea/workflows/container.yaml
Normal file
12
.gitea/workflows/container.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
name: Build Multiarch Container Image
|
||||||
|
on: [push]
|
||||||
|
jobs:
|
||||||
|
call-reusable-workflow:
|
||||||
|
uses: container/multiarch-build-workflow/.gitea/workflows/build.yaml@main
|
||||||
|
with:
|
||||||
|
repository: ${{ gitea.repository }}
|
||||||
|
ref_name: ${{ gitea.ref_name }}
|
||||||
|
sha: ${{ gitea.sha }}
|
||||||
|
registry_url: ${{ secrets.REGISTRY_URL }}
|
||||||
|
registry_user: ${{ secrets.REGISTRY_USER }}
|
||||||
|
registry_pw: ${{ secrets.REGISTRY_PW }}
|
@ -1,11 +0,0 @@
|
|||||||
pipeline:
|
|
||||||
publish-docker-image:
|
|
||||||
image: plugins/kaniko
|
|
||||||
settings:
|
|
||||||
repo: docker.io/thallian/dovecot
|
|
||||||
tags: latest,${CI_COMMIT_SHA:0:8},${CI_COMMIT_TAG=pre}
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
username:
|
|
||||||
from_secret: DOCKER_USER
|
|
||||||
password:
|
|
||||||
from_secret: DOCKER_PW
|
|
@ -1,4 +1,4 @@
|
|||||||
FROM docker.io/alpine:3.18 as builder
|
FROM docker.io/alpine:3.19 as builder
|
||||||
|
|
||||||
RUN apk --no-cache add \
|
RUN apk --no-cache add \
|
||||||
rpcgen \
|
rpcgen \
|
||||||
@ -56,7 +56,7 @@ RUN cd /tmp/pigeonhole && \
|
|||||||
--disable-static && \
|
--disable-static && \
|
||||||
make && make install
|
make && make install
|
||||||
|
|
||||||
FROM docker.io/thallian/confd-env:3.18-3.1.5.0
|
FROM docker.io/thallian/confd-env:3.19-3.1.6.2
|
||||||
|
|
||||||
COPY --from=builder /lib/dovecot/ /lib/dovecot/
|
COPY --from=builder /lib/dovecot/ /lib/dovecot/
|
||||||
COPY --from=builder /libexec/dovecot/ /libexec/dovecot/
|
COPY --from=builder /libexec/dovecot/ /libexec/dovecot/
|
@ -36,7 +36,7 @@ function auth_userdb_lookup(req)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if userJson[1].username == req.username then
|
if userJson[1].username == req.username then
|
||||||
return dovecot.auth.USERDB_RESULT_OK, "uid=vmail gid=vmail home=/var/lib/vmail/mail/%n"
|
return dovecot.auth.USERDB_RESULT_OK, "uid=vmail gid=vmail home=/var/lib/vmail/mail/" .. req.username
|
||||||
end
|
end
|
||||||
|
|
||||||
return dovecot.auth.USERDB_RESULT_USER_UNKNOWN, "no such user"
|
return dovecot.auth.USERDB_RESULT_USER_UNKNOWN, "no such user"
|
||||||
|
Loading…
Reference in New Issue
Block a user