Firebird SQL User Management with 2.5 and up

dolphinbobo

Member
Joined
Dec 19, 2006
Messages
12
Reaction score
1
Location
Congo
Bonjour

The link hereafter provides some information on the subject :

http://www.firebirdsql.org/refdocs/langrefupd25-security-sql-user-mgmt.html

Where can I get more information and especially on how to retrieve all
the users registered on a server and on a database within that server
with some simple sql constructions like "select ...." to be "executed" in
a delphi program ?

Thank you.
 
Last edited by a moderator:

megaevgen

Member
Joined
May 5, 2009
Messages
17
Reaction score
0
Age
34
Получить Select-запросом всех пользователей сервера в 2.5 нельзя. Только через API (для Delphi например через TIBSecurityService).
 

zgembo

New member
Joined
Dec 22, 2008
Messages
3
Reaction score
0
Age
50
As megaevgen suggested, only Services API can help you here.
I am not sure about Firebird 3.0...
 

zgembo

New member
Joined
Dec 22, 2008
Messages
3
Reaction score
0
Age
50
Have you tried Firebird 3.0? I think I read few days ago that you can use SQL to do what you want...
 

ofisoft

New member
Joined
Dec 31, 2015
Messages
1
Reaction score
0
how to protect Firebird database from being copied to another machine running Firebird with known sysdba password?
 

peaktop

Member
Joined
Apr 6, 2009
Messages
151
Reaction score
986
FirebirdSQL has client-server architecture. If You have an access to database file, You have access to all data.

So, my advice to You is: You should to stop wasting time on nonsense actions.


--------------
There is an dirty hack:

1) create user "MY_INTERNAL_USER".
2) grant all rights in the database to user "MY_INTERNAL_USER"
3) login to database with user "MY_INTERNAL_USER"
4) create role "SYSDBA" in the database.
5) revoke all rights from role "SYSDBA"

After that, You can to connect with "SYSDBA" to database. But You cannot to see any object (table/view/procedure/etc..).

when You are installing Your software to customer, You should to create user "MY_INTERNAL_USER" programatically when installing process is in progress.
Because Firebird(2.5 and lower) does not to store users in database. It stores users in his own users-database "SECURITYXX.FDB".

----------
This dirty hack cannot to stop Firebird-DBA to connect to Your data.
But it can to stop Script kiddie. =)
 

kouvaev

Member
Joined
Mar 23, 2009
Messages
26
Reaction score
1
anyone tried firebird database on android?

На самом устройстве запускать сервер проблематично - не справитесь. Но есть нативный клиент от Firebird 3 на Java для доступа к уделенному серверу (можно и 2.5). Мне через месяц сдавать проект - доступ к базе с планшета на Android. Отпишусь по окончании
 
Top