COM+ Impersonation

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Farek

    #1

    COM+ Impersonation

    Hello all,

    Im writing a few COM+ where one COM+ class, clsSPM, holds an address for a
    Remote Object.

    Since I dont want everyone to be able to get this address clsSPM is storing,
    Im using the following code to validate the caller in clsSPM:


    If ContextUtil.IsS ecurityEnabled Then
    System.Diagnost ics.EventLog.Wr iteEntry("clsSP M", _
    "Validating Caller : " +
    SecurityCallCon text.CurrentCal l.OriginalCalle r.AccountName,
    EventLogEntryTy pe.Information)
    If SecurityCallCon text.CurrentCal l.IsCallerInRol e("Master") = True Then
    bRetVal = True
    End If
    End If


    The problem Im having is when other COM+ classes wants to access the clsSPM
    because they are creating the clsSPM with no Security Enabled.

    The SecurityCallCon text.CurrentCal l.OriginalCalle r.AccountName becomes ""
    when other COM+ classes calls.

    So does anybody know how to get a COM+ to create other COM+ classes with the
    AccountName it was self created in?

    Best Wishes,
    Farek

Working...