search for: rnsmsaclgroup

Displaying 8 results from an estimated 8 matches for "rnsmsaclgroup".

2019 Aug 28
2
LMTP Post login script for acl_groups
Hi, I use a post login script for imap, to fetch acl groups from LDAP. Because Dovecot can only deal with a single value, which must be a comma seperated list of groups, I decided to use a post login script do deal with multi values in LDAP: This looks like this in LDAP: rnsMSACLGroup: admin rnsMSACLGroup: automx rnsMSACLGroup: amavis rnsMSACLGroup: postfix rnsMSACLGroup: dovecot rnsMSACLGroup: rspamd rnsMSACLGroup: powerdns rnsMSACLGroup: sogo rnsMSACLGroup: zabbix rnsMSACLGroup: dane-users rnsMSACLGroup: gentoo rnsMSACLGroup: openbsd My post login script looks like this: ---...
2019 Aug 28
0
LMTP Post login script for acl_groups
...gt; > I use a post login script for imap, to fetch acl groups from LDAP. Because Dovecot can only deal with a single value, which must be a comma seperated list of groups, I decided to use a post login script do deal with multi values in LDAP: > > This looks like this in LDAP: > > rnsMSACLGroup: admin > rnsMSACLGroup: automx > rnsMSACLGroup: amavis > rnsMSACLGroup: postfix > rnsMSACLGroup: dovecot > rnsMSACLGroup: rspamd > rnsMSACLGroup: powerdns > rnsMSACLGroup: sogo > rnsMSACLGroup: zabbix > rnsMSACLGroup: dane-users > rnsMSACLGroup: gentoo > rnsMSACLGro...
2019 Aug 29
3
[SOLVED] Re: LMTP Post login script for acl_groups
.../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 '(rnsMSDovecotUser=$user)' rnsMSACLGroup | \ > grep rnsMSACLGroup | \ > awk -vORS=, '{ print \$2 }' | \ > sed 's/,$/\n/'" > ]=] > > cmd = cmd:gsub('$(%w+)', { bindpwfile = bindpwfile }) > cmd = cmd:gsub('$(%w+)', { binddn = binddn }) > cmd = cmd:gsub(...
2019 Aug 29
1
[SOLVED] Re: LMTP Post login script for acl_groups
...t;>> 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 '(rnsMSDovecotUser=$user)' rnsMSACLGroup | \ >>> grep rnsMSACLGroup | \ >>> awk -vORS=, '{ print \$2 }' | \ >>> sed 's/,$/\n/'" >>> ]=] >>> >>> cmd = cmd:gsub('$(%w+)', { bindpwfile = bindpwfile }) >>> cmd = cmd:gsub('$(%w+)',...
2019 Aug 30
1
[SOLVED] Re: LMTP Post login script for acl_groups
...gt;> 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 '(rnsMSDovecotUser=$user)' rnsMSACLGroup | \ >>> grep rnsMSACLGroup | \ >>> awk -vORS=, '{ print \$2 }' | \ >>> sed 's/,$/\n/'" >>> ]=] >>> >>> cmd = cmd:gsub('$(%w+)', { bindpwfile = bindpwfile }) >>> cmd = cmd:gsub('$(%w+)...
2019 Aug 29
0
[SOLVED] Re: LMTP Post login script for acl_groups
...ile = "/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 '(rnsMSDovecotUser=$user)' rnsMSACLGroup | \ grep rnsMSACLGroup | \ awk -vORS=, '{ print \$2 }' | \ sed 's/,$/\n/'" ]=] cmd = cmd:gsub('$(%w+)', { bindpwfile = bindpwfile }) cmd = cmd:gsub('$(%w+)', { binddn = binddn }) cmd = cmd:gsub('$(%w+)', { base = base }) cmd...
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
....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 '(rnsMSDovecotUser=$user)' rnsMSACLGroup | \ >> grep rnsMSACLGroup | \ >> awk -vORS=, '{ print \$2 }' | \ >> sed 's/,$/\n/'" >> ]=] >> >> cmd = cmd:gsub('$(%w+)', { bindpwfile = bindpwfile }) >> cmd = cmd:gsub('$(%w+)', { binddn = binddn }) &...