Displaying 20 results from an estimated 30000 matches similar to: "Potentially breaking dict-proxy (dict-sql) backwards compatibility"
2016 Oct 17
2
Dict proxy client returning empty string instead of multiline string
> > > >>>>> On 10/16/2016 11:16 PM, Pierre Jaury wrote:
> > > >>>>>> Hello,
> > > >>>>>>
> > > >>>>>> I am using a dict proxy for my sieve extdata plugin to access some
> > > >>>>>> fields from an SQLite database (autoreply text and other
> > >
2016 Oct 16
2
Dict proxy client returning empty string instead of multiline string
Hello,
I am using a dict proxy for my sieve extdata plugin to access some
fields from an SQLite database (autoreply text and other
database-configured items).
All tests are performed against version 2.2.25.
$ dovecot --version
2.2.25 (7be1766)
My configuration looks like:
dict {
sieve = sqlite:/etc/dovecot/pigeonhole-sieve.dict
}
[...]
sieve_extdata_dict_uri = proxy::sieve
I
2016 Oct 17
1
Dict proxy client returning empty string instead of multiline string
While trying to isolate properly and reproduce, I was able to trigger
the same bug with the following code:
struct dict *dict;
char* dict_uri = "proxy::sieve";
char* key = "priv/key";
char* username = "admin at domain.tld";
char* value, error;
dict_drivers_register_builtin();
dict_init(dict_uri, DICT_DATA_TYPE_STRING, username,
2013 Nov 08
1
Dict client unescaping sieve script
I've created a dict service that listens on a unix socket and answers
queries for sieve scripts (among other things).
As I understand it (from the source code at
http://hg.dovecot.org/dovecot-2.2/file/tip/src/lib-dict/dict-client.c),
the dict client will unescape \001n, \001t, and \0011 to line feeds,
tabs, and the \001 character respectively.
In my service I am escaping those three
2016 Oct 17
2
Dict proxy client returning empty string instead of multiline string
Oh duh, it used datastack pool. Try again with the attached patch? Please remember to clear the previous one out before trying.
Aki
>
> The trace is missing some symbols, I will debug tomorrow and see where
> the call comes from exactly.
>
> Regards,
>
>
> On 10/17/2016 06:23 PM, Aki Tuomi wrote:
> > Hi!
> >
> > Looking at the code, I think the bug
2016 Oct 17
2
Dict proxy client returning empty string instead of multiline string
Hi!
This does sound like a bug, we'll have look.
Aki
On 17.10.2016 01:26, Pierre Jaury wrote:
> I dived a little bit further into the rabbit hole, up to the point where
> debugging has become unpracticle but I still haven't found the root
> cause for sure.
>
> I read most of the code for "p_strdup" based on datastack memory pools
> (which are used for
2016 Oct 17
2
Dict proxy client returning empty string instead of multiline string
Hi!
Looking at the code, I think the bug is that it just copies pointer to the value, it should, instead, duplicate the value to some memory region. Can you see if this following patch fixes it?
Aki
> On October 17, 2016 at 4:14 PM Pierre Jaury <pierre at jaury.eu> wrote:
>
>
> Okay, it seems to me that the bug is due to "t_str_tabunescape" using
> the unsafe
2016 Sep 23
0
Dict protocol changes string
On 29.07.2016 15:35, Nagy, Attila wrote:
> Hi,
>
> I use pass and userdb with dict protocol in a similar way:
>
> key passdb {
> key = passdb^MAuth-User: %u^MAuth-Pass: %w^MAuth-Protocol:
> %s^MClient-IP: %r
> format = json
> }
>
> (^M is an \r character, inserted with vi CTRL-v + enter)
>
> Until 2.2.24 this has worked, but 2.2.25 seems to convert that
2020 May 12
0
last_login_dict: Failed to write value: dict-server returned failure: sql dict: commit failed
Hello,
I get last_login_dict: Failed to write value: dict-server returned
failure: sql dict: commit failed randomly in the logs:
---
???????1 mailserver dovecot: imap(test-email-bb at exemple.com)
<NtiT9H2SFIVcuGID> [xxx.xxx.xxx.xxx]: Error: last_login_dict: Failed to
write value: dict-server returned failure: sql dict: commit failed:
INSERT, UPDATE command denied to user
2010 Oct 16
1
quota sql dict permissions dilemma
Hi!
I'm trying to set up SQL based dict quota. The quota is working, gets
updated but I had to configure really loose file permission to make it
work:
dovecot.conf:
dict {
quota = pgsql:/etc/dovecot/dovecot_dict-sql.conf
}
service dict {
unix_listener dict {
mode = 0660
group = vmail
# sidenote: I noticed that writing the number equivalent
# of 'vmail' here does not work.
2017 Aug 03
0
proxy-dict with tcp connection
> On August 3, 2017 at 2:10 PM Ralf Becker <rb at egroupware.org> wrote:
>
>
> I try to create a patch to allow (proxy-)dict to use tcp connections
> instead of a unix domain socket.
>
> I'm replacing connection_init_client_unix with connection_init_client_ip:
>
> --- ./src/lib-dict/dict-client.c.orig
> +++ ./src/lib-dict/dict-client.c
> @@ -721,6
2015 Oct 19
0
Dovecot 2.2.19 - Panic: file dict-sql.c: line 670 (sql_dict_iterate): assertion failed: ((ctx->flags & DICT_ITERATE_FLAG_ASYNC) != 0)
Hello everyone,
For this installation I am using passdb against AD, userdb with MySQL and nfs storage but using simultaneously the vfile acl backend and the shared mailbox dictionary I get the following panic:
Oct 19 12:34:51 server dovecot: imap-login: Login: user=<user04>, method=PLAIN, rip=10.112.99.52, lip=10.113.63.50, mpid=7538, session=<NKsDsnIiU7YKcGM0>
Oct 19 12:34:51 server
2015 Oct 29
0
Acl sql dict error, dict crashes
On 29 Oct 2015, at 12:15, Christian Kivalo <ml+dovecot at valo.at> wrote:
>
> Hi,
>
> I configured shared mailboxes and get an error when i use SQL as the acl_shared_dict. It works when i use a file instead. With SQL as the shared_dict, dict crashes.
>
> Oct 29 10:12:13 uschi dovecot: dict(27421): Panic: file dict-sql.c: line 670 (sql_dict_iterate): assertion failed:
2015 Oct 20
2
Dovecot 2.2.19 - Panic: file dict-sql.c: line 670 (sql_dict_iterate): assertion failed: ((ctx->flags & DICT_ITERATE_FLAG_ASYNC) != 0)
Hello everyone,
For this installation I am using passdb against AD, userdb with MySQL and nfs storage but using simultaneously the vfile acl backend and the shared mailbox dictionary I get the following panic:
Oct 19 12:34:51 server dovecot: imap-login: Login: user=<user04>, method=PLAIN, rip=10.112.99.52, lip=10.113.63.50, mpid=7538, session=<NKsDsnIiU7YKcGM0>
Oct 19 12:34:51 server
2006 Jul 28
1
Quota with dict backend - sql does not get registered
Hello everyone,
I've been working with the quota plugin, attempting to use the dict
backend. It seems the sql dict class is not getting loaded. I dropped a
couple lines in dict_class_lookup(dict.c) and it seems the only class
that gets loaded is "proxy". Any idea how to get the sql driver to load
in the quota/dict module?
My authentication goes through the sql module and is working
2015 Oct 29
2
Acl sql dict error, dict crashes
Hi,
I configured shared mailboxes and get an error when i use SQL as the
acl_shared_dict. It works when i use a file instead. With SQL as the
shared_dict, dict crashes.
I have enabled sql query logs on the mariadb server, the table
user_shares and anyone_shares are queried but there is no insert to the
empty tables.
The dovecot-acl files are created in the mailbox when i add an acl with
2017 Mar 13
0
Dict protocol changes string
On 28.02.2017 17:59, Nagy, Attila wrote:
> On 09/23/2016 08:05 AM, Aki Tuomi wrote:
>> On 29.07.2016 15:35, Nagy, Attila wrote:
>>> I use pass and userdb with dict protocol in a similar way:
>>>
>>> key passdb {
>>> key = passdb^MAuth-User: %u^MAuth-Pass: %w^MAuth-Protocol:
>>> %s^MClient-IP: %r
>>> format = json
>>> }
2014 Aug 25
1
dict SQL : HA / RR load-balancing ?
Hi everyone,
I am using Dovecot 2.2 with dict SQL.
My config is using :
connect = host=10.111.5.1X host=10.111.5.1Y host=10.111.5.1Z dbname=mail
user=quota_updater password=xxxxxxxx
But when an SQL server is down, I have these messages in logs :
dict: Error: mysql(10.111.5.1Y): Connect failed to database (mail):
Can't connect to MySQL server on '10.111.5.1Y' (111) - waiting for
2017 Feb 28
2
Dict protocol changes string
On 09/23/2016 08:05 AM, Aki Tuomi wrote:
> On 29.07.2016 15:35, Nagy, Attila wrote:
>> I use pass and userdb with dict protocol in a similar way:
>>
>> key passdb {
>> key = passdb^MAuth-User: %u^MAuth-Pass: %w^MAuth-Protocol:
>> %s^MClient-IP: %r
>> format = json
>> }
>>
>> (^M is an \r character, inserted with vi CTRL-v + enter)
2014 May 20
0
Dict SQL lookups without username_field
Dear all,
Is it possible to perform dict lookups with a SQL backend, without
specifying the username_field in the SQL query?
I am using the dict to retrieve a Sieve script. My dict configuration
looks like this:
map {
pattern = priv/sieve/data/$id
table = sieve_scripts
username_field = email
value_field = data
fields {
id = $id
}
}
I don't want to specify the username