diff options
author | Andrzej J.R. Hunt <andrzej@ahunt.org> | 2013-07-30 20:35:01 +0200 |
---|---|---|
committer | Andrzej J.R. Hunt <andrzej@ahunt.org> | 2013-07-30 20:47:02 +0200 |
commit | 5226b42560e3965c23973ddaf157477f191fdbbb (patch) | |
tree | 59801412dd5dcec7f8f7eb8258db6f91c9f5624a | |
parent | 470daf5ce02924f31b7cb8a95c921427cfb4d277 (diff) |
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
-rw-r--r-- | connectivity/source/drivers/firebird/FConnection.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
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? } |