8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-26 07:23:08 +01:00
Commit Graph

194 Commits

Author SHA1 Message Date
alexpeshkoff
ef71c84596 Fixed CORE-3932: can create but cant delete user with username containing double quotes with gsec 2012-12-29 11:15:23 +00:00
alexpeshkoff
c7454a49a5 Work in progress (committed due to SF upgrade). Checked only on SS.
1. Frontported fix for CORE-3935 and CORE-3993.
2. Added debugging support for mutexes and rwlocks in Vulcan style.
Unfortunately after last 'svn up' build asserts in JrdStatement:71.
2012-12-14 17:59:02 +00:00
alexpeshkoff
2a01e4bcf9 Implemented CORE-3861: Make it possible to encrypt database
Also some cleanups, the most important are:                                                                                                                   
- meaningful ctor on Jrd::Lock, helping to avoid code dup                                                                                                     
- avoid unneeded h-file dependencies, making boot build engine dependent
2012-05-31 16:53:42 +00:00
alexpeshkoff
1ceb4847e1 Make plugins use passed instance of master interface, not one got from fb_get_master_interface(). This helps in case when >1 fbclient libraries is loaded by process. 2012-03-26 11:34:52 +00:00
asfernandes
1758b1fdbe Misc. 2012-03-10 15:37:52 +00:00
hvlad
adf02dd070 Misc 2012-03-01 15:27:23 +00:00
alexpeshkoff
4e795f4047 Include platform definitions file common.h in firebird.h. Use OS-specific ThreadId instead artificial FB_THREAD_ID, avoiding unneeded casts in the code. This should fix BSD and MAC ports. 2012-03-01 08:55:43 +00:00
asfernandes
435666cea5 Misc. 2012-02-26 14:27:27 +00:00
alexpeshkoff
2a5e7e7f32 Implemented CORE-672: "Over the wire" connection encryption 2012-02-24 12:39:27 +00:00
robocop
21cd78a0fd Cleanup: unused functions, parameters & variables. 2012-01-24 03:37:43 +00:00
robocop
e2914070b9 Misc. 2012-01-19 04:54:39 +00:00
alexpeshkoff
a0371269e2 Make SRP management plugin notify caller when user to alter/drop is missing 2012-01-03 16:14:41 +00:00
alexpeshkoff
c31aea58ed Diagnostics 2011-12-26 16:06:00 +00:00
alexpeshkoff
ce026f29ec Fixed init/fini order in srp 2011-12-26 14:33:59 +00:00
dimitr
83831b130c This should fix the trusted authentication. 2011-12-26 12:26:15 +00:00
alexpeshkoff
6631bc93a9 Moved big integer implementation to common dir 2011-12-26 09:16:24 +00:00
dimitr
4ed4dae375 Correction. 2011-12-26 08:50:28 +00:00
asfernandes
359f74e73a Misc. 2011-12-24 18:08:13 +00:00
alexpeshkoff
7fb8ebd3a9 Fixed CORE-1898: Increase the password length from 8 characters, CORE-3372: Simplify process of non-default security database creation 2011-12-23 12:43:58 +00:00
asfernandes
906ea4729e Misc. 2011-10-27 01:04:14 +00:00
alexpeshkoff
3513087d98 Fixed services to make them work with trusted auth emulator and old client 2011-10-20 12:20:33 +00:00
alexpeshkoff
705d0b90de misc 2011-10-10 17:15:20 +00:00
asfernandes
eb5689ef0e Misc. 2011-10-07 02:33:02 +00:00
dimitr
0130da039f Fixed the Windows build. 2011-10-05 17:14:35 +00:00
alexpeshkoff
1eb6cbbaef Added forgotten upgradeInterface() - thanks to Claudio 2011-10-05 10:31:02 +00:00
alexpeshkoff
70ddf7a875 Make services work correctly with multiple security databases 2011-10-04 12:51:57 +00:00
asfernandes
e1c4f46df2 Misc. 2011-08-13 17:07:01 +00:00
alexpeshkoff
b76a2d8c47 Getting ready for support of multiple security databases in services 2011-08-09 12:11:17 +00:00
hvlad
c994f7e32a Make legacy (security database based) user management plugin consistent :
- binary name changed from user_management.dll to legacy_usermanager.dll (on Windows only, POSIX will follow soon)
- registration name was changed from "Legacy_Auth" to "Legacy_UserManager" (see UserManager setting in firebird.conf)
2011-06-30 13:17:04 +00:00
alexpeshkoff
18ef64b242 Fixed UnloadDetector in a case when it gets linked in non-plugin module 2011-06-14 11:34:26 +00:00
alexpeshkoff
40348295e1 Used upgradeInterface() in a number of places.
Fixed memory leak when unloading module, related with upgraded interfaces.
Fixed timer on posix to be high resolution.
Better diagnostic in services.
2011-06-10 12:53:51 +00:00
asfernandes
5ffa6c77c8 Move v3 public include files to src/include/firebird. 2011-06-02 15:57:08 +00:00
alexpeshkoff
4641d2de68 Better interfaces hierarchy: all of them are derived from IVersioned 2011-05-19 16:24:46 +00:00
asfernandes
8be570289d Misc 2011-04-09 19:27:59 +00:00
alexpeshkoff
4c3f87d6bd Continued renaming interfaces. Added comments 2011-04-08 15:18:50 +00:00
alexpeshkoff
5c88e478f6 Use better names for a number of objects according to Vlad's suggestion 2011-04-07 17:16:00 +00:00
asfernandes
b688dc04a8 Misc 2011-04-01 02:05:19 +00:00
alexpeshkoff
d01a33a865 Try to fix windows build 2011-03-31 15:22:17 +00:00
alexpeshkoff
9ef53b65e0 Remove reference counting where not appropriate 2011-03-31 13:44:22 +00:00
alexpeshkoff
d49998e9fb Missed return value - thanks to Vlad 2011-03-18 14:45:14 +00:00
alexpeshkoff
f6914b8db0 Added timer-related interfaces. Added helper method to wait for plugin to be released on shutdown. Misc stability changes in PluginManager. 2011-03-16 11:04:04 +00:00
asfernandes
146448b877 Misc 2011-03-06 01:06:36 +00:00
alexpeshkoff
0a7c3fc69d Fixed CORE-3369: first step to make it possible to specify non-default security database for specific database 2011-03-02 13:42:56 +00:00
alexpeshkoff
118dba6507 Letting exceptions get out of shutdown function was wrong idea 2011-01-24 16:34:04 +00:00
hvlad
dca44e309d Make it compiles on Windows after Alex's changes. MSVC10 build will follow later. 2011-01-24 12:51:32 +00:00
alexpeshkoff
ddaddccb97 Fixed bug, found by Adriano - destructor of statically allocated factory should better never be called 2011-01-17 12:17:24 +00:00
alexpeshkoff
d6fcde387b New plugin manager. Use it for all types of plugins. 2011-01-14 17:31:40 +00:00
alexpeshkoff
8e10d76be9 Simplified code - thanks to Claudio 2010-12-04 11:16:51 +00:00
asfernandes
d9437d3cbb Misc 2010-11-27 13:54:57 +00:00
alexpeshkoff
c8293cd935 Fixed CORE-3259: Deadlock and sefgault when processing ctrl-C in user code 2010-11-25 12:22:39 +00:00
dimitr
b21ba34b67 Fixed Windows build. 2010-10-31 13:17:54 +00:00
alexpeshkoff
0ab6c4abf7 Avoid throwing C++ exceptions from authentication plugins 2010-10-28 08:02:42 +00:00
hvlad
d5833b72f0 Windows-specific hack to register security plugins seems obsolete with new build 2010-10-21 11:45:37 +00:00
alexpeshkoff
e05c1a825f Moved some more .h-files to common from jrd as Vlad suggested 2010-10-13 10:39:52 +00:00
asfernandes
91384eb587 Misc 2010-10-12 17:40:27 +00:00
alexpeshkoff
8331d830ee Some more forgotten files 2010-10-12 11:34:14 +00:00
alexpeshkoff
2dc25a44bb OSRI and new posix build 2010-10-12 08:02:57 +00:00
asfernandes
2cbc4e3675 Misc 2010-07-24 02:43:28 +00:00
hvlad
2de56fdeef Forgotten changes 2010-07-23 14:39:21 +00:00
hvlad
6e2db049ea Make Windows build work (MSVC8 only) after Alex changes.
Some corrections is still required.
2010-07-23 14:06:29 +00:00
alexpeshkoff
d24cd9cbd7 Implemented self-registering plugins format (same plugin can be easily linked statically
or as dynamic library, depending upon platform requirements). Self-registering plugins
need not export any functions, instead they call fb_register_plugin() on startup.

Reworked all user management to use self-registering plugins.

Removed system table RDB$USERS. PLG$USERS is not created automatically by plugin, but
will be later (work in progress).
2010-07-23 12:04:18 +00:00
asfernandes
e37d097240 Misc 2010-05-22 02:00:45 +00:00
dimitr
835ada7b02 Fixed the windows build. 2010-05-21 05:49:06 +00:00
alexpeshkoff
74a4aaacb6 Moved not auth-specific part of interface declaration to separate file 2010-05-20 15:02:31 +00:00
hvlad
3c20fd3e07 Make trusted auth works again.
To be reviewed by Alex.
2010-01-29 13:08:53 +00:00
asfernandes
a454b705d0 Misc 2010-01-28 15:01:57 +00:00
alexpeshkoff
b0321f78ff Better approach to const correctnes of auth interfaces - thanks to Claudio 2010-01-27 16:51:26 +00:00
alexpeshkoff
821efa3815 Avoid any chance of BOF in AUTH_TEST 2010-01-26 15:18:45 +00:00
alexpeshkoff
224d217791 This change appears required - look like noone still tried trusted auth 2010-01-26 10:11:05 +00:00
robocop
1d87d749f0 Misc. 2010-01-26 08:20:27 +00:00
robocop
1fa0e641f9 Method getName allows to overwrite the returning parameter. Let's not cheat const (until someone figures out a more elegant solution). 2010-01-26 07:37:05 +00:00
alexpeshkoff
ed97d016c0 Added missing license 2010-01-25 11:36:27 +00:00
robocop
ffc38b12f6 Totally misc. 2010-01-25 06:40:49 +00:00
asfernandes
eb9eef9d77 Misc 2010-01-24 15:18:43 +00:00
dimitr
7f0b8af499 Fixed the compilation. 2010-01-23 10:18:55 +00:00
alexpeshkoff
55e717f810 Moved authentication code from engine to remote listener.
Get ready for authentication plugins.
2010-01-22 14:55:11 +00:00
asfernandes
ff5f8745fb Remove trailing spaces (.h files) 2008-12-05 00:56:15 +00:00
robocop
9f52942ab0 Style. 2008-12-02 07:09:49 +00:00
robocop
1cdd4e4126 Clean the sources from VC6 hacks. 2008-05-14 05:17:53 +00:00
dimitr
f7941cca12 The merge continued. 2008-01-16 05:58:53 +00:00
dimitr
fb02b3e45e Fixed CORE-1602. 2007-11-19 10:36:49 +00:00
skidder
f269c32ca6 Fix the server crash with Trusted Auth on 64-bit Vista. Access token is the handle, not a pointer. Attempt to deallocate the handle crash the server. In other configurations it seems OS memory manager does the check against the passed value to check if it is the valid pointer 2007-10-28 12:25:03 +00:00
aafemt
019d1499e9 More explicit check for compiler as requested by Claudio 2007-02-08 08:06:00 +00:00
asfernandes
90337587ff Misc 2007-02-08 00:03:36 +00:00
aafemt
604d85dc77 Fix MinGW build 2007-02-06 12:18:18 +00:00
robocop
77f0788ba0 Misc. 2007-02-02 10:56:53 +00:00
asfernandes
c3d64106e0 Misc 2007-01-26 01:24:48 +00:00
robocop
5eae01a8a9 I'm simply following Alex changes to MSVC7 to get rid of static dependency on secur32.lib for now, editing the files by hand. I noticed that VC8's fbclient.vcproj and fbembed.vcproj don't include AuthSspi.h explicitly, but that should be irrelevant. 2007-01-23 08:24:35 +00:00
alexpeshkoff
06804e82ec Use dynamic loadind of secur32.dll - some extremely old
NT4 do not have one.
2007-01-20 17:19:58 +00:00
robocop
a045b048c7 Totally misc. 2006-12-20 08:22:16 +00:00
alexpeshkoff
7e8b9446f7 Added some comments 2006-12-17 15:51:27 +00:00
robocop
4afa6a29cb Misc. 2006-12-17 09:09:39 +00:00
asfernandes
854d870d8f Misc 2006-12-10 00:16:00 +00:00
alexpeshkoff
1a4652f01a Trusted authentication for windows 2006-12-08 18:38:15 +00:00