Microsoft KB Archive/316952

= XADM: Security Descriptors That You Retrieve from Exchange 2000 by Using ActiveX Data Objects and the Exchange 2000 OLEDB Provider May Be Empty =

Article ID: 316952

Article Last Modified on 10/26/2006

-

APPLIES TO


 * Microsoft Exchange Server 2000 Service Pack 1
 * Microsoft Exchange 2000 Server Service Pack 2

-



This article was previously published under Q316952





SYMPTOMS
With the Web Storage System's security model, you can manage item security descriptors by using Microsoft ActiveX Data Objects (ADO) with the Exchange 2000 OLEDB provider (Exoledb). In Exchange 2000 Server Service Pack 1 (SP1) and later, this functionality may not work and a security descriptor that you retrieve from Exchange 2000 Server may be empty.



RESOLUTION
To resolve this problem, obtain the latest service pack for Microsoft Exchange 2000 Server. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

301378 XGEN: How to Obtain the Latest Exchange 2000 Server Service Pack

The English version of this fix should have the following file attributes or later:

Component: Exoledb



STATUS
Microsoft has confirmed that this is a problem in Microsoft Exchange 2000 Server. This problem was first corrected in Microsoft Exchange 2000 Server Service Pack 3.



MORE INFORMATION
The following Microsoft Visual Basic sample retrieves the security descriptor for a given item in the &quot;MyFolder&quot; public folder:

...

const strFolderURL = &quot;http://MyServer/public/Myfolder&quot;

Dim con As ADODB.Connection

Dim rec As ADODB.Recordset

Dim strSQLQuery As String

Dim strSD As String

dim strDAVDisplayName as String

If con.State = adStateOpen Then rec.Close

con.Close

End If

con.Provider = &quot;ExOLEDB.Datasource&quot;

con.ConnectionString = strFolderURL

con.Open strSQLQuery = &quot;select &quot;&quot;DAV:displayname&quot;&quot;,&quot;&quot;http://schemas.microsoft.com/exchange/security/descriptor&quot;&quot; from &quot;&quot;&quot; + strFolderURL + &quot;&quot;&quot;&quot;

rec.Open strSQLQuery, con

If rec.RecordCount > 0 Then rec.MoveFirst

strDAVDisplayName = rec.Fields(&quot;DAV:displayname&quot;)

strSD = rec.Fields(&quot;http://schemas.microsoft.com/exchange/security/descriptor&quot;)

End If

...

For the RTM version of Exchange 2000 Server, &quot;strSD&quot; contains the Extensible Markup Language (XML)-formatted security descriptor for the first item in the &quot;MyFolder&quot; public folder that matches the preceding query. In Exchange 2000 Server SP1 and later, this functionality does not work; you receive a run-time error &quot;94&quot; with an &quot;Invalid use of Null&quot; message instead of the expected XML-formatted security descriptor.

Keywords: kbbug kbexchange2000presp3fix kbexchange2000sp3fix kbfix KB316952

-

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

© Microsoft Corporation. All rights reserved.