From 5226b42560e3965c23973ddaf157477f191fdbbb Mon Sep 17 00:00:00 2001 From: "Andrzej J.R. Hunt" Date: Tue, 30 Jul 2013 20:35:01 +0200 Subject: [PATCH] Ignore authentication for embedded db (firebird-sdbc). This turns off firebird's internal SQL authentication -- previously tables were created and/or access validated using the current user's name leading to issues when a .odb file is shared amongst different users. Change-Id: I86615c17c3045aac19d635ee41d76673d1b64530 --- connectivity/source/drivers/firebird/FConnection.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/connectivity/source/drivers/firebird/FConnection.cxx b/connectivity/source/drivers/firebird/FConnection.cxx index c81d698ff518..6fb85789d288 100644 --- a/connectivity/source/drivers/firebird/FConnection.cxx +++ b/connectivity/source/drivers/firebird/FConnection.cxx @@ -207,7 +207,13 @@ void OConnection::construct(const ::rtl::OUString& url, const Sequence< Property *dpb++ = FIREBIRD_SQL_DIALECT; // Do any more dpbBuffer additions here - if (!m_bIsEmbedded) // TODO: || m_bIsLocalFile + if (m_bIsEmbedded) // TODO: || m_bIsLocalFile + { + *dpb++ = isc_dpb_trusted_auth; + *dpb++ = 1; // Length of data + *dpb++ = 1; // TRUE + } + else { // TODO: parse password from connection string as needed? }