Using ADSSecurity.DLL from an ASP.NET web service

From: Gilligan Joy (Joy.DG_at_forces.gc.ca)
Date: 10/23/03

  • Next message: Jim Cheshire [MSFT]: "RE: Access network resources from ASP.NET"
    Date: Thu, 23 Oct 2003 09:56:04 -0700
    
    

    Hi all,

    I'm trying to obtain a hex string security ID (SID) using ADsSecurity.DLL
    from a web service. However, when the ADsSID.SetAs() method is invoked from
    within the web service, a "page not found" error is generated in the browser
    window. Impersonating using an administrator's account doesn't work.

    I can obtain a hex string security ID without any difficulty using
    ADsSecurity.DLL from a Windows Forms application running under an
    administrator's account.

    I have found code on the web for the .NET equivalent for obtaining the hex
    string security ID (by using property "objectSID"), but it returns a blank
    value.

    Any help would be appreciated!

    Thanks,
    Gilligan Joy


  • Next message: Jim Cheshire [MSFT]: "RE: Access network resources from ASP.NET"