[Libreoffice-commits] core.git: connectivity/source

Wastack btomi96 at gmail.com
Wed Oct 26 07:52:59 UTC 2016


 connectivity/source/drivers/firebird/Connection.cxx |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

New commits:
commit 41832d27c3325808333c21b9181db84ae9788978
Author: Wastack <btomi96 at gmail.com>
Date:   Sat Oct 22 15:28:59 2016 +0200

    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 at libreoffice.org>
    Reviewed-by: Lionel Elie Mamane <lionel at mamane.lu>

diff --git a/connectivity/source/drivers/firebird/Connection.cxx b/connectivity/source/drivers/firebird/Connection.cxx
index 17528d7..48ebba5 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
             {


More information about the Libreoffice-commits mailing list