Impersonate + AD

From: Alberto Ortega (beto_at_NOSPAMTOMEsouthworks.net)
Date: 03/02/05

  • Next message: Dominick Baier [DevelopMentor]: "Re: Webservice To Add User Accounts"
    Date: Wed, 2 Mar 2005 14:05:06 -0300
    
    

    Hi, I've got a difficult situation...
    Is a website that runs on IIS with Anonymous Authentication, the tag
    <identity impersonate="false"> on the Web.config file. So the thread is
    executed by user "NT AUTHORITY".
    So when I use AD API ( FindOne() ) it works well.
    The point is that when I impersonate that user by code (that works well too)
    when I execute that function from the AD API it returns an error:

    {"Operation Error" } [System.Runtime.InteropServices.COMException]:
    {System.Runtime.InteropServices.COMException} System.Object:
    {System.Runtime.InteropServices.COMException} _className: null
    _COMPlusExceptionCode: -532459699 _exceptionMethod:
    {System.Reflection.RuntimeMethodInfo} _exceptionMethodString: null _helpURL:
    null _HResult: -2147016672 _innerException: { } _message: "Operation Error"
    _remoteStackIndex: 0 _remoteStackTraceString: null _source:
    "System.DirectoryServices" _stackTrace: {System.Array} _stackTraceString: "
    at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)\r\n at
    System.DirectoryServices.DirectoryEntry.Bind()\r\n at
    System.DirectoryServices.DirectoryEntry.get_AdsObject()\r\n at
    System.DirectoryServices.DirectorySearcher.FindAll(Boolean
    findMoreThanOne)\r\n at
    System.DirectoryServices.DirectorySearcher.FindOne()\r\n at
    Banelco.CSB.DNN.Providers.ActiveDirectory.LdapAuthentication.GetUser(String
    username)" _xcode: -532459699 _xptrs: 0 HelpLink: null HResul

    Thanks

    Alberto Ortega


  • Next message: Dominick Baier [DevelopMentor]: "Re: Webservice To Add User Accounts"

    Relevant Pages

    • Impersonate + AD
      ... Is a website that runs on IIS with Anonymous Authentication, the tag ... executed by user "NT AUTHORITY". ... So when I use AD API ) it works well. ... when I execute that function from the AD API it returns an error: ...
      (microsoft.public.dotnet.security)
    • Re: Find Text between Markers - III
      ... second tag. ... the duplicate range by the length of the second tag. ... Dim myRange As Range ... If .Execute Then ...
      (microsoft.public.word.vba.general)
    • Re: Executing vbscript
      ... API in Java 6? ... If executing the VBscript is important, it might be better to use a JNI bridge to execute the Windows API to execute the VBscript directly as opposed to running through cmd.exe. ...
      (comp.lang.java.programmer)
    • Re: [RFC][PATCH] linux-2.6.2-rc2_vsyscall-gtod_B1.patch
      ... The whole vsyscall space is ... it means you can't execute it in the first place. ... the current API was presented around two years ago at UKUUG, ... better if you would send your complains to those lists at that time, ...
      (Linux-Kernel)
    • Re: Executing vbscript
      ... Are you talking about MS's "Office Open XML" format? ... file that excel could not open. ... bridge to execute the Windows API to execute the VBscript directly as ...
      (comp.lang.java.programmer)

  • Quantcast