Displaying 15 results from an estimated 15 matches for "auth_userdb_lookup".
2017 Dec 22
2
Lua Auth
...a better way. I tried various quoting without success.
> > Didn't try escaping yet.
> >
> >
> > 2) Instead of string, return a key value table. you can have spaces in
> > values.
> >
> >
> >
> Does this work for auth_passdb_lookup too, or just auth_userdb_lookup? I've
> been returning a table with auth_userdb_lookup just fine. But when I try
> using it with passdb (and despite being very very sure that a 'password'
> key exists in the table I'm returning from auth_passdb_lookup() -- I'm
> logging it one line above the return...
2017 Dec 22
2
Lua Auth
...escaping yet.
> > > >
> > > >
> > > > 2) Instead of string, return a key value table. you can have spaces in
> > > > values.
> > > >
> > > >
> > > >
> > > Does this work for auth_passdb_lookup too, or just auth_userdb_lookup?
> > I've
> > > been returning a table with auth_userdb_lookup just fine. But when I try
> > > using it with passdb (and despite being very very sure that a 'password'
> > > key exists in the table I'm returning from auth_passdb_lookup() -- I'm
&...
2017 Nov 30
3
Lua Auth
...Any words of wisdom on using it? I'd be putting a bunch of mysql logic in
>> it. Any horrible gotchas there? When it says 'blocking', should I assume
>> that means that a auth worker process will *not* accept any new auth
>> lookups until both auth_passdb_lookup() and auth_userdb_lookup() have
>> completed (in which I'd be doing several mysql calls)? If that's the case,
>> I assume that the number of auth workers should be bumped up.
>>
>> And is a 2.3 release fairly imminent?
> Hi!
>
> This feature was added very recently, and there is ver...
2017 Dec 22
0
Lua Auth
...ound, but I'm
> curious if there's a better way. I tried various quoting without success.
> Didn't try escaping yet.
>
>
> 2) Instead of string, return a key value table. you can have spaces in
> values.
>
>
>
Does this work for auth_passdb_lookup too, or just auth_userdb_lookup? I've
been returning a table with auth_userdb_lookup just fine. But when I try
using it with passdb (and despite being very very sure that a 'password'
key exists in the table I'm returning from auth_passdb_lookup() -- I'm
logging it one line above the return), the passdb auth f...
2017 Dec 22
0
Lua Auth
...; success.
> > > Didn't try escaping yet.
> > >
> > >
> > > 2) Instead of string, return a key value table. you can have spaces in
> > > values.
> > >
> > >
> > >
> > Does this work for auth_passdb_lookup too, or just auth_userdb_lookup?
> I've
> > been returning a table with auth_userdb_lookup just fine. But when I try
> > using it with passdb (and despite being very very sure that a 'password'
> > key exists in the table I'm returning from auth_passdb_lookup() -- I'm
> > logging it...
2017 Dec 22
0
Lua Auth
...> > >
> > > > > 2) Instead of string, return a key value table. you can have
> spaces in
> > > > > values.
> > > > >
> > > > >
> > > > >
> > > > Does this work for auth_passdb_lookup too, or just
> auth_userdb_lookup?
> > > I've
> > > > been returning a table with auth_userdb_lookup just fine. But when I
> try
> > > > using it with passdb (and despite being very very sure that a
> 'password'
> > > > key exists in the table I'm returning from aut...
2017 Nov 29
2
Lua Auth
...vecot.org/AuthDatabase/Lua
Any words of wisdom on using it? I'd be putting a bunch of mysql logic in
it. Any horrible gotchas there? When it says 'blocking', should I assume
that means that a auth worker process will *not* accept any new auth
lookups until both auth_passdb_lookup() and auth_userdb_lookup() have
completed (in which I'd be doing several mysql calls)? If that's the case,
I assume that the number of auth workers should be bumped up.
And is a 2.3 release fairly imminent?
2019 Aug 29
1
[SOLVED] Re: LMTP Post login script for acl_groups
...-----------
>>>
>>> I added it in 10-auth.conf behind the LDAP auth include statement.
>>>
>>> The Lua script looks like this:
>>> --------------------------------------------------
>>> require('io')
>>>
>>> function auth_userdb_lookup(req)
>>> local bindpwfile = "/etc/dovecot/ldap-auth-userdb.secret"
>>> local base = "ou=people,ou=it,dc=roessner-net,dc=de"
>>> local binddn = "cn=dovecot," .. base
>>>
>>> local cmd = [=[
>>> /bin/sh -c "ld...
2019 Aug 29
3
[SOLVED] Re: LMTP Post login script for acl_groups
...a blocking=yes
> }
> --------------------------------------------------
>
> I added it in 10-auth.conf behind the LDAP auth include statement.
>
> The Lua script looks like this:
> --------------------------------------------------
> require('io')
>
> function auth_userdb_lookup(req)
> local bindpwfile = "/etc/dovecot/ldap-auth-userdb.secret"
> local base = "ou=people,ou=it,dc=roessner-net,dc=de"
> local binddn = "cn=dovecot," .. base
>
> local cmd = [=[
> /bin/sh -c "ldapsearch -LLL -ZZ -y $bindpwfile -xD $b...
2019 Aug 30
1
[SOLVED] Re: LMTP Post login script for acl_groups
...--------------
>>>
>>> I added it in 10-auth.conf behind the LDAP auth include statement.
>>>
>>> The Lua script looks like this:
>>> --------------------------------------------------
>>> require('io')
>>>
>>> function auth_userdb_lookup(req)
>>> local bindpwfile = "/etc/dovecot/ldap-auth-userdb.secret"
>>> local base = "ou=people,ou=it,dc=roessner-net,dc=de"
>>> local binddn = "cn=dovecot," .. base
>>>
>>> local cmd = [=[
>>> /bin/sh -c &quo...
2017 Nov 29
0
Lua Auth
...a
>
> Any words of wisdom on using it? I'd be putting a bunch of mysql logic in
> it. Any horrible gotchas there? When it says 'blocking', should I assume
> that means that a auth worker process will *not* accept any new auth
> lookups until both auth_passdb_lookup() and auth_userdb_lookup() have
> completed (in which I'd be doing several mysql calls)? If that's the case,
> I assume that the number of auth workers should be bumped up.
>
> And is a 2.3 release fairly imminent?
Hi!
This feature was added very recently, and there is very little operational experie...
2019 Aug 29
0
[SOLVED] Re: LMTP Post login script for acl_groups
...args = file=/etc/dovecot/dovecot-auth-userdb.lua blocking=yes
}
--------------------------------------------------
I added it in 10-auth.conf behind the LDAP auth include statement.
The Lua script looks like this:
--------------------------------------------------
require('io')
function auth_userdb_lookup(req)
local bindpwfile = "/etc/dovecot/ldap-auth-userdb.secret"
local base = "ou=people,ou=it,dc=roessner-net,dc=de"
local binddn = "cn=dovecot," .. base
local cmd = [=[
/bin/sh -c "ldapsearch -LLL -ZZ -y $bindpwfile -xD $binddn -b $base '(rnsMSDov...
2017 Dec 02
0
Lua Auth
...f wisdom on using it? I'd be putting a bunch of mysql logic in
>>> it. Any horrible gotchas there? When it says 'blocking', should I assume
>>> that means that a auth worker process will *not* accept any new auth
>>> lookups until both auth_passdb_lookup() and auth_userdb_lookup() have
>>> completed (in which I'd be doing several mysql calls)? If that's the
>>> case,
>>> I assume that the number of auth workers should be bumped up.
>>>
>>> And is a 2.3 release fairly imminent?
>>>
>> Hi!
>>
>>...
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
...-------------------------------------------
>>
>> I added it in 10-auth.conf behind the LDAP auth include statement.
>>
>> The Lua script looks like this:
>> --------------------------------------------------
>> require('io')
>>
>> function auth_userdb_lookup(req)
>> local bindpwfile = "/etc/dovecot/ldap-auth-userdb.secret"
>> local base = "ou=people,ou=it,dc=roessner-net,dc=de"
>> local binddn = "cn=dovecot," .. base
>>
>> local cmd = [=[
>> /bin/sh -c "ldapsearch -LLL -ZZ -...