diff options
| author | Magnus Hagander | 2016-04-08 18:23:52 +0000 |
|---|---|---|
| committer | Magnus Hagander | 2016-04-08 18:28:38 +0000 |
| commit | 35e2e357cb054dc9e5d890fe754c56f0722f015e (patch) | |
| tree | dc0f1d97c14e7ea3703f3b8bbf98e0d0237250be /src/include/libpq | |
| parent | cb0c8cbf316f9362c11d7a8356e6f459258ae78e (diff) | |
Add authentication parameters compat_realm and upn_usename for SSPI
These parameters are available for SSPI authentication only, to make
it possible to make it behave more like "normal gssapi", while
making it possible to maintain compatibility.
compat_realm is on by default, but can be turned off to make the
authentication use the full Kerberos realm instead of the NetBIOS name.
upn_username is off by default, and can be turned on to return the users
Kerberos UPN rather than the SAM-compatible name (a user in Active
Directory can have both a legacy SAM-compatible username and a new
Kerberos one. Normally they are the same, but not always)
Author: Christian Ullrich
Reviewed by: Robbie Harwood, Alvaro Herrera, me
Diffstat (limited to 'src/include/libpq')
| -rw-r--r-- | src/include/libpq/hba.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/libpq/hba.h b/src/include/libpq/hba.h index 58f90fec80d..dc7d2572eaa 100644 --- a/src/include/libpq/hba.h +++ b/src/include/libpq/hba.h @@ -79,6 +79,8 @@ typedef struct HbaLine bool clientcert; char *krb_realm; bool include_realm; + bool compat_realm; + bool upn_username; char *radiusserver; char *radiussecret; char *radiusidentifier; |
