Microsoft KB Archive/260771

= ExOLEDB Provider Does Not Support Authentication =

Article ID: 260771

Article Last Modified on 2/22/2007

-

APPLIES TO


 * Microsoft Exchange 2000 Server Standard Edition

-



This article was previously published under Q260771



SYMPTOMS
When you work with the Exchange OLE DB provider (ExOLEDB), if you try to pass user name and password parameters to open an ActiveX Data Objects (ADO) Connection or Record object, you may receive the following error:

Run-time error '-2147217843 (80040e0d)': Authentication failed&quot;



CAUSE
The Exchange OLE DB provider does not support authentication. The calls made when you use this provider run under the security context of the current application.



WORKAROUND
You may want to use Web Distributed Authoring and Versioning (WebDAV) or Microsoft OLE DB Provider for Internet Publishing (MSDAIPP), which has the ability to authenticate by user name and password.



MORE INFORMATION
The following sample code demonstrates the behavior: Dim rec As New ADODB.Record Dim strURL As String

' This will invoke ExOLEDB by default. strURL = &quot;file://./backofficestorage/yourdomain.com/public folders/mypubfolder&quot; ' Authentication failed here. rec.Open strURL,, adModeReadWrite, _ adCreateCollection Or adCreateOverwrite,, &quot;administrator&quot;, &quot;password&quot; rec.Close

Additional query words: ADO ExOlEDB

Keywords: kbmsg kbprb KB260771

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.