|
Trigger and current_user or computer IP/name (Firebird 3.0)
|
|||
---|---|---|---|
#18+
Код: sql 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28.
My problem: current_user is always SYSDBA, USER_IP is always null. How to get PC name instead of IP address? I have current user logged in Delphi application. How to update current_user value? Thanks, Fred ... |
|||
:
Нравится:
Не нравится:
|
|||
11.01.2019, 00:17 |
|
Trigger and current_user or computer IP/name (Firebird 3.0)
|
|||
---|---|---|---|
#18+
Перестань подключаться в embedded режиме. Читай Release Notes. Posted via ActualForum NNTP Server 1.5 ... |
|||
:
Нравится:
Не нравится:
|
|||
11.01.2019, 01:34 |
|
Trigger and current_user or computer IP/name (Firebird 3.0)
|
|||
---|---|---|---|
#18+
Dimitry Sibiryakov, I do not use embedded mode - local database access. Thanks, Fred ... |
|||
:
Нравится:
Не нравится:
|
|||
11.01.2019, 02:07 |
|
Trigger and current_user or computer IP/name (Firebird 3.0)
|
|||
---|---|---|---|
#18+
I've got host name of computer by using other query: Код: sql 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32.
How can I get user name? We are using our own login system so only apps knows who was login. ... |
|||
:
Нравится:
Не нравится:
|
|||
11.01.2019, 03:01 |
|
Trigger and current_user or computer IP/name (Firebird 3.0)
|
|||
---|---|---|---|
#18+
1. Use SRC tag (button) for SQL queries and scripts. 2. Show your connection params/connection string. Posted via ActualForum NNTP Server 1.5 ... |
|||
:
Нравится:
Не нравится:
|
|||
11.01.2019, 09:20 |
|
Trigger and current_user or computer IP/name (Firebird 3.0)
|
|||
---|---|---|---|
#18+
On user login you can save his US_NAME: Код: plsql 1.
Then you can use: Код: plsql 1.
... |
|||
:
Нравится:
Не нравится:
|
|||
11.01.2019, 10:13 |
|
Trigger and current_user or computer IP/name (Firebird 3.0)
|
|||
---|---|---|---|
#18+
FredFF, it is a VERY bad idea to select mon$ within triggers. You may get exponential performance decrease by the number of users. ... |
|||
:
Нравится:
Не нравится:
|
|||
11.01.2019, 10:55 |
|
Trigger and current_user or computer IP/name (Firebird 3.0)
|
|||
---|---|---|---|
#18+
FredFFI do not use embedded mode - local database access. Read Release Notes at last. In Firebird 3.0 it IS embedded mode. Posted via ActualForum NNTP Server 1.5 ... |
|||
:
Нравится:
Не нравится:
|
|||
11.01.2019, 13:48 |
|
Trigger and current_user or computer IP/name (Firebird 3.0)
|
|||
---|---|---|---|
#18+
FredFFlocal database access. in addition to DS answer need to add, that "local access" is not equal to tcp localhost access. When you do not specify server at the connection string, like server:c:\db\data.fdb or localhost:c:\db\data.gdb this is NOT a tcp connection, So, it is strange to expect IP in mon$attachments (or anywhere) while there is no IP. And, if you use your own login system (all users are logged as SYSDBA or other USER), just pass user name from the client application, that's it. ... |
|||
:
Нравится:
Не нравится:
|
|||
11.01.2019, 14:35 |
|
|
start [/forum/topic.php?fid=40&msg=39758201&tid=1560846]: |
0ms |
get settings: |
9ms |
get forum list: |
12ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
87ms |
get topic data: |
11ms |
get forum data: |
3ms |
get page messages: |
45ms |
get tp. blocked users: |
1ms |
others: | 14ms |
total: | 188ms |
0 / 0 |