Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Add Api for dovecot user lookup and authentication #651

Merged
merged 2 commits into from
Nov 8, 2024
Merged

Conversation

y3n4
Copy link
Contributor

@y3n4 y3n4 commented Oct 11, 2024

Testing the Lua authentication script:

  1. Install lua5.3 lua-json dovecot-auth-lua

1.a You might need to link the lua5.3 runtime to lua5.4 runtime PATH

  1. Add a config file in vagrant box /etc/dovecot/conf.d/99-env-vars.conf:
import_environment=MAIL_CRYPT=2 USERLI_API_ACCESS_TOKEN=insecure USERLI_HOST=localhost DOVECOT_LUA_DEBUG=true DOVECOT_LUA_INSECURE=true
  1. Replace /etc/dovecot/conf.d/auth-checkpassword.conf.ext with the following:
passdb {
  driver = lua
  args = file=/vagrant/checkpasswd.lua blocking=yes
}

userdb {
  driver = lua
  args = file=/vagrant/checkpasswd.lua blocking=yes
}
  1. See https://doc.dovecot.org/2.3/admin_manual/debugging/debugging_authentication/ for useful commands

@y3n4 y3n4 added the enhancement New feature or request label Oct 11, 2024
@y3n4 y3n4 force-pushed the dovecot-api branch 6 times, most recently from 7e9bc86 to 771e0ba Compare October 16, 2024 11:01
@y3n4 y3n4 force-pushed the dovecot-api branch 4 times, most recently from d7c257d to b7cf985 Compare October 18, 2024 17:27
@y3n4 y3n4 changed the title [WIP] Add Api for dovecot passdb/userdb Add Api for dovecot user lookup and authentication Oct 18, 2024
@y3n4 y3n4 marked this pull request as ready for review October 18, 2024 17:36
@y3n4 y3n4 marked this pull request as draft October 20, 2024 08:46
@y3n4 y3n4 changed the title Add Api for dovecot user lookup and authentication ✨ Add Api for dovecot user lookup and authentication Oct 24, 2024
@y3n4 y3n4 force-pushed the dovecot-api branch 2 times, most recently from d9caf69 to bb5631b Compare October 24, 2024 08:14
@y3n4 y3n4 marked this pull request as ready for review November 4, 2024 22:34
@y3n4 y3n4 force-pushed the dovecot-api branch 2 times, most recently from 938f1d7 to 7ffe7bf Compare November 8, 2024 18:08
Copy link

sonarqubecloud bot commented Nov 8, 2024

@0x46616c6b 0x46616c6b merged commit 81c851a into main Nov 8, 2024
8 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants