• Stephen Frost's avatar
    Change default for include_realm to 1 · 9a088417
    Stephen Frost authored
    The default behavior for GSS and SSPI authentication methods has long
    been to strip the realm off of the principal, however, this is not a
    secure approach in multi-realm environments and the use-case for the
    parameter at all has been superseded by the regex-based mapping support
    available in pg_ident.conf.
    
    Change the default for include_realm to be '1', meaning that we do
    NOT remove the realm from the principal by default.  Any installations
    which depend on the existing behavior will need to update their
    configurations (ideally by leaving include_realm set to 1 and adding a
    mapping in pg_ident.conf, but alternatively by explicitly setting
    include_realm=0 prior to upgrading).  Note that the mapping capability
    exists in all currently supported versions of PostgreSQL and so this
    change can be done today.  Barring that, existing users can update their
    configurations today to explicitly set include_realm=0 to ensure that
    the prior behavior is maintained when they upgrade.
    
    This needs to be noted in the release notes.
    
    Per discussion with Magnus and Peter.
    9a088417
hba.c 58.1 KB