NobGit
public nobgit read

NobMail

Based on mailcow: dockerized

Languages

Repository composition by tracked source files.

PHP
PHP 49% JavaScript 35% HTML 9% CSS 4% Shell 2% Python 1% Lua 0% Perl 0% Ruby 0% SCSS 0%
Create file Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git

Trace

data/conf/dovecot/auth/passwd-verify.lua

Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.

passwd-verify.lua on main
Author Date Commit Line Code
FreddleSpl0it almost 3 years ago 788f03e

[Dovecot] remove passwd-verify.lua generation

Full commit hash
788f03e99337a7cc60474ba1d2ecdac0be552589
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
1
function auth_password_verify(request, password)
Open commit View diff
1 function auth_password_verify(request, password)
same change 788f03e

[Dovecot] remove passwd-verify.lua generation

Full commit hash
788f03e99337a7cc60474ba1d2ecdac0be552589
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
2
  if request.domain == nil then
Open commit View diff
2 if request.domain == nil then
same change 788f03e

[Dovecot] remove passwd-verify.lua generation

Full commit hash
788f03e99337a7cc60474ba1d2ecdac0be552589
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
3
    return dovecot.auth.PASSDB_RESULT_USER_UNKNOWN, "No such user"
Open commit View diff
3 return dovecot.auth.PASSDB_RESULT_USER_UNKNOWN, "No such user"
same change 788f03e

[Dovecot] remove passwd-verify.lua generation

Full commit hash
788f03e99337a7cc60474ba1d2ecdac0be552589
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
4
  end
Open commit View diff
4 end
same change 788f03e

[Dovecot] remove passwd-verify.lua generation

Full commit hash
788f03e99337a7cc60474ba1d2ecdac0be552589
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
5
Open commit View diff
5
FreddleSpl0it over 1 year ago 4ad2422

[Dovecot] Increase Timeout for HTTP Login Request

Full commit hash
4ad24228108aadf7a915bda7af0a3ef9ecffb92c
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
6
  local json = require "cjson"
Open commit View diff
6 local json = require "cjson"
same change 4ad2422

[Dovecot] Increase Timeout for HTTP Login Request

Full commit hash
4ad24228108aadf7a915bda7af0a3ef9ecffb92c
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
7
  local ltn12 = require "ltn12"
Open commit View diff
7 local ltn12 = require "ltn12"
same change 4ad2422

[Dovecot] Increase Timeout for HTTP Login Request

Full commit hash
4ad24228108aadf7a915bda7af0a3ef9ecffb92c
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
8
  local https = require "ssl.https"
Open commit View diff
8 local https = require "ssl.https"
same change 4ad2422

[Dovecot] Increase Timeout for HTTP Login Request

Full commit hash
4ad24228108aadf7a915bda7af0a3ef9ecffb92c
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
9
  https.TIMEOUT = 30
Open commit View diff
9 https.TIMEOUT = 30
FreddleSpl0it almost 3 years ago 788f03e

[Dovecot] remove passwd-verify.lua generation

Full commit hash
788f03e99337a7cc60474ba1d2ecdac0be552589
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
10
Open commit View diff
10
same change 788f03e

[Dovecot] remove passwd-verify.lua generation

Full commit hash
788f03e99337a7cc60474ba1d2ecdac0be552589
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
11
  local req = {
Open commit View diff
11 local req = {
same change 788f03e

[Dovecot] remove passwd-verify.lua generation

Full commit hash
788f03e99337a7cc60474ba1d2ecdac0be552589
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
12
    username = request.user,
Open commit View diff
12 username = request.user,
same change 788f03e

[Dovecot] remove passwd-verify.lua generation

Full commit hash
788f03e99337a7cc60474ba1d2ecdac0be552589
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
13
    password = password,
Open commit View diff
13 password = password,
same change 788f03e

[Dovecot] remove passwd-verify.lua generation

Full commit hash
788f03e99337a7cc60474ba1d2ecdac0be552589
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
14
    real_rip = request.real_rip,
Open commit View diff
14 real_rip = request.real_rip,
FreddleSpl0it over 1 year ago 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
15
    service = request.service
Open commit View diff
15 service = request.service
FreddleSpl0it almost 3 years ago 788f03e

[Dovecot] remove passwd-verify.lua generation

Full commit hash
788f03e99337a7cc60474ba1d2ecdac0be552589
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
16
  }
Open commit View diff
16 }
same change 788f03e

[Dovecot] remove passwd-verify.lua generation

Full commit hash
788f03e99337a7cc60474ba1d2ecdac0be552589
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
17
  local req_json = json.encode(req)
Open commit View diff
17 local req_json = json.encode(req)
FreddleSpl0it over 1 year ago 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
18
  local res = {}
Open commit View diff
18 local res = {}
same change 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
19
Open commit View diff
19
FreddleSpl0it almost 3 years ago 788f03e

[Dovecot] remove passwd-verify.lua generation

Full commit hash
788f03e99337a7cc60474ba1d2ecdac0be552589
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
20
  local b, c = https.request {
Open commit View diff
20 local b, c = https.request {
same change 788f03e

[Dovecot] remove passwd-verify.lua generation

Full commit hash
788f03e99337a7cc60474ba1d2ecdac0be552589
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
21
    method = "POST",
Open commit View diff
21 method = "POST",
same change 788f03e

[Dovecot] remove passwd-verify.lua generation

Full commit hash
788f03e99337a7cc60474ba1d2ecdac0be552589
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
22
    url = "https://nginx:9082",
Open commit View diff
22 url = "https://nginx:9082",
same change 788f03e

[Dovecot] remove passwd-verify.lua generation

Full commit hash
788f03e99337a7cc60474ba1d2ecdac0be552589
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
23
    source = ltn12.source.string(req_json),
Open commit View diff
23 source = ltn12.source.string(req_json),
same change 788f03e

[Dovecot] remove passwd-verify.lua generation

Full commit hash
788f03e99337a7cc60474ba1d2ecdac0be552589
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
24
    headers = {
Open commit View diff
24 headers = {
same change 788f03e

[Dovecot] remove passwd-verify.lua generation

Full commit hash
788f03e99337a7cc60474ba1d2ecdac0be552589
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
25
      ["content-type"] = "application/json",
Open commit View diff
25 ["content-type"] = "application/json",
same change 788f03e

[Dovecot] remove passwd-verify.lua generation

Full commit hash
788f03e99337a7cc60474ba1d2ecdac0be552589
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
26
      ["content-length"] = tostring(#req_json)
Open commit View diff
26 ["content-length"] = tostring(#req_json)
same change 788f03e

[Dovecot] remove passwd-verify.lua generation

Full commit hash
788f03e99337a7cc60474ba1d2ecdac0be552589
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
27
    },
Open commit View diff
27 },
same change 788f03e

[Dovecot] remove passwd-verify.lua generation

Full commit hash
788f03e99337a7cc60474ba1d2ecdac0be552589
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
28
    sink = ltn12.sink.table(res),
Open commit View diff
28 sink = ltn12.sink.table(res),
same change 788f03e

[Dovecot] remove passwd-verify.lua generation

Full commit hash
788f03e99337a7cc60474ba1d2ecdac0be552589
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
29
    insecure = true
Open commit View diff
29 insecure = true
same change 788f03e

[Dovecot] remove passwd-verify.lua generation

Full commit hash
788f03e99337a7cc60474ba1d2ecdac0be552589
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
30
  }
Open commit View diff
30 }
FreddleSpl0it over 1 year ago 4ad2422

[Dovecot] Increase Timeout for HTTP Login Request

Full commit hash
4ad24228108aadf7a915bda7af0a3ef9ecffb92c
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
31
Open commit View diff
31
FreddleSpl0it about 1 year ago 401b744

[Dovecot] return PASSDB_RESULT_PASSWORD_MISMATCH instead of PASSDB_RESULT_INTERNAL_FAILURE

Full commit hash
401b744808ff127b625001d8512d80d108d58a6a
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
32
  -- Returning PASSDB_RESULT_PASSWORD_MISMATCH will reset the user's auth cache entry.
Open commit View diff
32 -- Returning PASSDB_RESULT_PASSWORD_MISMATCH will reset the user's auth cache entry.
same change 401b744

[Dovecot] return PASSDB_RESULT_PASSWORD_MISMATCH instead of PASSDB_RESULT_INTERNAL_FAILURE

Full commit hash
401b744808ff127b625001d8512d80d108d58a6a
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
33
  -- Returning PASSDB_RESULT_INTERNAL_FAILURE keeps the existing cache entry,
Open commit View diff
33 -- Returning PASSDB_RESULT_INTERNAL_FAILURE keeps the existing cache entry,
same change 401b744

[Dovecot] return PASSDB_RESULT_PASSWORD_MISMATCH instead of PASSDB_RESULT_INTERNAL_FAILURE

Full commit hash
401b744808ff127b625001d8512d80d108d58a6a
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
34
  -- even if the TTL has expired. Useful to avoid cache eviction during backend issues.
Open commit View diff
34 -- even if the TTL has expired. Useful to avoid cache eviction during backend issues.
FreddleSpl0it over 1 year ago 766c5e8

[Dovecot] Ignore app passwords protocol access on SOGo request

Full commit hash
766c5e85801b9719e3447b935f03bb5dd84fda9e
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
35
  if c ~= 200 and c ~= 401 then
Open commit View diff
35 if c ~= 200 and c ~= 401 then
FreddleSpl0it over 1 year ago 4ad2422

[Dovecot] Increase Timeout for HTTP Login Request

Full commit hash
4ad24228108aadf7a915bda7af0a3ef9ecffb92c
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
36
    dovecot.i_info("HTTP request failed with " .. c .. " for user " .. request.user)
Open commit View diff
36 dovecot.i_info("HTTP request failed with " .. c .. " for user " .. request.user)
FreddleSpl0it about 1 year ago 401b744

[Dovecot] return PASSDB_RESULT_PASSWORD_MISMATCH instead of PASSDB_RESULT_INTERNAL_FAILURE

Full commit hash
401b744808ff127b625001d8512d80d108d58a6a
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
37
    return dovecot.auth.PASSDB_RESULT_PASSWORD_MISMATCH, "Upstream error"
Open commit View diff
37 return dovecot.auth.PASSDB_RESULT_PASSWORD_MISMATCH, "Upstream error"
FreddleSpl0it over 1 year ago 4ad2422

[Dovecot] Increase Timeout for HTTP Login Request

Full commit hash
4ad24228108aadf7a915bda7af0a3ef9ecffb92c
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
38
  end
Open commit View diff
38 end
same change 4ad2422

[Dovecot] Increase Timeout for HTTP Login Request

Full commit hash
4ad24228108aadf7a915bda7af0a3ef9ecffb92c
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
39
Open commit View diff
39
FreddleSpl0it over 1 year ago c4d0f35

[Dovecot] Fix EAS login and improve logging

Full commit hash
c4d0f35008b9dfa1f8f2e87e55d308cc220bf181
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
40
  local response_str = table.concat(res)
Open commit View diff
40 local response_str = table.concat(res)
same change c4d0f35

[Dovecot] Fix EAS login and improve logging

Full commit hash
c4d0f35008b9dfa1f8f2e87e55d308cc220bf181
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
41
  local is_response_valid, response_json = pcall(json.decode, response_str)
Open commit View diff
41 local is_response_valid, response_json = pcall(json.decode, response_str)
same change c4d0f35

[Dovecot] Fix EAS login and improve logging

Full commit hash
c4d0f35008b9dfa1f8f2e87e55d308cc220bf181
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
42
Open commit View diff
42
same change c4d0f35

[Dovecot] Fix EAS login and improve logging

Full commit hash
c4d0f35008b9dfa1f8f2e87e55d308cc220bf181
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
43
  if not is_response_valid then
Open commit View diff
43 if not is_response_valid then
same change c4d0f35

[Dovecot] Fix EAS login and improve logging

Full commit hash
c4d0f35008b9dfa1f8f2e87e55d308cc220bf181
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
44
    dovecot.i_info("Invalid JSON received: " .. response_str)
Open commit View diff
44 dovecot.i_info("Invalid JSON received: " .. response_str)
FreddleSpl0it about 1 year ago 401b744

[Dovecot] return PASSDB_RESULT_PASSWORD_MISMATCH instead of PASSDB_RESULT_INTERNAL_FAILURE

Full commit hash
401b744808ff127b625001d8512d80d108d58a6a
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
45
    return dovecot.auth.PASSDB_RESULT_PASSWORD_MISMATCH, "Invalid response format"
Open commit View diff
45 return dovecot.auth.PASSDB_RESULT_PASSWORD_MISMATCH, "Invalid response format"
FreddleSpl0it over 1 year ago c4d0f35

[Dovecot] Fix EAS login and improve logging

Full commit hash
c4d0f35008b9dfa1f8f2e87e55d308cc220bf181
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
46
  end
Open commit View diff
46 end
same change c4d0f35

[Dovecot] Fix EAS login and improve logging

Full commit hash
c4d0f35008b9dfa1f8f2e87e55d308cc220bf181
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
47
Open commit View diff
47
same change c4d0f35

[Dovecot] Fix EAS login and improve logging

Full commit hash
c4d0f35008b9dfa1f8f2e87e55d308cc220bf181
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
48
  if response_json.success == true then
Open commit View diff
48 if response_json.success == true then
FreddleSpl0it almost 3 years ago 788f03e

[Dovecot] remove passwd-verify.lua generation

Full commit hash
788f03e99337a7cc60474ba1d2ecdac0be552589
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
49
    return dovecot.auth.PASSDB_RESULT_OK, ""
Open commit View diff
49 return dovecot.auth.PASSDB_RESULT_OK, ""
same change 788f03e

[Dovecot] remove passwd-verify.lua generation

Full commit hash
788f03e99337a7cc60474ba1d2ecdac0be552589
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
50
  end
Open commit View diff
50 end
FreddleSpl0it over 1 year ago 805634f

Fix sasl_logs

Full commit hash
805634f9a94529a2c611100aed22f5c0b2d11b34
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
51
Open commit View diff
51
FreddleSpl0it almost 3 years ago 788f03e

[Dovecot] remove passwd-verify.lua generation

Full commit hash
788f03e99337a7cc60474ba1d2ecdac0be552589
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
52
  return dovecot.auth.PASSDB_RESULT_PASSWORD_MISMATCH, "Failed to authenticate"
Open commit View diff
52 return dovecot.auth.PASSDB_RESULT_PASSWORD_MISMATCH, "Failed to authenticate"
same change 788f03e

[Dovecot] remove passwd-verify.lua generation

Full commit hash
788f03e99337a7cc60474ba1d2ecdac0be552589
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
53
end
Open commit View diff
53 end
same change 788f03e

[Dovecot] remove passwd-verify.lua generation

Full commit hash
788f03e99337a7cc60474ba1d2ecdac0be552589
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
54
Open commit View diff
54
same change 788f03e

[Dovecot] remove passwd-verify.lua generation

Full commit hash
788f03e99337a7cc60474ba1d2ecdac0be552589
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
55
function auth_passdb_lookup(req)
Open commit View diff
55 function auth_passdb_lookup(req)
same change 788f03e

[Dovecot] remove passwd-verify.lua generation

Full commit hash
788f03e99337a7cc60474ba1d2ecdac0be552589
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
56
   return dovecot.auth.PASSDB_RESULT_USER_UNKNOWN, ""
Open commit View diff
56 return dovecot.auth.PASSDB_RESULT_USER_UNKNOWN, ""
same change 788f03e

[Dovecot] remove passwd-verify.lua generation

Full commit hash
788f03e99337a7cc60474ba1d2ecdac0be552589
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
57
end
Open commit View diff
57 end