[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference pamsrc::objectbroker_development

Title:ObjectBroker Development - BEA Systems' CORBA
Notice:See note 2 for kit locations; note 4 for training
Moderator:RECV::GUMBELd
Created:Thu Dec 27 1990
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:2482
Total number of notes:13057

2470.0. "Security problem, is it a bug ?" by HOUBA::BOUCHETF () Thu Apr 17 1997 13:35

Hello,

I am completing a prototype for a customer in South Africa. Its goal 
is to facility the management of servers (both OBB and others). The
idea is to use an ObjectMgr server managing the creation, deletion,
start and stop of collection of ManagedObject (the ObjectManager also
inherits from ManagedObject). I currently have a security error that
I don't understand and I need your help.

Before to see the error, here is a simple scenario when two managed
objects are created and started one after the other (to avoid any 
concurrency aspects). 


Obje1tMgrAdmin          ObjectMgrServer      ManagedObject   ManagedObject
                                                Server#1        Server#2
      |                        |                   |               |
      |  createManagedObject   |                   |               |
    1 |----------------------->|                   |               |
      |                        |                   |               |
      |  startManagedObjects   |                   |               |
    2 |----------------------->| 2'  oneway start  |               |
      |                        |------------------>|               |
      |                        | notify(started) 2"|               |
      |                        |<------------------|               |
      |                        |                   |               |
      |  createManagedObject   |                   |               |
    3 |----------------------->|                   |               |
      |                        |                   |               |
      |  startManagedObjects   |                   |               |
    4 |----------------------->| 
      |                        | 4'                 oneway start   |
      |                        |---------------------------------->|
      |                        |  notify(started)               4" |
      |                        |<----------------------------------|


1, 3: createManagedObject
-------------------------
This operation creates a managed object reference and adds/appends
it to the list of managed objects. The object reference is created
with a static binding and the ServerId of the implementation is 
changed before using the OBB_BOA_set_impl_binding routine (a new
UUID is also generated each time).

2, 4: startManagedObjects
----------------------
This operation issues a start request to all the newly or stopped
managed objects currently in the list. As the start operation is 
defined as a oneway request type, the state of each processed 
managed object is set to "starting".

3', 4': start
-------------
This operation spawns the command associated to the managed object
(if any) and notify the ObjectManager of the start status: "Started"
or "Aborted". The ObjectManager updates the state of the managed 
in the list.

The problem is that everything works well when only one 
ManagedObject server is started, but it always fail when starting a 
second one:

========Received request for implementation 
            id 7bf82ed6c1d0.02.10.2c.30.11.00.00.00

Using Trusted Security package to verify request

**** Status of security verification of request: 
%OBB-E-INV_NOTAUTHORIZ, Client user is not authorized to access server. 

*** Dispatching Invocation Event

The problem does not seem to come the ObjectManager server, as I
can obtain the same problem changing the start priority of the 
managed objects and the log file indicates that a server is 
selected.

The behavior is the same when starting it manually specifying the 
ServerId or automatically retrieving the ServerId from the 
ObjectReference. You will find a couple of log files in the 
following notes:

    .1 List of all OBB servers running on the node
    .2 ObjectManagerServer log file   (flags=RTO)
    .3 ManagedObjectServer#1 log file (flags=IPQ)
    .4 ManagedObjectServer#2 log file (flags=IPQ)
    
Regarding the environment:

- VAX/VMS node V6.1
- Digital TCP/IP Services for OpenVMS VAX Version V4.0 (UCX)
- OBB V2.7-11, only TCP/IP configuration
- Both client and servers started from the same account (I have 
  not defined any proxy in OBB).

Thanks in advance for your help.

Cheers.

Frederic
T.RTitleUserPersonal
Name
DateLines
2470.1OBB servers informationHOUBA::BOUCHETFThu Apr 17 1997 13:3749
HOUBA::BOUCHETF_S7>obb show server

Implementation Servers on node HOUBA.geo.dec.com.

  Implementation Name                         Username      Status
  ------------------------------------------  ------------  ------
  NamingContextImpl                           bouchetf      Executing     
      Inst UUID:    7c1827397ac5.02.10.b8.50.10.00.00.00    Pid: 20200CB4
      Impl UUID:    508c0a7f9532.1d.40.33.45.06.70.2e.d9
      Registered at: Thu Apr 17 14:45:37 1997  

  Server has no attributes

  BindingIteratorImpl                         bouchetf      Executing     
      Inst UUID:    7c1827431171.02.10.b8.50.10.00.00.00    Pid: 20200CB4
      Impl UUID:    6958d49187c8.1d.75.78.99.af.1d.1e.aa
      Registered at: Thu Apr 17 14:45:39 1997  

  Server has no attributes

  ObjectManagerImpl                           bouchetf      Executing     
      Inst UUID:    7c1835157ac5.02.10.b8.50.10.00.00.00    Pid: 20200C45
      Impl UUID:    7bf82ed6c1d6.02.10.2c.30.11.00.00.00
      Registered at: Thu Apr 17 15:01:07 1997  

  Server has no attributes

  ManagedObjectImpl                           bouchetf      Executing     
      Inst UUID:    7c1835157ac6.02.10.b8.50.10.00.00.00    Pid: 20200C45
      Impl UUID:    7bf82ed6c1d0.02.10.2c.30.11.00.00.00
      Registered at: Thu Apr 17 15:01:08 1997  

  Server has no attributes

  ManagedObjectImpl                           bouchetf      Executing     
      Inst UUID:    7c1835accafc.02.10.b8.50.10.00.00.00    Pid: 20200C73
      Impl UUID:    7bf82ed6c1d0.02.10.2c.30.11.00.00.00
      Registered at: Thu Apr 17 15:01:46 1997  

  Server has no attributes

  ManagedObjectImpl                           bouchetf      Executing     
      Inst UUID:    7c183694afc8.02.10.b8.50.10.00.00.00    Pid: 20200CB6
      Impl UUID:    7bf82ed6c1d0.02.10.2c.30.11.00.00.00
      Registered at: Thu Apr 17 15:02:48 1997  

  Server has no attributes

%OBB-I-CMD_NUMMSRVSFND, 6 servers found. 
2470.2ObjectManager log fileHOUBA::BOUCHETFThu Apr 17 1997 13:38277
HOUBA::BOUCHETF_S4>objmgrsrv -run -verbose

Display: list of arguments.
   [0] name = <-run>, value = NULL
   [1] name = <-verbose>, value = NULL

Info: initializing the ORB.
Info: ORB initialization successfully completed.
Info: initializing the BOA.
Info: BOA initialization successfully completed.
Info: getting a NamingService object reference.
Info: getting an ObjectManager reference.

**** Skip Method Selection, OpInfo Created by STUB


**** Implementation Selection


**** Callout to method map resolve rtn.

*** Method map resolve rtn not present. Defaulting.

**** Server Instance Selection

 Selection policy defaulting to advertisements, local_node, default_nodes.

 Context scope default to USER.

 Get Server Selection Node List:

 Possible server selection nodes: <2>
   000. OBB_LOCAL                        = HOUBA.geo.dec.com
   001. OBB_DEFAULT_NODES                = OBB_LOCAL

 Looking for running server:

 Looking for servers on node HOUBA.geo.dec.com.
*** Request Sent: Synchronous Invoke.
*** Method: 65e448f20f7c.0c.7e.0b.00.00.00.00.00.
***    MethodServerClass: 65e448ecbd2c.0c.7e.0b.00.00.00.00.00
***    Marshalled Buffer: 564
***    Allocated Buffer : 1888
***    Transport Status: %OBB-S-SUCCESS, Successful completion. 
***    Operation Status: %OBB-S-SUCCESS, Successful completion. 

 Server selected from Registry: 7c1827397ac5.02.10.b8.50.10.00.00.00 (HOUBA.geo.dec.com).
*** Request Sent: Synchronous Invoke.
*** Method: 7368090a6e58.02.10.1f.a0.9b.00.00.00.
***    MethodServerClass: 508c0a7f9532.1d.40.33.45.06.70.2e.d9
***    Marshalled Buffer: 728
***    Allocated Buffer : 1930
***    Transport Status: %OBB-S-SUCCESS, Successful completion. 
***    Operation Status: %OBB-S-SUCCESS, Successful completion. 
Info: Registering the ObjectManagerImpl to the agent.
*** Queuing Event: Register Implementation.
Info: ObjectManagerImpl successfully registered.
Info: Registering the ManagedObjectImpl to the agent.
*** Queuing Event: Register Implementation.
Info: ManagedObjectImpl successfully registered.
Info: Activating the ObjectManagerImpl.
*** Request Sent: Synchronous Invoke.
*** Method: 65e448ecbd2d.0c.7e.0b.00.00.00.00.00.
***    MethodServerClass: 65e448ecbd2c.0c.7e.0b.00.00.00.00.00
***    Marshalled Buffer: 668
***    Allocated Buffer : 1998
***    Transport Status: %OBB-S-SUCCESS, Successful completion. 
***    Operation Status: %OBB-S-SUCCESS, Successful completion. 
Info: ObjectManagerImpl successfully activated.
Info: Activating the ManagedObjectImpl.
*** Request Sent: Synchronous Invoke.
*** Method: 65e448ecbd2d.0c.7e.0b.00.00.00.00.00.
***    MethodServerClass: 65e448ecbd2c.0c.7e.0b.00.00.00.00.00
***    Marshalled Buffer: 668
***    Allocated Buffer : 1998
***    Transport Status: %OBB-S-SUCCESS, Successful completion. 
***    Operation Status: %OBB-S-SUCCESS, Successful completion. 
Info: ManagedObjectImpl successfully activated.
Invoke: Server.run

             scanInterval = 30,
)
Info: Starting timer with a callback routine (not yet implemented).
Info: entering main loop.
*** Dispatching Register Implementation Event
*** Dispatching Register Implementation Event
*** Request Received: Synchronous Invoke.
***    Method: 7bf82ed6c1d9.02.10.2c.30.11.00.00.00
***    Implementation Instance ID: 7bf82ed6c1d6.02.10.2c.30.11.00.00.00
***    Deferred Callback Id: 0
***    Transport Status: %OBB-S-SUCCESS, Successful completion. 
*** Dispatching Invocation Event
*** Loading operation context
*** No context defined in operation.

Info: entering method ObjectManagerImpl.createManagedObject
Info: ManagedObject properties:

                       ID = <7c1835157ac7.02.10.b8.50.10.00.00.0>
                     name = <ManagedObject_1>
                  command = <>
                processID = <>
             scanInterval = <30>
            startPriority = <5>
             stopPriority = <5>
                    state = Created

Info: method ObjectManagerImpl.createManagedObject completed.
*** Request Sent: Completion Callback.
***    Marshalled Buffer: 516
***    Allocated Buffer : 1685
***    Deferred Sync Callback Id:  <NOVALUE>
***    Transport Status: %OBB-S-SUCCESS, Successful completion. 
*** Request Received: Disconnect.
*** Dispatching Disconnect Event
*** Request Received: Synchronous Invoke.
***    Method: 7c030d3e5f0d.02.c8.01.01.03.00.00.00
***    Implementation Instance ID: 7bf82ed6c1d6.02.10.2c.30.11.00.00.00
***    Deferred Callback Id: 0
***    Transport Status: %OBB-S-SUCCESS, Successful completion. 
*** Dispatching Invocation Event
*** Loading operation context
*** No context defined in operation.
Info: starting the managed object ManagedObject_1.

**** Skip Method Selection, OpInfo Created by STUB


**** Implementation Selection


**** Static Implementation Skipping Implementation Selection


**** Server Instance Selection

 Implementation location field: <HOUBA.geo.dec.com>
*** Request Sent: Synchronous Invoke.
*** Method: 65e448f20f7c.0c.7e.0b.00.00.00.00.00.
***    MethodServerClass: 65e448ecbd2c.0c.7e.0b.00.00.00.00.00
***    Marshalled Buffer: 604
***    Allocated Buffer : 1923
***    Transport Status: %OBB-S-SUCCESS, Successful completion. 
***    Operation Status: %OBB-S-SUCCESS, Successful completion. 

 Server selected from Implementation Location: 7c1835accafc.02.10.b8.50.10.00.00.00 (HOUBA.geo.dec.com).
*** Request Sent: Deferred Synchronous Invoke.
***   Method: 7bf82ed6c1d4.02.10.2c.30.11.00.00.00.
***    MethodServerClass: 7bf82ed6c1d0.02.10.2c.30.11.00.00.00
***    Marshalled Buffer: 1348
***    Allocated Buffer : 2717
***    Deferred Sync Callback Id: 0
***    Transport Status: %OBB-S-SUCCESS, Successful completion. 
***    Operation Status: %OBB-S-SUCCESS, Successful completion. 
Info: ManagedObject properties:

                       ID = <7c1835157ac7.02.10.b8.50.10.00.00.0>
                     name = <ManagedObject_1>
                  command = <>
                processID = <>
             scanInterval = <30>
            startPriority = <5>
             stopPriority = <5>
                    state = Starting

Info: method ObjectManagerImpl.startManagedObjects completed.
*** Request Sent: Completion Callback.
***    Marshalled Buffer: 88
***    Allocated Buffer : 1157
***    Deferred Sync Callback Id:  <NOVALUE>
***    Transport Status: %OBB-S-SUCCESS, Successful completion. 
*** Request Received: Disconnect.
*** Dispatching Disconnect Event
*** Request Received: Synchronous Invoke.
***    Method: 7bf82ed6c1d3.02.10.2c.30.11.00.00.00
***    Implementation Instance ID: 7bf82ed6c1d6.02.10.2c.30.11.00.00.00
***    Deferred Callback Id: 0
***    Transport Status: %OBB-S-SUCCESS, Successful completion. 
*** Dispatching Invocation Event
*** Loading operation context
*** No context defined in operation.

Info: message notification, the Thu Apr 17 15:02:00 1997
    Name = "ManagedObject_1", Id = "7c1835157ac7.02.10.b8.50.10.00.00.0", State = Started
    Body = []
*** Request Sent: Completion Callback.
***    Marshalled Buffer: 88
***    Allocated Buffer : 1157
***    Deferred Sync Callback Id:  <NOVALUE>
***    Transport Status: %OBB-S-SUCCESS, Successful completion. 
*** Request Received: Synchronous Invoke.
***    Method: 7bf82ed6c1d9.02.10.2c.30.11.00.00.00
***    Implementation Instance ID: 7bf82ed6c1d6.02.10.2c.30.11.00.00.00
***    Deferred Callback Id: 0
***    Transport Status: %OBB-S-SUCCESS, Successful completion. 
*** Dispatching Invocation Event
*** Loading operation context
*** No context defined in operation.

Info: entering method ObjectManagerImpl.createManagedObject
Info: ManagedObject properties:

                       ID = <7c1835157ac9.02.10.b8.50.10.00.00.0>
                     name = <ManagedObject_2>
                  command = <>
                processID = <>
             scanInterval = <30>
            startPriority = <5>
             stopPriority = <5>
                    state = Created

Info: method ObjectManagerImpl.createManagedObject completed.
*** Request Sent: Completion Callback.
***    Marshalled Buffer: 516
***    Allocated Buffer : 1685
***    Deferred Sync Callback Id:  <NOVALUE>
***    Transport Status: %OBB-S-SUCCESS, Successful completion. 
*** Request Received: Disconnect.
*** Dispatching Disconnect Event
*** Request Received: Synchronous Invoke.
***    Method: 7c030d3e5f0d.02.c8.01.01.03.00.00.00
***    Implementation Instance ID: 7bf82ed6c1d6.02.10.2c.30.11.00.00.00
***    Deferred Callback Id: 0
***    Transport Status: %OBB-S-SUCCESS, Successful completion. 
*** Dispatching Invocation Event
*** Loading operation context
*** No context defined in operation.
Info: starting the managed object ManagedObject_2.

**** Skip Method Selection, OpInfo Created by STUB


**** Implementation Selection


**** Static Implementation Skipping Implementation Selection


**** Server Instance Selection

 Implementation location field: <HOUBA.geo.dec.com>
*** Request Sent: Synchronous Invoke.
*** Method: 65e448f20f7c.0c.7e.0b.00.00.00.00.00.
***    MethodServerClass: 65e448ecbd2c.0c.7e.0b.00.00.00.00.00
***    Marshalled Buffer: 604
***    Allocated Buffer : 1923
***    Transport Status: %OBB-S-SUCCESS, Successful completion. 
***    Operation Status: %OBB-S-SUCCESS, Successful completion. 

 Server selected from Implementation Location: 7c183694afc8.02.10.b8.50.10.00.00.00 (HOUBA.geo.dec.com).
*** Request Sent: Deferred Synchronous Invoke.
***   Method: 7bf82ed6c1d4.02.10.2c.30.11.00.00.00.
***    MethodServerClass: 7bf82ed6c1d0.02.10.2c.30.11.00.00.00
***    Marshalled Buffer: 1348
***    Allocated Buffer : 2717
***    Deferred Sync Callback Id: 0
***    Transport Status: %OBB-S-SUCCESS, Successful completion. 
***    Operation Status: %OBB-S-SUCCESS, Successful completion. 
Info: ManagedObject properties:

                       ID = <7c1835157ac9.02.10.b8.50.10.00.00.0>
                     name = <ManagedObject_2>
                  command = <>
                processID = <>
             scanInterval = <30>
            startPriority = <5>
             stopPriority = <5>
                    state = Starting

Info: method ObjectManagerImpl.startManagedObjects completed.
*** Request Sent: Completion Callback.
***    Marshalled Buffer: 88
***    Allocated Buffer : 1157
***    Deferred Sync Callback Id:  <NOVALUE>
***    Transport Status: %OBB-S-SUCCESS, Successful completion. 
*** Request Received: Disconnect.
*** Dispatching Disconnect Event
2470.3Managed Object Server #1 log fileHOUBA::BOUCHETFThu Apr 17 1997 13:39160
HOUBA::BOUCHETF_S8>mgdobjsrv -verbose -id "7c1835157ac7.02.10.b8.50.10.00.00.0"

Display: list of arguments.
   [0] name = <-verbose>, value = NULL
   [1] name = <-id>, value = <7c1835157ac7.02.10.b8.50.10.00.00.0>

Info: initializing the ORB.
Info: ORB initialization successfully completed.
Info: initializing the BOA.
Info: BOA initialization successfully completed.
Info: Registering the ManagedObjectImpl to the agent.

*** Load Authentication implementation Trusted
        FamilyName<3> <TRS>
ImagePath<26> <sys$share:obb$security.exe>
        LibraryName: sys$share:obb$security.exe

*** Load Network implementation TCP
        FamilyName<5> <TCPIP>
ImagePath<31> <sys$share:obb$transport_tcp.exe>
        LibraryName: sys$share:obb$transport_tcp.exe

*** Load Agent implementation OrbV12
        FamilyName<3> <OBB>
ImagePath<30> <sys$share:obb$agent_client.exe>
        LibraryName: sys$share:obb$agent_client.exe
Obtaining Security Key for Client ID 7bf82ed6c1d0.02.10.2c.30.11.00.00.00
 Impl ID 65e448ecbd2c.0c.7e.0b.00.00.00.00.00

List of server supported sec. types isn't known yet. Trying client sec types in turn

 Number of client supported security types: 1
Trying each of the sectypes from above list

Trying to get security key using Trusted package

Successfully obtained key/established context using security package Trusted

Info: ManagedObjectImpl successfully registered.
Info: the server has been started manually.
Info: setting he server id of the registered implementation to 7c1835157ac7.02.10.b8.50.10.00.00.0.
Info: Activating the ManagedObjectImpl.
Registering with the Trusted Security package

 Status of registering with supported security package(s): %OBB-S-SUCCESS, Successful completion. 
Signing messsage from Client ID 7bf82ed6c1d0.02.10.2c.30.11.00.00.00
 to Impl ID 65e448ecbd2c.0c.7e.0b.00.00.00.00.00
 Using Trusted Security package to sign message.

 Status of signing message: %OBB-S-SUCCESS, Successful completion. 
*** Request Sent: Synchronous Invoke.
*** Method: 65e448ecbd2d.0c.7e.0b.00.00.00.00.00.
***    MethodServerClass: 65e448ecbd2c.0c.7e.0b.00.00.00.00.00
***    Marshalled Buffer: 708
***    Allocated Buffer : 2033
***    Transport Status: %OBB-S-SUCCESS, Successful completion. 
 Trying to verify message from client UUID 7bf82ed6c1d0.02.10.2c.30.11.00.00.00

 Using Trusted security package to verify signed message

 Stauts of verifying signed message: %OBB-S-SUCCESS, Successful completion. 
***    Operation Status: %OBB-S-SUCCESS, Successful completion. 
Info: ManagedObjectImpl successfully activated.
Info: entering customed main loop.
Info: Starting timer with a callback routine (not yet implemented).
Info: entering main loop.
*** Dispatching Register Implementation Event

========Received request for implementation id 7bf82ed6c1d0.02.10.2c.30.11.00.00.00
Using Trusted Security package to verify request

@@@ Proxy Lookup:
   RemoteHost: HOUBA
   RemoteUser: BOUCHETF
  OpenKey failed - Proxies\HOUBA\BOUCHETF
  OpenKey failed <1>
   000. :Facility: OBB_REG    :Severity: Error
        :Status: (LOBIT) %X048BDDEA
       Parameters <1>
            KEYNAME : HOUBA
  OpenKey failed <1>
   000. :Facility: OBB_REG    :Severity: Error
        :Status: (LOBIT) %X048BDDEA
       Parameters <1>
            KEYNAME : Proxies\Default\Default
   No Proxy Found
 **** Status of security verification of request: %OBB-S-SUCCESS, Successful completion. 
*** Dispatching Invocation Event
*** Loading operation context
*** No context defined in operation.

Info: message notification, the Thu Apr 17 15:02:00 1997
    Name = "ManagedObject_1", Id = "7c1835157ac7.02.10.b8.50.10.00.00.0", State = Started
    Body = []

**** Server Instance Selection
Obtaining Security Key for Client ID 7bf82ed6c1d0.02.10.2c.30.11.00.00.00
 Impl ID 65e448ecbd2c.0c.7e.0b.00.00.00.00.00

List of server supported sec. types isn't known yet. Trying client sec types in turn

 Number of client supported security types: 1
Trying each of the sectypes from above list

Trying to get security key using Trusted package

Successfully obtained key/established context using security package Trusted

Signing messsage from Client ID 7bf82ed6c1d0.02.10.2c.30.11.00.00.00
 to Impl ID 65e448ecbd2c.0c.7e.0b.00.00.00.00.00
 Using Trusted Security package to sign message.

 Status of signing message: %OBB-S-SUCCESS, Successful completion. 
*** Request Sent: Synchronous Invoke.
*** Method: 65e448f20f7c.0c.7e.0b.00.00.00.00.00.
***    MethodServerClass: 65e448ecbd2c.0c.7e.0b.00.00.00.00.00
***    Marshalled Buffer: 564
***    Allocated Buffer : 1888
***    Transport Status: %OBB-S-SUCCESS, Successful completion. 
 Trying to verify message from client UUID 7bf82ed6c1d0.02.10.2c.30.11.00.00.00

 Using Trusted security package to verify signed message

 Stauts of verifying signed message: %OBB-S-SUCCESS, Successful completion. 
***    Operation Status: %OBB-S-SUCCESS, Successful completion. 
Obtaining Security Key for Client ID 7bf82ed6c1d0.02.10.2c.30.11.00.00.00
 Impl ID 7bf82ed6c1d6.02.10.2c.30.11.00.00.00
Number of matched server sec. types: 
1
Trying each of the sectypes from above list

Trying to get security key using Trusted package

Successfully obtained key/established context using security package Trusted

Obtaining Security Key for Client ID 7bf82ed6c1d0.02.10.2c.30.11.00.00.00
 Impl ID 7bf82ed6c1d6.02.10.2c.30.11.00.00.00
Number of matched server sec. types: 
1

Trying to get security key using previously established sectype: Trusted
Successfully obtained key/esatablished context using security package Trusted

Signing messsage from Client ID 7bf82ed6c1d0.02.10.2c.30.11.00.00.00
 to Impl ID 7bf82ed6c1d6.02.10.2c.30.11.00.00.00
 Using Trusted Security package to sign message.

 Status of signing message: %OBB-S-SUCCESS, Successful completion. 
*** Request Sent: Synchronous Invoke.
*** Method: 7bf82ed6c1d3.02.10.2c.30.11.00.00.00.
***    MethodServerClass: 7bf82ed6c1d6.02.10.2c.30.11.00.00.00
***    Marshalled Buffer: 844
***    Allocated Buffer : 2036
***    Transport Status: %OBB-S-SUCCESS, Successful completion. 
 Trying to verify message from client UUID 7bf82ed6c1d0.02.10.2c.30.11.00.00.00

 Using Trusted security package to verify signed message

 Stauts of verifying signed message: %OBB-S-SUCCESS, Successful completion. 
***    Operation Status: %OBB-S-SUCCESS, Successful completion. 
2470.4Managed Object Server #2 log fileHOUBA::BOUCHETFThu Apr 17 1997 13:4073
HOUBA::BOUCHETF_S6>mgdobjsrv -verbose -id "7c1835157ac9.02.10.b8.50.10.00.00.0"

Display: list of arguments.
   [0] name = <-verbose>, value = NULL
   [1] name = <-id>, value = <7c1835157ac9.02.10.b8.50.10.00.00.0>

Info: initializing the ORB.
Info: ORB initialization successfully completed.
Info: initializing the BOA.
Info: BOA initialization successfully completed.
Info: Registering the ManagedObjectImpl to the agent.

*** Load Authentication implementation Trusted
        FamilyName<3> <TRS>
ImagePath<26> <sys$share:obb$security.exe>
        LibraryName: sys$share:obb$security.exe

*** Load Network implementation TCP
        FamilyName<5> <TCPIP>
ImagePath<31> <sys$share:obb$transport_tcp.exe>
        LibraryName: sys$share:obb$transport_tcp.exe

*** Load Agent implementation OrbV12
        FamilyName<3> <OBB>
ImagePath<30> <sys$share:obb$agent_client.exe>
        LibraryName: sys$share:obb$agent_client.exe
Obtaining Security Key for Client ID 7bf82ed6c1d0.02.10.2c.30.11.00.00.00
 Impl ID 65e448ecbd2c.0c.7e.0b.00.00.00.00.00

List of server supported sec. types isn't known yet. Trying client sec types in turn

 Number of client supported security types: 1
Trying each of the sectypes from above list

Trying to get security key using Trusted package

Successfully obtained key/established context using security package Trusted

Info: ManagedObjectImpl successfully registered.
Info: the server has been started manually.
Info: setting he server id of the registered implementation to 7c1835157ac9.02.10.b8.50.10.00.00.0.
Info: Activating the ManagedObjectImpl.
Registering with the Trusted Security package

 Status of registering with supported security package(s): %OBB-S-SUCCESS, Successful completion. 
Signing messsage from Client ID 7bf82ed6c1d0.02.10.2c.30.11.00.00.00
 to Impl ID 65e448ecbd2c.0c.7e.0b.00.00.00.00.00
 Using Trusted Security package to sign message.

 Status of signing message: %OBB-S-SUCCESS, Successful completion. 
*** Request Sent: Synchronous Invoke.
*** Method: 65e448ecbd2d.0c.7e.0b.00.00.00.00.00.
***    MethodServerClass: 65e448ecbd2c.0c.7e.0b.00.00.00.00.00
***    Marshalled Buffer: 708
***    Allocated Buffer : 2033
***    Transport Status: %OBB-S-SUCCESS, Successful completion. 
 Trying to verify message from client UUID 7bf82ed6c1d0.02.10.2c.30.11.00.00.00

 Using Trusted security package to verify signed message

 Stauts of verifying signed message: %OBB-S-SUCCESS, Successful completion. 
***    Operation Status: %OBB-S-SUCCESS, Successful completion. 
Info: ManagedObjectImpl successfully activated.
Info: entering customed main loop.
Info: Starting timer with a callback routine (not yet implemented).
Info: entering main loop.
*** Dispatching Register Implementation Event

========Received request for implementation id 7bf82ed6c1d0.02.10.2c.30.11.00.00.00
Using Trusted Security package to verify request

 **** Status of security verification of request: %OBB-E-INV_NOTAUTHORIZ, Client user is not authorized to access server. 
*** Dispatching Invocation Event
2470.5Some more information...HOUBA::BOUCHETFFri Apr 18 1997 13:39667
Some more information. It seems the problem comes from the client side. I 
have been able to re-produce the problem with a simple client program (see
below). I have also appended the server log file showing that the managed
object server is active and refuses systematically all requests.

I really need your help on this one !!!

Cheers.

Frederic

[Simple client program -------------------------------------------------------]
...
#define OBJECT_MANAGER_OBJREF    "/ObjectManager"
...
void main(int argc, char *argv[])
{
    /*
    ** Local variables
    */
    CORBA_Object               theORB = NULL;
    CORBA_Object               theNamingService = NULL;
    OMGR_ObjectManager         theObjectManager = NULL;
    CORBA_Environment          theEnvironment;
    CosNaming_NameComponent    theNameComponent;
    CosNaming_Name             theName;
    OMGR_ManagedObject	       theManagedObject1 = NULL;
    OMGR_ManagedObject	       theManagedObject2 = NULL;

... 

    theORB = CORBA_ORB_init(
        &argc, argv,
        CORBA_DEC_ORB_ID,
        &theEnvironment);
...

    theNamingService = CORBA_ORB_resolve_initial_references(
        theORB,
        CORBA_NAMESERVICE_INITNAME,
        &theEnvironment);
...

    theNameComponent.id = OBJECT_MANAGER_OBJREF;
    theNameComponent.kind = NULL;

    theName._length = 1;
    theName._maximum = 1;
    theName._buffer = &theNameComponent;

    theObjectManager = CosNaming_NamingContext_resolve(
        theNamingService,
        &theEnvironment,
        &theName);
...

    theManagedObject1 = OMGR_ObjectManager_createManagedObject(
        theObjectManager, &theEnvironment, 
        "directory", "ManagedObject_1", "ID1", 5, 5, 30);
...

    theManagedObject2 = OMGR_ObjectManager_createManagedObject(
        theObjectManager, &theEnvironment, 
        "directory", "ManagedObject_2", "ID2", 5, 5, 30);
...

    OMGR_ManagedObject_start(
        theManagedObject1, &theEnvironment, theObjectManager,
        "directory", "ManagedObject_1", "ID1", 5, 5, 30);
...

    OMGR_ManagedObject_start(
        theManagedObject2, &theEnvironment, theObjectManager,
        "directory", "ManagedObject_2", "ID2", 5, 5, 30);
...

    OMGR_ManagedObject_stop(
       theManagedObject1, &theEnvironment);
...

    OMGR_ManagedObject_stop(
       theManagedObject2, &theEnvironment);
...

    OMGR_ManagedObject_delete(
       theManagedObject1, &theEnvironment);
...

    OMGR_ManagedObject_delete(
       theManagedObject2, &theEnvironment);
...

}

... : I have removed some code such as the exception handling for clarity
      purpose.

[Log file for ManagedObject1 --------------------------------------------------]

$ SET OUTPUT_RATE=:0:0.01
$ DELETE/SYMBOL/LOCAL/ALL
$ DELETE/SYMBOL/GLOBAL/ALL
$ DEFINE/JOB/NOLOG SYS$LOGIN FBO_ROOT:[000000]
$ DEFINE/JOB/NOLOG SYS$SCRATCH FBO_ROOT:[000000]
$ PRCNAM = F$GETJPI(0,"PID")
$ SET PROCESS/NAME=OBB_20200E42
$ SET DEFAULT FBO_ROOT:[000000]
$ DEFINE "OBB_SERVER_UUID" "7c1d26baf9b9.02.10.b8.50.10.00.00.00"
$ DEFINE "OBB_INIT_FILE" "SYS$SPECIFIC:[OBB.SCRATCH.HOUBA]OBB202008a50065.TMP"
$ IF F$SEARCH("FBO_ROOT:[000000]OBB$LOGIN.COM") .NES. ""
$ THEN
$    @FBO_ROOT:[000000]OBB$LOGIN.COM
$ @fbo_root:[mtn.project]setup.com
$ obb :== application/broker
$!
$! Definition of directories
$!
$ define MTN$ROOT      dsa1:[bouchet.mtn.project.]/trans=(concealed,terminal)
$!
$ define MTN$INCLUDE      MTN$ROOT:[include]
$ define MTN$COMMON       MTN$ROOT:[common]
$ define MTN$OBJMGRSRV    MTN$ROOT:[objmgrsrv]
$ define MTN$OBJMGRADM    MTN$ROOT:[objmgradm]
$ define MTN$OBJMGRNOT    MTN$ROOT:[objmgrnot]
$ define MTN$MGDOBJSRV    MTN$ROOT:[mgdobjsrv]
$!
$ define OBB_USER_CONTEXT MTN$ROOT:[000000]omgr.co
$ define OBB_REPOSITORY   MTN$ROOT:[000000]OMGR.IR
$ define LNK$LIBRARY      SYS$LIBRARY:VAXCRTL
$!
$ objmgradm :== $MTN$OBJMGRADM:objmgradm.exe
$ objmgrnot :== $MTN$OBJMGRNOT:objmgrnot.exe
$ objmgrsrv :== $MTN$OBJMGRSRV:objmgrsrv.exe
$ mgdobjsrv :== $MTN$MGDOBJSRV:mgdobjsrv.exe
$!
$ exit
$ define OBB_TRACE_FLAGS IPQO
$exit
$ ENDIF
$ mgdobjsrv -verbose

Display: list of arguments.
   [0] name = <-verbose>, value = NULL

Info: initializing the ORB.
Info: ORB initialization successfully completed.
Info: initializing the BOA.
Info: BOA initialization successfully completed.
Info: Registering the ManagedObjectImpl to the agent.

*** Load Authentication implementation Trusted

FamilyName<3> <
FamilyName<3> <TRS
FamilyName<3> <TRS>
ImagePath<26> <
ImagePath<26> <sys$share:obb$security.exe
ImagePath<26> <sys$share:obb$security.exe>
	LibraryName: sys$share:obb$security.exe

*** Load Network implementation TCP

FamilyName<5> <
FamilyName<5> <TCPIP
FamilyName<5> <TCPIP>
ImagePath<31> <
ImagePath<31> <sys$share:obb$transport_tcp.exe
ImagePath<31> <sys$share:obb$transport_tcp.exe>
	LibraryName: sys$share:obb$transport_tcp.exe

*** Load Agent implementation OrbV12

FamilyName<3> <
FamilyName<3> <OBB
FamilyName<3> <OBB>
ImagePath<30> <
ImagePath<30> <sys$share:obb$agent_client.exe
ImagePath<30> <sys$share:obb$agent_client.exe>
	LibraryName: sys$share:obb$agent_client.exe
Obtaining Security Key for Client ID 7bf82ed6c1d0.02.10.2c.30.11.00.00.00
 Impl ID 65e448ecbd2c.0c.7e.0b.00.00.00.00.00

List of server supported sec. types isn't 
List of server supported sec. types isn't known yet. Trying client sec types in turn

 Number of client supported security types: 1
Trying each of the sectypes from above list

Trying to get security key using Trusted package

Successfully obtained key/established 
Successfully obtained key/established context using security package Trusted

Info: ManagedObjectImpl successfully registered.
Info: the server has been automatically started.
Info: getting the implementation definition of the started object.
Info: getting the server id of the implementation definition.
Info: setting he server id of the registered implementation to ID1.
Info: Activating the ManagedObject.
Registering with the Trusted Security package

 Status of registering with supported security package(s): %OBB-S-SUCCESS, Successful completion. 
Signing messsage from Client ID 
Signing messsage from Client ID 7bf82ed6c1d0.02.10.2c.30.11.00.00.00
 to Impl ID 65e448ecbd2c.0c.7e.0b.00.00.00.00.00
 Using Trusted Security package to sign message.

 Status of signing message: %OBB-S-SUCCESS, Successful completion. 
*** Request Sent: Synchronous Invoke.
*** Method: 65e448ecbd2d.0c.7e.0b.00.00.00.00.00.
***    MethodServerClass: 65e448ecbd2c.0c.7e.0b.00.00.00.00.00
***    Marshalled Buffer: 712
***    Allocated Buffer : 2037
***    Transport Status: %OBB-S-SUCCESS, Successful completion. 
 Trying to verify message from client UUID 7bf82ed6c1d0.02.10.2c.30.11.00.00.00

 Using Trusted security package to verify signed message

 Stauts of verifying signed message: %OBB-S-SUCCESS, Successful completion. 
***    Operation Status: %OBB-S-SUCCESS, Successful completion. 
Info: ManagedObjectImpl successfully activated.
Info: entering customed main loop.
Info: Starting timer with a callback routine (not yet implemented).
Info: entering main loop.
*** Dispatching Register Implementation Event

========Received request for implementation id 7bf82ed6c1d0.02.10.2c.30.11.00.00.00
Using Trusted Security package to verify request

@@@ Proxy Lookup:
   RemoteHost: 
   RemoteHost: HOUBA
   RemoteHost: HOUBA
   RemoteUser: 
   RemoteUser: BOUCHETF
   RemoteUser: BOUCHETF
  OpenKey failed - Proxies\HOUBA\BOUCHETF
  OpenKey failed <1>
   000. :Facility: OBB_REG    :Severity: Error
        :Status: (LOBIT) %X048BDDEA
       Parameters <1>
            KEYNAME : 
            KEYNAME : HOUBA
            KEYNAME : HOUBA
  OpenKey failed <1>
   000. :Facility: OBB_REG    :Severity: Error
        :Status: (LOBIT) %X048BDDEA
       Parameters <1>
            KEYNAME : 
            KEYNAME : Proxies\Default\Default
            KEYNAME : Proxies\Default\Default
   No Proxy Found
 **** Status of security verification of request: %OBB-S-SUCCESS, Successful completion. 
*** Dispatching Invocation Event
*** Loading operation context
*** No context defined in operation.
Info: spawning the command "directory"

Info: message notification, the Fri Apr 18 14:37:02 1997
    Name = "ManagedObject_1", Id = "ID1", State = Started
    Body = [20200E43]

**** Server Instance Selection
Obtaining Security Key for Client ID 7bf82ed6c1d0.02.10.2c.30.11.00.00.00
 Impl ID 65e448ecbd2c.0c.7e.0b.00.00.00.00.00

List of server supported sec. types isn't 
List of server supported sec. types isn't known yet. Trying client sec types in turn

 Number of client supported security types: 1
Trying each of the sectypes from above list

Trying to get security key using Trusted package

Successfully obtained key/established 
Successfully obtained key/established context using security package Trusted

Signing messsage from Client ID 
Signing messsage from Client ID 7bf82ed6c1d0.02.10.2c.30.11.00.00.00
 to Impl ID 65e448ecbd2c.0c.7e.0b.00.00.00.00.00
 Using Trusted Security package to sign message.

 Status of signing message: %OBB-S-SUCCESS, Successful completion. 
*** Request Sent: Synchronous Invoke.
*** Method: 65e448f20f7c.0c.7e.0b.00.00.00.00.00.
***    MethodServerClass: 65e448ecbd2c.0c.7e.0b.00.00.00.00.00
***    Marshalled Buffer: 564
***    Allocated Buffer : 1888
***    Transport Status: %OBB-S-SUCCESS, Successful completion. 
 Trying to verify message from client UUID 7bf82ed6c1d0.02.10.2c.30.11.00.00.00

 Using Trusted security package to verify signed message

 Stauts of verifying signed message: %OBB-S-SUCCESS, Successful completion. 
***    Operation Status: %OBB-S-SUCCESS, Successful completion. 
Obtaining Security Key for Client ID 7bf82ed6c1d0.02.10.2c.30.11.00.00.00
 Impl ID 7bf82ed6c1d6.02.10.2c.30.11.00.00.00
Number of matched server sec. types: 
1
Trying each of the sectypes from above list

Trying to get security key using Trusted package

Successfully obtained key/established 
Successfully obtained key/established context using security package Trusted

Obtaining Security Key for Client ID 7bf82ed6c1d0.02.10.2c.30.11.00.00.00
 Impl ID 7bf82ed6c1d6.02.10.2c.30.11.00.00.00
Number of matched server sec. types: 
1

Trying to get security key using previously
Trying to get security key using previously established sectype: Trusted
Successfully obtained key/esatablished 
Successfully obtained key/esatablished context using security package Trusted

Signing messsage from Client ID 
Signing messsage from Client ID 7bf82ed6c1d0.02.10.2c.30.11.00.00.00
 to Impl ID 7bf82ed6c1d6.02.10.2c.30.11.00.00.00
 Using Trusted Security package to sign message.

 Status of signing message: %OBB-S-SUCCESS, Successful completion. 
*** Request Sent: Synchronous Invoke.
*** Method: 7bf82ed6c1d3.02.10.2c.30.11.00.00.00.
***    MethodServerClass: 7bf82ed6c1d6.02.10.2c.30.11.00.00.00
***    Marshalled Buffer: 820
***    Allocated Buffer : 2012
***    Transport Status: %OBB-S-SUCCESS, Successful completion. 
 Trying to verify message from client UUID 7bf82ed6c1d0.02.10.2c.30.11.00.00.00

 Using Trusted security package to verify signed message

 Stauts of verifying signed message: %OBB-S-SUCCESS, Successful completion. 
***    Operation Status: %OBB-S-SUCCESS, Successful completion. 

========Received request for implementation id 7bf82ed6c1d0.02.10.2c.30.11.00.00.00
Using Trusted Security package to verify request

@@@ Proxy Lookup:
   RemoteHost: 
   RemoteHost: HOUBA
   RemoteHost: HOUBA
   RemoteUser: 
   RemoteUser: BOUCHETF
   RemoteUser: BOUCHETF
  OpenKey failed - Proxies\HOUBA\BOUCHETF
  OpenKey failed <1>
   000. :Facility: OBB_REG    :Severity: Error
        :Status: (LOBIT) %X048BDDEA
       Parameters <1>
            KEYNAME : 
            KEYNAME : HOUBA
            KEYNAME : HOUBA
  OpenKey failed <1>
   000. :Facility: OBB_REG    :Severity: Error
        :Status: (LOBIT) %X048BDDEA
       Parameters <1>
            KEYNAME : 
            KEYNAME : Proxies\Default\Default
            KEYNAME : Proxies\Default\Default
   No Proxy Found
 **** Status of security verification of request: %OBB-S-SUCCESS, Successful completion. 
*** Dispatching Invocation Event
*** Loading operation context
*** No context defined in operation.
Error: cannot delete the spawned subprocess.

Info: message notification, the Fri Apr 18 14:37:22 1997
    Name = "ManagedObject_1", Id = "ID1", State = Aborted
    Body = []
Obtaining Security Key for Client ID 7bf82ed6c1d0.02.10.2c.30.11.00.00.00
 Impl ID 7bf82ed6c1d6.02.10.2c.30.11.00.00.00
Number of matched server sec. types: 
1

Trying to get security key using previously
Trying to get security key using previously established sectype: Trusted
Successfully obtained key/esatablished 
Successfully obtained key/esatablished context using security package Trusted

Signing messsage from Client ID 
Signing messsage from Client ID 7bf82ed6c1d0.02.10.2c.30.11.00.00.00
 to Impl ID 7bf82ed6c1d6.02.10.2c.30.11.00.00.00
 Using Trusted Security package to sign message.

 Status of signing message: %OBB-S-SUCCESS, Successful completion. 
*** Request Sent: Synchronous Invoke.
*** Method: 7bf82ed6c1d3.02.10.2c.30.11.00.00.00.
***    MethodServerClass: 7bf82ed6c1d6.02.10.2c.30.11.00.00.00
***    Marshalled Buffer: 812
***    Allocated Buffer : 2003
***    Transport Status: %OBB-S-SUCCESS, Successful completion. 
 Trying to verify message from client UUID 7bf82ed6c1d0.02.10.2c.30.11.00.00.00

 Using Trusted security package to verify signed message

 Stauts of verifying signed message: %OBB-S-SUCCESS, Successful completion. 
***    Operation Status: %OBB-S-SUCCESS, Successful completion. 

========Received request for implementation id 7bf82ed6c1d0.02.10.2c.30.11.00.00.00
Using Trusted Security package to verify request

@@@ Proxy Lookup:
   RemoteHost: 
   RemoteHost: HOUBA
   RemoteHost: HOUBA
   RemoteUser: 
   RemoteUser: BOUCHETF
   RemoteUser: BOUCHETF
  OpenKey failed - Proxies\HOUBA\BOUCHETF
  OpenKey failed <1>
   000. :Facility: OBB_REG    :Severity: Error
        :Status: (LOBIT) %X048BDDEA
       Parameters <1>
            KEYNAME : 
            KEYNAME : HOUBA
            KEYNAME : HOUBA
  OpenKey failed <1>
   000. :Facility: OBB_REG    :Severity: Error
        :Status: (LOBIT) %X048BDDEA
       Parameters <1>
            KEYNAME : 
            KEYNAME : Proxies\Default\Default
            KEYNAME : Proxies\Default\Default
   No Proxy Found
 **** Status of security verification of request: %OBB-S-SUCCESS, Successful completion. 
*** Dispatching Invocation Event
*** Loading operation context
*** No context defined in operation.
Info: the managed object has been succesfully deleted.

Info: message notification, the Fri Apr 18 14:37:36 1997
    Name = "ManagedObject_1", Id = "ID1", State = Deleted
    Body = []
Obtaining Security Key for Client ID 7bf82ed6c1d0.02.10.2c.30.11.00.00.00
 Impl ID 7bf82ed6c1d6.02.10.2c.30.11.00.00.00
Number of matched server sec. types: 
1

Trying to get security key using previously
Trying to get security key using previously established sectype: Trusted
Successfully obtained key/esatablished 
Successfully obtained key/esatablished context using security package Trusted

Signing messsage from Client ID 
Signing messsage from Client ID 7bf82ed6c1d0.02.10.2c.30.11.00.00.00
 to Impl ID 7bf82ed6c1d6.02.10.2c.30.11.00.00.00
 Using Trusted Security package to sign message.

 Status of signing message: %OBB-S-SUCCESS, Successful completion. 
*** Request Sent: Synchronous Invoke.
*** Method: 7bf82ed6c1d3.02.10.2c.30.11.00.00.00.
***    MethodServerClass: 7bf82ed6c1d6.02.10.2c.30.11.00.00.00
***    Marshalled Buffer: 812
***    Allocated Buffer : 2005
***    Transport Status: %OBB-S-SUCCESS, Successful completion. 
 Trying to verify message from client UUID 7bf82ed6c1d0.02.10.2c.30.11.00.00.00

 Using Trusted security package to verify signed message

 Stauts of verifying signed message: %OBB-S-SUCCESS, Successful completion. 
***    Operation Status: %OBB-S-SUCCESS, Successful completion. 
Info: exiting main loop.
Info: deactivating the ManagedObjectImpl.
Obtaining Security Key for Client ID 7bf82ed6c1d0.02.10.2c.30.11.00.00.00
 Impl ID 65e448ecbd2c.0c.7e.0b.00.00.00.00.00

List of server supported sec. types isn't 
List of server supported sec. types isn't known yet. Trying client sec types in turn

 Number of client supported security types: 1
Trying each of the sectypes from above list

Trying to get security key using Trusted package

Successfully obtained key/established 
Successfully obtained key/established context using security package Trusted

Signing messsage from Client ID 
Signing messsage from Client ID 7bf82ed6c1d0.02.10.2c.30.11.00.00.00
 to Impl ID 65e448ecbd2c.0c.7e.0b.00.00.00.00.00
 Using Trusted Security package to sign message.

 Status of signing message: %OBB-S-SUCCESS, Successful completion. 
*** Request Sent: Synchronous Invoke.
*** Method: 65e448ed1b58.0c.7e.0b.00.00.00.00.00.
***    MethodServerClass: 65e448ecbd2c.0c.7e.0b.00.00.00.00.00
***    Marshalled Buffer: 336
***    Allocated Buffer : 1455
***    Transport Status: %OBB-S-SUCCESS, Successful completion. 
 Trying to verify message from client UUID 7bf82ed6c1d0.02.10.2c.30.11.00.00.00

 Using Trusted security package to verify signed message

 Stauts of verifying signed message: %OBB-S-SUCCESS, Successful completion. 
***    Operation Status: %OBB-S-SUCCESS, Successful completion. 
Info: ManagedObjectImpl successfully deactivated.
Info: unregistering the ManagedObjectImpl.
Signing messsage from Client ID 
Signing messsage from Client ID 7bf82ed6c1d0.02.10.2c.30.11.00.00.00
 to Impl ID 65e448ecbd2c.0c.7e.0b.00.00.00.00.00
 Using Trusted Security package to sign message.

 Status of signing message: %OBB-S-SUCCESS, Successful completion. 
*** Request Sent: Synchronous Invoke.
*** Method: 65e448ed1b58.0c.7e.0b.00.00.00.00.00.
***    MethodServerClass: 65e448ecbd2c.0c.7e.0b.00.00.00.00.00
***    Marshalled Buffer: 336
***    Allocated Buffer : 1455
***    Transport Status: %OBB-S-SUCCESS, Successful completion. 
 Trying to verify message from client UUID 7bf82ed6c1d0.02.10.2c.30.11.00.00.00

 Using Trusted security package to verify signed message

 Stauts of verifying signed message: %OBB-S-SUCCESS, Successful completion. 
***    Operation Status: %OBB-S-SUCCESS, Successful completion. 
Info: ManagedObjectImpl successfully unregistered.
$ EXIT $STATUS
  BOUCHETF     logged out at 18-APR-1997 14:37:38.88

[Log file for ManagedObject2 --------------------------------------------------]

$ SET OUTPUT_RATE=:0:0.01
$ DELETE/SYMBOL/LOCAL/ALL
$ DELETE/SYMBOL/GLOBAL/ALL
$ DEFINE/JOB/NOLOG SYS$LOGIN FBO_ROOT:[000000]
$ DEFINE/JOB/NOLOG SYS$SCRATCH FBO_ROOT:[000000]
$ PRCNAM = F$GETJPI(0,"PID")
$ SET PROCESS/NAME=OBB_20200E45
$ SET DEFAULT FBO_ROOT:[000000]
$ DEFINE "OBB_SERVER_UUID" "7c1d26baf9ba.02.10.b8.50.10.00.00.00"
$ DEFINE "OBB_INIT_FILE" "SYS$SPECIFIC:[OBB.SCRATCH.HOUBA]OBB202008a50067.TMP"
$ IF F$SEARCH("FBO_ROOT:[000000]OBB$LOGIN.COM") .NES. ""
$ THEN
$    @FBO_ROOT:[000000]OBB$LOGIN.COM
$ @fbo_root:[mtn.project]setup.com
$ obb :== application/broker
$!
$! Definition of directories
$!
$ define MTN$ROOT      dsa1:[bouchet.mtn.project.]/trans=(concealed,terminal)
$!
$ define MTN$INCLUDE      MTN$ROOT:[include]
$ define MTN$COMMON       MTN$ROOT:[common]
$ define MTN$OBJMGRSRV    MTN$ROOT:[objmgrsrv]
$ define MTN$OBJMGRADM    MTN$ROOT:[objmgradm]
$ define MTN$OBJMGRNOT    MTN$ROOT:[objmgrnot]
$ define MTN$MGDOBJSRV    MTN$ROOT:[mgdobjsrv]
$!
$ define OBB_USER_CONTEXT MTN$ROOT:[000000]omgr.co
$ define OBB_REPOSITORY   MTN$ROOT:[000000]OMGR.IR
$ define LNK$LIBRARY      SYS$LIBRARY:VAXCRTL
$!
$ objmgradm :== $MTN$OBJMGRADM:objmgradm.exe
$ objmgrnot :== $MTN$OBJMGRNOT:objmgrnot.exe
$ objmgrsrv :== $MTN$OBJMGRSRV:objmgrsrv.exe
$ mgdobjsrv :== $MTN$MGDOBJSRV:mgdobjsrv.exe
$!
$ exit
$ define OBB_TRACE_FLAGS IPQO
$exit
$ ENDIF
$ mgdobjsrv -verbose

Display: list of arguments.
   [0] name = <-verbose>, value = NULL

Info: initializing the ORB.
Info: ORB initialization successfully completed.
Info: initializing the BOA.
Info: BOA initialization successfully completed.
Info: Registering the ManagedObjectImpl to the agent.

*** Load Authentication implementation Trusted

FamilyName<3> <
FamilyName<3> <TRS
FamilyName<3> <TRS>
ImagePath<26> <
ImagePath<26> <sys$share:obb$security.exe
ImagePath<26> <sys$share:obb$security.exe>
	LibraryName: sys$share:obb$security.exe

*** Load Network implementation TCP

FamilyName<5> <
FamilyName<5> <TCPIP
FamilyName<5> <TCPIP>
ImagePath<31> <
ImagePath<31> <sys$share:obb$transport_tcp.exe
ImagePath<31> <sys$share:obb$transport_tcp.exe>
	LibraryName: sys$share:obb$transport_tcp.exe

*** Load Agent implementation OrbV12

FamilyName<3> <
FamilyName<3> <OBB
FamilyName<3> <OBB>
ImagePath<30> <
ImagePath<30> <sys$share:obb$agent_client.exe
ImagePath<30> <sys$share:obb$agent_client.exe>
	LibraryName: sys$share:obb$agent_client.exe
Obtaining Security Key for Client ID 7bf82ed6c1d0.02.10.2c.30.11.00.00.00
 Impl ID 65e448ecbd2c.0c.7e.0b.00.00.00.00.00

List of server supported sec. types isn't 
List of server supported sec. types isn't known yet. Trying client sec types in turn

 Number of client supported security types: 1
Trying each of the sectypes from above list

Trying to get security key using Trusted package

Successfully obtained key/established 
Successfully obtained key/established context using security package Trusted

Info: ManagedObjectImpl successfully registered.
Info: the server has been automatically started.
Info: getting the implementation definition of the started object.
Info: getting the server id of the implementation definition.
Info: setting he server id of the registered implementation to ID2.
Info: Activating the ManagedObject.
Registering with the Trusted Security package

 Status of registering with supported security package(s): %OBB-S-SUCCESS, Successful completion. 
Signing messsage from Client ID 
Signing messsage from Client ID 7bf82ed6c1d0.02.10.2c.30.11.00.00.00
 to Impl ID 65e448ecbd2c.0c.7e.0b.00.00.00.00.00
 Using Trusted Security package to sign message.

 Status of signing message: %OBB-S-SUCCESS, Successful completion. 
*** Request Sent: Synchronous Invoke.
*** Method: 65e448ecbd2d.0c.7e.0b.00.00.00.00.00.
***    MethodServerClass: 65e448ecbd2c.0c.7e.0b.00.00.00.00.00
***    Marshalled Buffer: 712
***    Allocated Buffer : 2037
***    Transport Status: %OBB-S-SUCCESS, Successful completion. 
 Trying to verify message from client UUID 7bf82ed6c1d0.02.10.2c.30.11.00.00.00

 Using Trusted security package to verify signed message

 Stauts of verifying signed message: %OBB-S-SUCCESS, Successful completion. 
***    Operation Status: %OBB-S-SUCCESS, Successful completion. 
Info: ManagedObjectImpl successfully activated.
Info: entering customed main loop.
Info: Starting timer with a callback routine (not yet implemented).
Info: entering main loop.
*** Dispatching Register Implementation Event

========Received request for implementation id 7bf82ed6c1d0.02.10.2c.30.11.00.00.00
Using Trusted Security package to verify request

 **** Status of security verification of request: %OBB-E-INV_NOTAUTHORIZ, Client user is not authorized to access server. 
*** Dispatching Invocation Event

========Received request for implementation id 7bf82ed6c1d0.02.10.2c.30.11.00.00.00
Using Trusted Security package to verify request

 **** Status of security verification of request: %OBB-E-INV_NOTAUTHORIZ, Client user is not authorized to access server. 
*** Dispatching Invocation Event

========Received request for implementation id 7bf82ed6c1d0.02.10.2c.30.11.00.00.00
Using Trusted Security package to verify request

 **** Status of security verification of request: %OBB-E-INV_NOTAUTHORIZ, Client user is not authorized to access server. 
*** Dispatching Invocation Event
*** Dispatching Disconnect Event
2470.6Some more information...HOUBA::BOUCHETFFri Apr 18 1997 13:5659
An interesting point it that it works when the object reference of the
ManagedObject1 is released before before the start the ManagedObject2.

...
#define OBJECT_MANAGER_OBJREF    "/ObjectManager"
...
    theORB = CORBA_ORB_init(
        &argc, argv,
        CORBA_DEC_ORB_ID,
        &theEnvironment);
...
    theNamingService = CORBA_ORB_resolve_initial_references(
        theORB,
        CORBA_NAMESERVICE_INITNAME,
        &theEnvironment);
...
    theNameComponent.id = OBJECT_MANAGER_OBJREF;
    theNameComponent.kind = NULL;

    theName._length = 1;
    theName._maximum = 1;
    theName._buffer = &theNameComponent;

    theObjectManager = CosNaming_NamingContext_resolve(
        theNamingService,
        &theEnvironment,
        &theName);
...
    theManagedObject1 = OMGR_ObjectManager_createManagedObject(
        theObjectManager, &theEnvironment, 
        "directory", "ManagedObject_1", "ID1", 5, 5, 30);
...
    OMGR_ManagedObject_start(
        theManagedObject1, &theEnvironment, theObjectManager,
        "directory", "ManagedObject_1", "ID1", 5, 5, 30);
...
    OMGR_ManagedObject_stop(
       theManagedObject1, &theEnvironment);
...
    OMGR_ManagedObject_delete(
       theManagedObject1, &theEnvironment);
...
    CORBA_Object_release (
       theManagedObject1, &theEnvironment);
...
    theManagedObject2 = OMGR_ObjectManager_createManagedObject(
        theObjectManager, &theEnvironment, 
        "directory", "ManagedObject_2", "ID2", 5, 5, 30);
...
    OMGR_ManagedObject_start(
        theManagedObject2, &theEnvironment, theObjectManager,
        "directory", "ManagedObject_2", "ID2", 5, 5, 30);
...
    OMGR_ManagedObject_stop(
       theManagedObject2, &theEnvironment);
...
    OMGR_ManagedObject_delete(
       theManagedObject2, &theEnvironment);
...
2470.7REQUE::BOWERPeter Bower, ObjectBrokerSat Apr 19 1997 11:375
    
    Your servers are attempting to look up proxies for remote host
    HOUBA and remote user BOUCHETF. Have you tried adding a proxy
    for this user.
    
2470.8It seems to be similar to a known bugHOUBA::BOUCHETFMon Apr 21 1997 05:2518
Hello Peter,

I have checked with the MCS group that is in charge to support ObjectBroker
and they told me that this problem is similar to a bug that was fixed in 
V2.7-10. The problem was a related to a bad context switching between two
requests sent to different implementations. They told me to try with the 
security model set to OPEN and it works. Do you think that this bug could 
have been re-introduced in V2.7-11. If this work around is acceptable for
the moment (at least I can deliver the prototype), I am interested to 
understand what's the problem before to go on.

Regarding the proxy, I have tried to add one (remote hosts=*, remote users
=* on local account bouchetf) but it does not change anything. In addition
both client and server are running on HOUBA for the tests.

Cheers.

Frederic
2470.9LEMAN::DONALDSONFroggisattva! Froggisattva!Wed Apr 23 1997 11:4014
What is important to note with Fred's example is that
he does *exactly* the same thing twice from one server
(an ObjectManager):

	- autostart a ManagedObject server, which fixes itself up with
	  the id in the impldef of the objref used to make the request.

The first request works perfectly. The second auto-starts 
a second server (good!) and then fails to handle the request
(bad! and wrong!). 

This is very easy to reproduce and a bug in OBB (IMHO of course).

John D.