Microsoft KB Archive/194720

= Dynamic Data is Written to Disk =

Article ID: 194720

Article Last Modified on 7/21/1999

-

APPLIES TO


 * Microsoft Site Server 3.0 Standard Edition

-



This article was previously published under Q194720



SYMPTOMS
When you create and modify dynamic objects in the Site Server 3.0 Membership directory, the dynamic object's data is written to the Membership directory's database instead of being kept in memory.



CAUSE
This is typically caused by creating dynamic objects in containers that have not been marked with the "containsDynamicOnly" flag. Without this flag, the Membership directory treats dynamic objects the same as any other object and writes the information to its database.



RESOLUTION
The containsDynamicOnly attribute cannot be set from the Microsoft Management Console (MMC). It must be set at the time the container is created. The following code demonstrates this procedure: Dim adsRoot Dim adsNewCont Dim strLdapPath Dim strAdmin Dim strAdminPwd

strLdapPath = "LDAP://localhost:389/o=Microsoft" strAdmin = "cn=Administrator,ou=Members,o=Microsoft" strAdminPwd = "password"

Set adsRoot = GetObject("LDAP:") Set adsRoot = adsRoot.OpenDSObject(strLdapPath, strAdmin, _     strAdminPwd, 0)

Set adsNewCont = adsRoot.Create("organizationalUnit",  "ou=DynamicObj") adsNewCont.Put "containsDynamicOnly", CInt(1) adsNewCont.SetInfo When the containsDynamicOnly attribute is set on a container, any objects created in the container are only kept in memory and, therefore, should not be used for anything but storing dynamic objects. Also, once this flag has been set, it cannot be removed.

This behavior is by design.

Additional query words: kbDSupport

Keywords: kbprb KB194720

-

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

© Microsoft Corporation. All rights reserved.