【发布时间】:2014-06-29 00:56:46
【问题描述】:
我有一个 windows c++ 应用程序,它使用 libpq 与 PostgreSQL 一起工作。
我的代码是:
std::string conninfo = "host=localhost port=5432 dbname=test connect_timeout=10";
_connectionHandlerPtr = PQconnectdb(conninfo.c_str());
现在我需要使用 MIT Kerberos 进行身份验证。 我安装了 MIT Kerberos。
我需要在我的代码中做什么? 我需要在 PostgreSQL 配置中更改什么?
【问题讨论】:
标签: c++ postgresql kerberos libpq