summaryrefslogtreecommitdiff
path: root/files/arts
diff options
context:
space:
mode:
Diffstat (limited to 'files/arts')
-rw-r--r--files/arts/music/Hero.txt (renamed from files/arts/music/Hero)0
-rw-r--r--files/arts/music/Pimmelterrorist.txt (renamed from files/arts/music/Pimmelterrorist)0
-rw-r--r--files/arts/music/Soehne.txt (renamed from files/arts/music/Soehne)0
-rwxr-xr-xfiles/arts/music/Sven.txt (renamed from files/arts/music/Sven)0
-rw-r--r--files/arts/music/Tonite.txt (renamed from files/arts/music/Tonite)0
-rw-r--r--files/arts/software/Code/elektropost/auth.lua22
6 files changed, 22 insertions, 0 deletions
diff --git a/files/arts/music/Hero b/files/arts/music/Hero.txt
index 776a840..776a840 100644
--- a/files/arts/music/Hero
+++ b/files/arts/music/Hero.txt
diff --git a/files/arts/music/Pimmelterrorist b/files/arts/music/Pimmelterrorist.txt
index 09a82e5..09a82e5 100644
--- a/files/arts/music/Pimmelterrorist
+++ b/files/arts/music/Pimmelterrorist.txt
diff --git a/files/arts/music/Soehne b/files/arts/music/Soehne.txt
index 8860036..8860036 100644
--- a/files/arts/music/Soehne
+++ b/files/arts/music/Soehne.txt
diff --git a/files/arts/music/Sven b/files/arts/music/Sven.txt
index 5dba884..5dba884 100755
--- a/files/arts/music/Sven
+++ b/files/arts/music/Sven.txt
diff --git a/files/arts/music/Tonite b/files/arts/music/Tonite.txt
index 06af10d..06af10d 100644
--- a/files/arts/music/Tonite
+++ b/files/arts/music/Tonite.txt
diff --git a/files/arts/software/Code/elektropost/auth.lua b/files/arts/software/Code/elektropost/auth.lua
new file mode 100644
index 0000000..53df7a7
--- /dev/null
+++ b/files/arts/software/Code/elektropost/auth.lua
@@ -0,0 +1,22 @@
1function auth_password_verify(req, pass)
2 local handle = io.popen("/usr/local/vpopmail/bin/vuserinfo -p "..req.user)
3 local result = handle:read("*a")
4 handle:close()
5
6 local epass = result:match "^%s*(.-)%s*$"
7 if req:password_verify("{MD5-CRYPT}"..epass,pass) > 0 then
8 return dovecot.auth.PASSDB_RESULT_OK, {}
9 end
10 return dovecot.auth.PASSDB_RESULT_PASSWORD_MISMATCH, {}
11end
12
13function auth_userdb_lookup(req)
14 local handle = io.popen("/usr/local/vpopmail/bin/vuserinfo -d "..req.user)
15 local result = handle:read("*a")
16 handle:close()
17
18 if result:find("no such user") ~= nil then
19 return dovecot.auth.USERDB_RESULT_USER_UNKNOWN, "no such user"
20 end
21 return dovecot.auth.USERDB_RESULT_OK, "uid=vpopmail gid=vchkpw home="..result:match "^%s*(.-)%s*$"
22end