search for: script_deinit

Displaying 6 results from an estimated 6 matches for "script_deinit".

2019 Aug 29
1
[SOLVED] Re: LMTP Post login script for acl_groups
...gt;> local acl_groups = handle:read("*a") >>> >>> return dovecot.auth.USERDB_RESULT_OK, "acl_groups=" .. acl_groups >>> end >>> >>> function script_init() >>> return 0 >>> end >>> >>> function script_deinit() >>> end >>> >>> -- vim: expandtab ts=2 sw=2 >>> -------------------------------------------------- >>> >>> And this works for me :-) >>> >>> Many thanks >>> >>> Christian >> >> There really...
2019 Aug 29
3
[SOLVED] Re: LMTP Post login script for acl_groups
...w+)', { user = req.user }) > > local handle = io.popen(cmd) > local acl_groups = handle:read("*a") > > return dovecot.auth.USERDB_RESULT_OK, "acl_groups=" .. acl_groups > end > > function script_init() > return 0 > end > > function script_deinit() > end > > -- vim: expandtab ts=2 sw=2 > -------------------------------------------------- > > And this works for me :-) > > Many thanks > > Christian There really is no LDAP module for your LUA? Aki
2019 Aug 30
1
[SOLVED] Re: LMTP Post login script for acl_groups
...gt;> local acl_groups = handle:read("*a") >>> >>> return dovecot.auth.USERDB_RESULT_OK, "acl_groups=" .. acl_groups >>> end >>> >>> function script_init() >>> return 0 >>> end >>> >>> function script_deinit() >>> end >>> >>> -- vim: expandtab ts=2 sw=2 >>> -------------------------------------------------- >>> >>> And this works for me :-) >>> >>> Many thanks >>> >>> Christian >> There really is no LDAP mod...
2019 Aug 29
0
[SOLVED] Re: LMTP Post login script for acl_groups
...;$(%w+)', { base = base }) cmd = cmd:gsub('$(%w+)', { user = req.user }) local handle = io.popen(cmd) local acl_groups = handle:read("*a") return dovecot.auth.USERDB_RESULT_OK, "acl_groups=" .. acl_groups end function script_init() return 0 end function script_deinit() end -- vim: expandtab ts=2 sw=2 -------------------------------------------------- And this works for me :-) Many thanks Christian
2019 Aug 28
5
LMTP Post login script for acl_groups
> On 28/08/2019 21:01 R.N.S. via dovecot <dovecot at dovecot.org> wrote: > > > > Am 28.08.2019 um 19:46 schrieb Jakobus Sch?rz via dovecot <dovecot at dovecot.org>: > > > > I think, i had the same problem as you. > > > > When dovecot runs lmtp, no user is logged in, so there is no user from > > which you can get groups. So i think, my
2019 Aug 29
0
[SOLVED] Re: LMTP Post login script for acl_groups
...; local handle = io.popen(cmd) >> local acl_groups = handle:read("*a") >> >> return dovecot.auth.USERDB_RESULT_OK, "acl_groups=" .. acl_groups >> end >> >> function script_init() >> return 0 >> end >> >> function script_deinit() >> end >> >> -- vim: expandtab ts=2 sw=2 >> -------------------------------------------------- >> >> And this works for me :-) >> >> Many thanks >> >> Christian > > There really is no LDAP module for your LUA? I was too early...