ExOLEDB Provider Does Not Support Authentication (260771)



The information in this article applies to:

  • Microsoft Exchange 2000 Server

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"

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 = "file://./backofficestorage/yourdomain.com/public folders/mypubfolder"
    
    ' Authentication failed here.
    rec.Open strURL, , adModeReadWrite, _
      adCreateCollection Or adCreateOverwrite, , "administrator", "password"
    rec.Close
				

Modification Type:MinorLast Reviewed:3/4/2004
Keywords:kbMsg kbprb KB260771