Issue Details (XML | Word | Printable)

Key: CORE-3658
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Alexander Peshkov
Reporter: Pavel Zotov
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Firebird Core

FBSVCMGR connects to server as OS user name rather than value of ISC_USER environment variable

Created: 11/Nov/11 11:47 AM   Updated: 23/Apr/13 01:24 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 2.1.5, 2.5.2, 3.0 Alpha 1

Time Tracking:
Not Specified

Planning Status: Unspecified


 Description  « Hide
The following command, being issued WITHOUT specifying username and password:

./bin/fbsvcmgr service_mgr action_trace_start trc_name "p1" trc_cfg ./fbtrace_probe01.conf

-- displays only starting message ("Trace session ID nnn started") and no any other messages about activity are displayed.

Enabling logging services in trace config shows that FBSVCMGR connects in such case as 'firebird' rather than 'SYSDBA' - even when ISC_USER and ISC_PASSWORD are defined.

./bin/fbsvcmgr service_mgr action_trace_start trc_name "p1" trc_cfg ./fbtrace_probe01.conf

Trace session ID 24 started
2011-11-11T13:35:34.2800 (31731:0x7fc608043810) TRACE_INIT
        SESSION_24 p1

2011-11-11T13:35:34.2800 (31731:0x7fc608043810) START_SERVICE
        service_mgr, (Service 0x7fc60a1dccc0, firebird, internal)
        "Start Trace Session"
        -TRUSTED_SVC firebird -START -NAME p1 -CONFIG <services>
  enabled true
  log_services true
</services>
<database %[\\/](test123).fdb>
  enabled true
  log_filename /var/db/firebird/fbtrace_probe01.log
  log_connections true
  time_threshold 0
</database>

PS. 'firebird' in this case is the same name as OS user that I'm using to login in Linux

 All   Comments   Work Log   Change History   Version Control   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Alexander Peshkov added a comment - 30/Dec/11 02:14 PM
For FB3 make services pick up environment variables like database attach/create does. For older branches just fixed services manager utility.