The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Nasty PostgreSQL + Kerberos interaction

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Daniel Berger

Posts: 1383
Nickname: djberg96
Registered: Sep, 2004

Daniel Berger is a Ruby Programmer who also dabbles in C and Perl
Nasty PostgreSQL + Kerberos interaction Posted: Jan 13, 2010 3:45 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Daniel Berger.
Original Post: Nasty PostgreSQL + Kerberos interaction
Feed Title: Testing 1,2,3...
Feed URL: http://djberg96.livejournal.com/data/rss
Feed Description: A blog on Ruby and other stuff.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Daniel Berger
Latest Posts From Testing 1,2,3...

Advertisement
We've been using Kerberos as part of our single signon solution at $WORK. We also use PostgreSQL for most of our database needs. Well, for the Rails apps, anyway.

On our preview box we have an older version of PostgreSQL (8.1.x). I was tinkering with kerberos (using kinit) on the preview box Monday.

That's when things started to go awry for one of our Rails apps.

For some reason that had us completely baffled it was trying to use the wrong database username. Not so coincidentally, the name it was trying to use happened to match the latest kerberos principal name.

Upon reading the latest and greatest PostgreSQL (8.4.x) documentation, I found this in the release note:

Previously, a Kerberos-capable build of libpq would use the principal name from any available Kerberos ticket as default database username, even if the connection wasn’t using Kerberos authentication. This was deemed inconsistent and confusing. The default username is now determined the same way with or without Kerberos. Note however that the database username must still match the ticket when Kerberos authentication is used.

Sweet mother of Jesus! Are you F****** kidding me?

So, ladies and gentleman, be sure to upgrade your PostgreSQL installs if you plan on working with Kerberos anytime soon.

Read: Nasty PostgreSQL + Kerberos interaction

Topic: Removing tags on remote Git repositories Previous Topic   Next Topic Topic: Good Ruby Documentation

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use