\r
Date Dev Ver Change details\r
---------- --- ------ --------------\r
-2009-03-31 DP 1.10.0 Support ldap, gss and sspi authentication methods in the\r
- pg_hba.conf editor.\r
+2009-03-31 DP 1.10.0 Support ldap, gss, sspi & cert authentication methods in\r
+ the pg_hba.conf editor.\r
2009-03-27 DP 1.10.0 Remove the 'use tab key for autocomplete' option as it\r
breaks other editor features for little gain.\r
2009-03-19 DP 1.10.0 Ensure that dependencies between tables and sequences\r
cbMethod->Append(wxT("gss"));
cbMethod->Append(wxT("sspi"));
}
+
+ // CERT is supported from 8.4
+ if (conn->BackendMinimumVersion(8, 4))
+ {
+ cbMethod->Append(wxT("cert"));
+ }
}
else
{
cbMethod->Append(wxT("ldap"));
cbMethod->Append(wxT("gss"));
cbMethod->Append(wxT("sspi"));
+ cbMethod->Append(wxT("cert"));
}
if (conn)
needOption = true;
}
else if (cbMethod->GetCurrentSelection() == pgHbaConfigLine::PGC_GSS ||
- cbMethod->GetCurrentSelection() == pgHbaConfigLine::PGC_SSPI)
+ cbMethod->GetCurrentSelection() == pgHbaConfigLine::PGC_SSPI ||
+ cbMethod->GetCurrentSelection() == pgHbaConfigLine::PGC_KRB5 ||
+ cbMethod->GetCurrentSelection() == pgHbaConfigLine::PGC_PAM ||
+ cbMethod->GetCurrentSelection() == pgHbaConfigLine::PGC_CERT)
{
- // GSS/SSPI take options from 8.4 onwards. If we don't know the version
+ // GSS/SSPI/KRB5/PAM/CERT take options from 8.4 onwards. If we don't know the version
// then allow the option to be specified.
if (conn)
{
needOption = true;
}
+ // On 8.4 and above, any hostssl lines can take an option
+ if (cbType->GetCurrentSelection() == pgHbaConfigLine::PGC_HOSTSSL)
+ {
+ if (conn)
+ {
+ if (conn->BackendMinimumVersion(8, 4))
+ needOption = true;
+ }
+ else
+ needOption = true;
+ }
+
stOption->Enable(needOption);
txtOption->Enable(needOption);