summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorWastack <btomi96@gmail.com>2016-10-22 15:28:59 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2016-10-26 07:52:38 +0000
commit41832d27c3325808333c21b9181db84ae9788978 (patch)
tree241a49a90fbd4b552d6a308eb5eb67b4b4a8bc8e /connectivity
parentc5d2a18ef7dc7a9f29a948acef9e0d64a552cd63 (diff)
tdf#103373 create and connect with default user
For an embedded Firebird database resolve authentification with a default username and password (hardcoded) instead of trusted authentification. Change-Id: I54ee04898a8b2bedc9a24001c64173400769f416 Reviewed-on: https://gerrit.libreoffice.org/30160 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/firebird/Connection.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/connectivity/source/drivers/firebird/Connection.cxx b/connectivity/source/drivers/firebird/Connection.cxx
index 17528d714abc..48ebba59d62c 100644
--- a/connectivity/source/drivers/firebird/Connection.cxx
+++ b/connectivity/source/drivers/firebird/Connection.cxx
@@ -258,9 +258,8 @@ void Connection::construct(const ::rtl::OUString& url, const Sequence< PropertyV
if (m_bIsEmbedded || m_bIsFile)
{
- *dpb++ = isc_dpb_trusted_auth;
- *dpb++ = 1; // Length of data
- *dpb++ = 1; // TRUE
+ strcpy(userName,"sysdba");
+ strcpy(userPassword,"masterkey");
}
else
{