fbconnect | fbconnect repo - / * Id : README | REST library
kandi X-RAY | fbconnect Summary
kandi X-RAY | fbconnect Summary
/* $Id: README.TXT,v 1.12 2010/03/21 16:26:03 vectoroc Exp $ */.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of fbconnect
fbconnect Key Features
fbconnect Examples and Code Snippets
Community Discussions
Trending Discussions on fbconnect
QUESTION
I have a pretty strange problem when trying to connect my C# program to an existing Firebird server.
First of all, this is reproducable with the default connection example from the Firebird documentation at https://github.com/FirebirdSQL/NETProvider/blob/master/Provider/docs/ado-net.md
...ANSWER
Answered 2021-Mar-11 at 12:26Thanks to Mark Rotteveel for the comment which got me to the solution.
I can connect with the default password "masterkey", so it is obvious that the srp user was created with the default credentials and therefore a connection with the other credentials is not possible.
I have to correct the users in my old server. Thanks for the hint that ADO.NET only supports srp.
QUESTION
ANSWER
Answered 2021-Mar-03 at 23:07You are using FirebirdSql.EntityFrameworkCore.Firebird (7.10.1)
. This version doesn't support DbContext
scaffolding.
Try version-8.0.0
(currently in alpha3).
QUESTION
I have a regression with a TCP\IP connection string post a firebird 3 migration from v2.5. The FirebirdClient version is 4.6.1 but I've tested with the latest stable version and it also doesn't work (v7.10.1).
The error message is "Your user name and password are not defined. Ask your database administrator to set up a Firebird login".
The stacktrace:
...ANSWER
Answered 2021-Mar-01 at 09:29Recent versions of FirebirdSql.Data.FirebirdClient support the version 13-15 wire protocol of Firebird 3, and then only support Srp authentication. Your old version supported only up to the v12 protocol (Firebird 2.5) and then would use the legacy authentication. If you created the user using the Legacy_UserManager (the default in your configuration), then you cannot authenticate with version 7.10.1 (where you could with 4.6.1), because as far as the Srp authentication plugin is concerned, the user does not exist.
It looks like you created the user either using gsec, which always applies the default user manager (FYI, gsec is deprecated since Firebird 3), or you used CREATE USER
without USING PLUGIN Srp
(or with USING PLUGIN Legacy_UserManager
). You can verify this by checking the output of select sec$user_name, sec$plugin from sec$users
. The solution would be to drop the user and then create it again with the right user manager (USING PLUGIN Srp
).
Note that in theory you could have the user both for Srp and Legacy_UserManager (e.g. if the same user needs to be used by an application that cannot authenticate with Srp), but it is far more secure to have the user only exist for one plugin.
On a related note, the configuration you have applied is insecure. It is far more secure to leave out Legacy_Auth
of the AuthServer
setting or - if you still have applications that cannot apply Srp - to put it last (for both AuthServer
and AuthClient
). Similarly, it is recommended to put Legacy_UserManager
last in UserManager
(or leave it out entirely), so by default - if you use gsec, or don't include USING PLUGIN xxx
in CREATE USER
- it will create more secure Srp-type users.
QUESTION
At the first glance, my problem seems to be quite trivial. I have to read data from Firebird's database, but this database was created by someone else. Raw binary data (like pictures) is stored in BLOB SUB_TYPE TEXT
instead of BLOB SUB_TYPE BINARY
and this is the problem, because Firebird ADO.NET Data Provider (FirebirdSql.Data.FirebirdClient 7.10.1) converts binary data to a string and I cannot find a proper method in this driver that returns binary data as a byte array from BLOB SUB_TYPE TEXT
.
I was trying to reverse binary data converted to a string by provider but without success. I use this provider in the following way (simplified example):
...ANSWER
Answered 2021-Feb-12 at 19:17As indicated in the comments by Charlieface, you can use reader.GetBytes
.
Alternatively, you can force Firebird to represent the type as binary by explicitly casting it:
QUESTION
I would like to update a list of rows given by a list of IDs. Normally, the parameters of the query can be passed via the parameter property. But if I pass a list of IDs, Firebird will not accept the query. I'm using the FirebirdSql.Data.FirebirdClient from NuGet.
Code (simplified):
...ANSWER
Answered 2020-Nov-13 at 17:27I got kind of around the problem by simply using a foreach loop to update all the rows:
QUESTION
I use FirebirdSql.Data.FirebirdClient to connect to a Firebird database (WPF desktop app).
Server Version: WI-V3.0.5.33220 Firebird 3.0, and ADO.net provider version is 7.5.0 (NuGet)
I created a user other than SYSDBA that only has read only access to the tables (only SELECT). Connecting with FlameRobin works without problems with this new user. However, when I specify this new user and corresponding read-only role in the FbConnectionStringBuilder class, I get a
"your username and password are not defined"
error. If I replace the new user by SYSDBA and corresponding password, the connection works.
...ANSWER
Answered 2020-Nov-11 at 14:56The problem is that, when connecting to Firebird 3, the Firebird ADO.net provider (FirebirdSql.Data.FirebirdClient) only supports the new SRP authentication plugin, not the Legacy_Auth authentication plugin. If your user is created using the Legacy_UserManager, then you cannot authenticate using the Firebird ADO.net provider. You need to create the user using Srp.
Depending on your exact Firebird config, you need to add Srp
to the UserManager
config list, and then create the user with:
QUESTION
I would like to safely drop Firebird table. I have 3 transactions, one to recreate table, one to do something with the table (just inserting a single row to keep it simple) and the last one to drop the table. If all these txns are executed using single connection these works. If I use a different connection, then the drop command fails with
...lock conflict on no wait transaction unsuccessful metadata update object TABLE "DEMO" is in use
ANSWER
Answered 2020-Sep-29 at 16:00As far as I understand it, the problem has to do with how Firebird caches certain metadata, which might result in existence locks being retained, which will prevent deletion of the object. In addition, it is possible - this is a guess! - that the Firebird ADO.net provider retains the statement handle with the insert statement prepared, which will also result in an existence lock being retained.
Executing in a WAIT transaction (optionally with a timeout) is considered an appropriate workaround by the Firebird core developers.
For reference, see the following tickets:
- CORE-3766 - Transaction can`t change metadata if it is run in no_wait and there is another connect that once had queried these metadata
- CORE-6382 - Triggers accessing a table prevent concurrent DDL command from dropping that table
In certain cases, switching from Firebird ClassicServer or Firebird SuperClassic to Firebird SuperServer can also prevent this problem.
However, if you want a more in-depth explanation, it might be worthwhile to ask this question on the firebird-devel mailing list.
QUESTION
[["seller" , [["id" , "1"], ["name", "test"]]], ["token", "aasfgsgd"], ["settings", [["general", false], ["store", [["trusted", true], ["socialMedia", [["fbConnected", true], ["igConnected", false]]]]]]]]
...ANSWER
Answered 2020-Sep-10 at 10:52You can use Object.fromEntries()
with a recursive function to convert all nested [[key, value], ...]
pair arrays into objects themselves.
The Object.fromEntries()
method is able to take an array such as:
QUESTION
There are the following parameters: I use the FirebirdSql.Data.FirebirdClient library in asp .net Now, at the test level, I connect to the remote database using the line:
...ANSWER
Answered 2020-Aug-05 at 14:31If 'public ip' is a publicly routed IP address, and port 3050 is open to the whole world, that is not safe. Don't expose your database server to the world, it will create a very wide attack surface to get at your data.
For example, Firebird 2.5 and earlier have a very weak authentication system (max 8 character passwords), and while Firebird 3 introduces a new, more secure authentication mechanism that allows much longer passwords, for various reasons, a lot of servers are still configured with the weak authentication (also) enabled. Also consider bugs that might allow people to circumvent authentication, or that could allow people to remotely crash your database server, etc.
As to encryption, Firebird 2.5 and earlier have no encryption of the connection. This was introduced in Firebird 3, and only for connections authenticating with the new SRP (Secure Remote Password) authentication mechanism, and only if the WireCrypt
setting of the server is Required
or Enabled
and the client actually requests authentication. For C#, this requires Firebird ADO.net provider version 7.0.0.0 or higher. However, the wire protocol encryption offered in Firebird 3 is the relatively insecure RC4 encryption; Firebird 4 will introduce ChaCha-20 as an alternative wire protocol encryption.
So, your database should be on the same network as your application, preferably on an IP address that is not routable over the internet (ie in one of the private ranges), or at least shielded from the internet by a firewall. If for some reason you need to connect to a remote database over the internet, do not expose the database directly to the internet, but use a VPN solution, or maybe something like an SSH-based tunnel.
And as corradolab points out in their answer, don't use masterkey
as a password for SYSDBA. In fact, don't use SYSDBA for your application to connect, but create a specific user and assign it the necessary but minimal rights for it to do its work.
QUESTION
I have a project with firebase set up, and I have a function set up similarly to the sample from firebase, but the firebase document updates @Published vars in my observable object:
...ANSWER
Answered 2020-Jul-25 at 01:32Welcome to Stackoverflow. Relax, you and the SDK are doing it nothing wrong. The very first read you are experiencing is due to the initial state of your data.
See the doc View changes between snapshots :
https://firebase.google.com/docs/firestore/query-data/listen#view_changes_between_snapshots
Important: The first query snapshot contains added events for all existing documents that match the query. This is because you're getting a set of changes that bring your query snapshot current with the initial state of the query. This allows you, for instance, to directly populate your UI from the changes you receive in the first query snapshot, without needing to add special logic for handling the initial state.
The initial state can come from the server directly, or from a local cache. If there is state available in a local cache, the query snapshot will be initially populated with the cached data, then updated with the server's data when the client has caught up with the server's state.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install fbconnect
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page