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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors