Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
samuelf
Frequent Visitor

Error Message Connecting to PostgreSQL using SSPI

Hello,

 

I'm using Power BI Desktop 2.39.4526.362 64-bit (September 2016) and trying to connect to a PostgreSQL 9.4 database using SSPI authentication.

 

I can connect just fine using other clients (i.e. with python using psycopg2), however when I try to setup the postgres datasource in Power BI, I get the following error:

 

Details: "PostgreSQL: SSPI authentication but IntegratedSecurity not enabled

 

Error Message

 

EDIT: when I force change the postgres authentication from sspi to trust for my IP power BI can connect fine hence its definitly SSPI related. Keeping my authentication on trust is not my preferred solution though so any help would be greatly appreciated.

 

 

1 ACCEPTED SOLUTION

We'll look into adding Windows Authentication support for PostgreSQL soon, it'll take a few months for it to get released publicly.

 

Thanks for reporting this to us!

View solution in original post

12 REPLIES 12
arify
Employee
Employee

Hi @samuelf, what's your npgsql driver version?

 

Thanks

samuelf
Frequent Visitor

Hi @arify , I downloaded the latest one from github, hence Npgsql 3.1.8

Is your server set up to use Kerberos Authentication (Integrated Security/SSPI/Windows Authentication) or Database Username/Password?

samuelf
Frequent Visitor

It's setup for SSPI Windows Authentication - everything else connects without any issues i.e. Tableau or python using psycopg2

I see, thanks. Looks like PostgreSQL added SSPI support on server version 8.3, and we haven't updated ourselves accordingly. Just making sure, what's your server version?

samuelf
Frequent Visitor

PostgreSQL 9.4.4, compiled by Visual C++ build 1800, 64-bit

We'll look into adding Windows Authentication support for PostgreSQL soon, it'll take a few months for it to get released publicly.

 

Thanks for reporting this to us!

samuelf
Frequent Visitor

"it'll take a few months..."

 

try 4 years and no end in sight...

samuelf
Frequent Visitor

Same error exists 2 years later. Is there still any intention to add powerbi Windows Authentication support?

Anonymous
Not applicable

Any update on this?

samuelf
Frequent Visitor

Any ETA on PostgreSQL SSPI authentication?

samuelf
Frequent Visitor

Ah I see, thanks for letting me know.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors