search for: userdb_result_ok

Displaying 7 results from an estimated 7 matches for "userdb_result_ok".

2013 Aug 21
1
Bug in dovecot 2.2.5: segfault due to bad alignment
...gt;) at hmac.c:44 #2 0x00023310 in auth_token_get (service=service at entry=0x6a648 "imap", session_pid=0x56071 "26272", username=0x6a698 "borchert", session_id=0x6a650 "AErv6nbk6gB/AAAB") at auth-token.c:174 #3 0x00021708 in userdb_callback (result=USERDB_RESULT_OK, request=0x6a530) at auth-request-handler.c:668 #4 0x0001f144 in auth_request_userdb_callback (result=<optimized out>, result at entry=USERDB_RESULT_OK, request=request at entry=0x6a530) at auth-request.c:1039 #5 0x000312c8 in prefetch_lookup (auth_request=0x6a530, callback=...
2019 Aug 29
1
[SOLVED] Re: LMTP Post login script for acl_groups
...ddn }) >>> cmd = cmd:gsub('$(%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 >>> -----------------...
2019 Aug 29
3
[SOLVED] Re: LMTP Post login script for acl_groups
...cmd = cmd:gsub('$(%w+)', { binddn = binddn }) > cmd = cmd:gsub('$(%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 than...
2019 Aug 30
1
[SOLVED] Re: LMTP Post login script for acl_groups
...}) >>> cmd = cmd:gsub('$(%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 >>> -------------------...
2019 Aug 29
0
[SOLVED] Re: LMTP Post login script for acl_groups
...;, { bindpwfile = bindpwfile }) cmd = cmd:gsub('$(%w+)', { binddn = binddn }) cmd = cmd:gsub('$(%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
...+)', { binddn = binddn }) >> cmd = cmd:gsub('$(%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 >> -------------------------------------------------- >>...