[dovecot/core] e150cd: auth: Apply passdb/userdb { override_fields } only...

GitHub noreply at github.com
Sat Jan 23 13:49:06 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: e150cd7c821e8fba72a49615e22fd9e2a4302c82
      https://github.com/dovecot/core/commit/e150cd7c821e8fba72a49615e22fd9e2a4302c82
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-01-23 (Sat, 23 Jan 2016)

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

  Log Message:
  -----------
  auth: Apply passdb/userdb { override_fields } only after caching

Now they're not be unnecessarily saved to cache to waste memory. More
importantly they will always override the cached fields, which is required
for %variables to work.


  Commit: 9fa4ac629eb23f1ef80cca8dbb98059819f49656
      https://github.com/dovecot/core/commit/9fa4ac629eb23f1ef80cca8dbb98059819f49656
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-01-23 (Sat, 23 Jan 2016)

  Changed paths:
    M src/auth/passdb-ldap.c
    M src/auth/userdb-ldap.c

  Log Message:
  -----------
  ldap auth: %variables in pass/user_attrs are now included in auth cache key.

This makes sure that the result won't be cached too aggressively, for example
if %{lport} or %{rip} was used as a field's value. Although each of these
fields just makes the cache less effective, so it's a good idea to avoid
variables entirely in the pass/user_attrs. An alternative is to use
passdb/userdb { override_fields }


  Commit: cc4723ad7ffe683b36d8c14d7ce3c89b6bf25bd6
      https://github.com/dovecot/core/commit/cc4723ad7ffe683b36d8c14d7ce3c89b6bf25bd6
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-01-23 (Sat, 23 Jan 2016)

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

  Log Message:
  -----------
  auth: If userdb result was found from cache, its result_* rules were ignored.


  Commit: b23317e6678eb8fb23a8761b89ef8ec02d584511
      https://github.com/dovecot/core/commit/b23317e6678eb8fb23a8761b89ef8ec02d584511
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-01-23 (Sat, 23 Jan 2016)

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

  Log Message:
  -----------
  auth: Apply override_fields to userdb also when continuing to the next userdb.


Compare: https://github.com/dovecot/core/compare/57591c5ea045...b23317e6678e


More information about the dovecot-cvs mailing list