feat: single user working with LDAP login
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
4de1ce0dc6
commit
6584780e0a
@ -17,13 +17,7 @@ passdb {
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
{{ if eq (getv "/single/user") "yes" }}
|
{{ if eq (getv "/ldap/enable" "") "yes"}}
|
||||||
userdb {
|
|
||||||
driver = static
|
|
||||||
args = uid=5000 gid=5000 home=/vmail/mail/single
|
|
||||||
}
|
|
||||||
{{ end }}
|
|
||||||
{{ if eq (getv "/ldap/enable") "yes"}}
|
|
||||||
passdb {
|
passdb {
|
||||||
driver = ldap
|
driver = ldap
|
||||||
args = /etc/dovecot/local.d/ldap.conf.ext
|
args = /etc/dovecot/local.d/ldap.conf.ext
|
||||||
@ -36,10 +30,18 @@ userdb {
|
|||||||
args = /etc/dovecot/local.d/ldap2.conf.ext
|
args = /etc/dovecot/local.d/ldap2.conf.ext
|
||||||
}
|
}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if eq (getv "/single/user/auth") "any" }}
|
{{ if eq (getv "/single/user" "") "yes" }}
|
||||||
|
userdb {
|
||||||
|
driver = static
|
||||||
|
args = uid=5000 gid=5000 home=/vmail/mail/single
|
||||||
|
}
|
||||||
passdb {
|
passdb {
|
||||||
driver = static
|
driver = static
|
||||||
|
{{ if eq (getv "/single/user/auth" "") "any" }}
|
||||||
args = nopassword=y
|
args = nopassword=y
|
||||||
|
{{ else }}
|
||||||
|
args = password=
|
||||||
|
{{ end }}
|
||||||
default_fields = userdb_home=/vmail/mail/single userdb_uid=5000 userdb_gid=5000
|
default_fields = userdb_home=/vmail/mail/single userdb_uid=5000 userdb_gid=5000
|
||||||
}
|
}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user