diff options
author | pacien | 2019-02-27 22:22:36 +0100 |
---|---|---|
committer | pacien | 2019-02-27 22:30:05 +0100 |
commit | c13b5dd6956cf092f5b674b090e0f7c8c2a3ff4c (patch) | |
tree | 2321f0ebd4adbac59e8005d997a525374f858403 /conf.d | |
parent | 5a814cbe7196bf244a5124785c143c9057dc8444 (diff) | |
download | exim-c13b5dd6956cf092f5b674b090e0f7c8c2a3ff4c.tar.gz |
enable login auth method
Diffstat (limited to 'conf.d')
-rw-r--r-- | conf.d/070_authenticators.conf | 35 |
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 | 66 | virtual_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 | ||
76 | pam_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 | ||
86 | dovecot_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 | |||