[dovecot/core] 74674a: auth: Moved cache_key from passdb_module to auth_p...

GitHub noreply at github.com
Thu Feb 11 17:17:06 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: 74674a53a72dab535c61f455b2246ef2797844ea
      https://github.com/dovecot/core/commit/74674a53a72dab535c61f455b2246ef2797844ea
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-02-11 (Thu, 11 Feb 2016)

  Changed paths:
    M src/auth/auth-request.c
    M src/auth/auth.c
    M src/auth/auth.h
    M src/auth/passdb-bsdauth.c
    M src/auth/passdb-dict.c
    M src/auth/passdb-ldap.c
    M src/auth/passdb-pam.c
    M src/auth/passdb-passwd-file.c
    M src/auth/passdb-passwd.c
    M src/auth/passdb-shadow.c
    M src/auth/passdb-sql.c
    M src/auth/passdb-vpopmail.c
    M src/auth/passdb.c
    M src/auth/passdb.h
    M src/auth/userdb-dict.c
    M src/auth/userdb-ldap.c
    M src/auth/userdb-nss.c
    M src/auth/userdb-passwd-file.c
    M src/auth/userdb-passwd.c
    M src/auth/userdb-sql.c
    M src/auth/userdb-vpopmail.c
    M src/auth/userdb.c
    M src/auth/userdb.h

  Log Message:
  -----------
  auth: Moved cache_key from passdb_module to auth_passdb.

This is in preparation for the next changeset, which moves
default/override_fields also to auth_passdb.


  Commit: 2d8f66596f445dd8b399b7032c3f0e9202015b63
      https://github.com/dovecot/core/commit/2d8f66596f445dd8b399b7032c3f0e9202015b63
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-02-11 (Thu, 11 Feb 2016)

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

  Log Message:
  -----------
  auth: Moved all passdb/userdb template handling to auth_passdb/userdb.

This is because passdb_find() and userdb_find() attempts to avoid
duplicating passdbs and userdbs when they have identical driver+args.
This deduplication is useful when using multiple protocol { .. } blocks
that duplicate some passdb/userdb backends. For example we might want
to have only a single SQL connection regardless of how the protocol-specific
passdbs and userdbs are being set up. All the default/override_fields and
result_* settings aren't relevant to the passdb/userdb backends, so removing
them will again allow the deduplication to work correctly.


Compare: https://github.com/dovecot/core/compare/e173fd380024...2d8f66596f44


More information about the dovecot-cvs mailing list