summaryrefslogtreecommitdiff
path: root/conf.d/070_authenticators.conf
diff options
context:
space:
mode:
Diffstat (limited to 'conf.d/070_authenticators.conf')
-rw-r--r--conf.d/070_authenticators.conf35
1 files changed, 29 insertions, 6 deletions
diff --git a/conf.d/070_authenticators.conf b/conf.d/070_authenticators.conf
index f64796b..1118501 100644
--- a/conf.d/070_authenticators.conf
+++ b/conf.d/070_authenticators.conf
@@ -62,9 +62,32 @@ dovecot_plain:
62# password are $auth1 and $auth2. Apart from that you can use the same 62# password are $auth1 and $auth2. Apart from that you can use the same
63# server_condition setting for both authenticators. 63# server_condition setting for both authenticators.
64 64
65#LOGIN: 65.ifdef USERLIST
66# driver = plaintext 66virtual_login:
67# server_set_id = $auth1 67 driver = plaintext
68# server_prompts = <| Username: | Password: 68 public_name = LOGIN
69# server_condition = Authentication is not yet configured 69 server_prompts = Username:: : Password::
70# server_advertise_condition = ${if def:tls_in_cipher } 70 server_set_id = $auth1
71 server_condition = ${if crypteq{$auth2}{${lookup{$auth1}lsearch{USERLIST}}} {yes}{no}}
72 server_advertise_condition = ${if ={587}{$interface_port} {yes}{no}}
73.endif
74
75.ifdef ENABLE_PAM_AUTH
76pam_login:
77 driver = plaintext
78 public_name = LOGIN
79 server_prompts = Username:: : Password::
80 server_set_id = $auth1
81 server_condition = ${if pam{$auth1:${sg{$auth2}{:}{::}}} {yes}{no}}
82 server_advertise_condition = ${if ={587}{$interface_port} {yes}{no}}
83.endif
84
85.ifdef DOVECOT_AUTH_SOCKET
86dovecot_login:
87 driver = dovecot
88 public_name = LOGIN
89 server_set_id = $auth1
90 server_socket = DOVECOT_AUTH_SOCKET
91 server_advertise_condition = ${if ={587}{$interface_port} {yes}{no}}
92.endif
93