[dovecot/core] dbe43c: auth: Avoid DNS lookup for "host" if passdb return...

GitHub noreply at github.com
Fri Sep 8 13:30:10 EEST 2017


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: dbe43c872305a349542563fc08f25d6a0cceb46e
      https://github.com/dovecot/core/commit/dbe43c872305a349542563fc08f25d6a0cceb46e
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-09-08 (Fri, 08 Sep 2017)

  Changed paths:
    M src/auth/auth-request.c

  Log Message:
  -----------
  auth: Avoid DNS lookup for "host" if passdb returns also "hostip"


  Commit: 31434f7b892ad056d18c859d677aa16ce19fa876
      https://github.com/dovecot/core/commit/31434f7b892ad056d18c859d677aa16ce19fa876
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-09-08 (Fri, 08 Sep 2017)

  Changed paths:
    M src/lmtp/commands.c
    M src/lmtp/lmtp-proxy.c
    M src/lmtp/lmtp-proxy.h

  Log Message:
  -----------
  lmtp proxy: Avoid DNS lookup for "host" if passdb also returns "hostip"


  Commit: a07e0d83e1fd465d7ee13771ded72a8d152b5bbb
      https://github.com/dovecot/core/commit/a07e0d83e1fd465d7ee13771ded72a8d152b5bbb
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-09-08 (Fri, 08 Sep 2017)

  Changed paths:
    M src/doveadm/doveadm-mail-server.c

  Log Message:
  -----------
  doveadm proxy: Avoid DNS lookup for "host" if passdb also returns "hostip"


  Commit: ef597c4619eb021563f659b886c67762fce7a817
      https://github.com/dovecot/core/commit/ef597c4619eb021563f659b886c67762fce7a817
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-09-08 (Fri, 08 Sep 2017)

  Changed paths:
    M src/lib-sql/driver-cassandra.c
    M src/lib-sql/driver-mysql.c
    M src/lib-sql/driver-pgsql.c
    M src/lib-sql/driver-sqlite.c
    M src/lib-sql/driver-sqlpool.c
    M src/lib-sql/driver-test.c

  Log Message:
  -----------
  lib-sql: Explicitly specify used *_vfuncs methods for drivers.

This allows adding more methods without modifying all the existing drivers.


  Commit: 9f0fc74e3387d3e496fb0c8f77633e27e48cc1ff
      https://github.com/dovecot/core/commit/9f0fc74e3387d3e496fb0c8f77633e27e48cc1ff
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-09-08 (Fri, 08 Sep 2017)

  Changed paths:
    M src/lib-sql/sql-api-private.h
    M src/lib-sql/sql-api.c
    M src/lib-sql/sql-api.h

  Log Message:
  -----------
  lib-sql: Add support for prepared SQL statements.

This initial implementation doesn't use prepared statements in drivers, but
simply generates the query string internally.


  Commit: 1a672c1f242f6a350bc33ac32c16050b7ddd0368
      https://github.com/dovecot/core/commit/1a672c1f242f6a350bc33ac32c16050b7ddd0368
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-09-08 (Fri, 08 Sep 2017)

  Changed paths:
    M src/lib-dict/dict-sql.c

  Log Message:
  -----------
  dict-sql: Change "uint" type to mean 64bit instead of 32bit integer.

This is likely what is usually wanted (especially in e.g. quotas).
If someone actually wants it to be restricted to 32bit, we could add
uint32 later on.


  Commit: a903e2bcf759e80d4d65e9371992af53e48c7e2b
      https://github.com/dovecot/core/commit/a903e2bcf759e80d4d65e9371992af53e48c7e2b
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-09-08 (Fri, 08 Sep 2017)

  Changed paths:
    M src/lib-dict/dict-sql.c

  Log Message:
  -----------
  dict-sql: Remove dict_sql_build_query.inc

It's no longer useful with the current code.


  Commit: a789b3fb40aa00dbd4f7732c04572436dd637195
      https://github.com/dovecot/core/commit/a789b3fb40aa00dbd4f7732c04572436dd637195
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-09-08 (Fri, 08 Sep 2017)

  Changed paths:
    M src/lib-dict/dict-sql.c

  Log Message:
  -----------
  dict-sql: Initial change to use sql_statement API

sql_statement_bind_*() will be followed by later changes.


  Commit: 4fa50be15f37c0d4cecdbede22639353b8213e55
      https://github.com/dovecot/core/commit/4fa50be15f37c0d4cecdbede22639353b8213e55
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-09-08 (Fri, 08 Sep 2017)

  Changed paths:
    M src/lib-dict/dict-sql-private.h
    M src/lib-dict/dict-sql.c

  Log Message:
  -----------
  dict-sql: Use sql_statement_set_timestamp() instead of adding it to query


  Commit: 0e884c3e02b9dc540bdfe929a66af7476ebc860d
      https://github.com/dovecot/core/commit/0e884c3e02b9dc540bdfe929a66af7476ebc860d
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-09-08 (Fri, 08 Sep 2017)

  Changed paths:
    M src/lib-dict/dict-sql-settings.c
    M src/lib-dict/dict-sql-settings.h
    M src/lib-dict/dict-sql.c

  Log Message:
  -----------
  dict-sql: Add signed "int" type


  Commit: e6bff6f5fe1daa33ca1ee8cbbe6c4cba90416bfd
      https://github.com/dovecot/core/commit/e6bff6f5fe1daa33ca1ee8cbbe6c4cba90416bfd
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-09-08 (Fri, 08 Sep 2017)

  Changed paths:
    M src/lib-dict/dict-sql.c

  Log Message:
  -----------
  dict-sql: Use sql_statement_bind_*()


  Commit: 5451d6b31e9bf9d673bb014804c0cd5f1bfeb4db
      https://github.com/dovecot/core/commit/5451d6b31e9bf9d673bb014804c0cd5f1bfeb4db
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-09-08 (Fri, 08 Sep 2017)

  Changed paths:
    M src/lib-dict/dict-sql.c

  Log Message:
  -----------
  dict-sql: Cleanup - Remove unnecessary code

The values are explicitly added to params. sql_dict_update_query() doesn't
add them again. Since the "diff" parameter is already a long long type,
this avoids unnecessary conversion to string and back.


  Commit: f2e6909dd046f36d11d292dfba2afb80ec5ec218
      https://github.com/dovecot/core/commit/f2e6909dd046f36d11d292dfba2afb80ec5ec218
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-09-08 (Fri, 08 Sep 2017)

  Changed paths:
    M src/lib-dict/dict-sql.c

  Log Message:
  -----------
  dict-sql: Cleanup - change query generator functions to return statement

Instead of query+params. This is in preparation for the following changes.


  Commit: fc998bd6e0347524a0c4191e5d3b908bfa6b3a05
      https://github.com/dovecot/core/commit/fc998bd6e0347524a0c4191e5d3b908bfa6b3a05
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-09-08 (Fri, 08 Sep 2017)

  Changed paths:
    M src/lib-dict/dict-sql.c

  Log Message:
  -----------
  dict-sql: Flush pending atomic_inc on set, and pending set on atomic_inc


  Commit: 6a3f466e0ce75c3356932c5a28894285153e3156
      https://github.com/dovecot/core/commit/6a3f466e0ce75c3356932c5a28894285153e3156
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-09-08 (Fri, 08 Sep 2017)

  Changed paths:
    M src/lib-dict/dict-sql-private.h
    M src/lib-dict/dict-sql.c

  Log Message:
  -----------
  dict-sql: Use prepared statements

Create a hash table of query template -> prepared statement and fill it out
as needed. This could have been done some alternative ways that wouldn't
require building the string first, but this should still be fast enough and
much easier to implement.


  Commit: 92e21c2a14182b040f891f3d18ede3e1b5f8c560
      https://github.com/dovecot/core/commit/92e21c2a14182b040f891f3d18ede3e1b5f8c560
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-09-08 (Fri, 08 Sep 2017)

  Changed paths:
    M src/lib-sql/driver-cassandra.c

  Log Message:
  -----------
  cassandra: sql_transaction_commit_s() - Don't allow multi-query transactions

They were already denied for asynchronous commits. Also the synchronous
commits aren't actually used anywhere, so this shouldn't break anything.


  Commit: 8759c5d294e762fe9c5b7b19f3842b23aaaaf4eb
      https://github.com/dovecot/core/commit/8759c5d294e762fe9c5b7b19f3842b23aaaaf4eb
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-09-08 (Fri, 08 Sep 2017)

  Changed paths:
    M src/lib-sql/driver-cassandra.c

  Log Message:
  -----------
  cassandra: sql_transaction_commit_s() - Set query_type correctly

The queries were all sent with READ type instead of WRITE/DELETE. This
meant they were using potentially wrong consistency values. Although
synchronous commits aren't actually used anywhere, so this practically
this doesn't fix anything right now.


  Commit: 92a7f5f9bf20c0bd1b1ac309d100f9c144e2b127
      https://github.com/dovecot/core/commit/92a7f5f9bf20c0bd1b1ac309d100f9c144e2b127
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-09-08 (Fri, 08 Sep 2017)

  Changed paths:
    M src/lib-sql/driver-cassandra.c

  Log Message:
  -----------
  cassandra: sql_transaction_commit*() cleanup - handle multiple query failures earlier

This makes the handling same for the sync and async method. It also
simplifies code for the following commits.


  Commit: a2c4998f6e1fe5ea9a2c9bafd678cd4b6b064a0b
      https://github.com/dovecot/core/commit/a2c4998f6e1fe5ea9a2c9bafd678cd4b6b064a0b
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-09-08 (Fri, 08 Sep 2017)

  Changed paths:
    M src/lib-sql/driver-cassandra.c

  Log Message:
  -----------
  cassandra: Cleanup - Create statement earlier

Simplifies the following changes


  Commit: 709ee5a909d482f31611f9e6cc10d893a272e061
      https://github.com/dovecot/core/commit/709ee5a909d482f31611f9e6cc10d893a272e061
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-09-08 (Fri, 08 Sep 2017)

  Changed paths:
    M src/lib-sql/driver-cassandra.c

  Log Message:
  -----------
  cassandra: Add support for prepared statements


Compare: https://github.com/dovecot/core/compare/4b8bea203350...709ee5a909d4


More information about the dovecot-cvs mailing list