Dynamic Data is Written to Disk

ID: Q194720


The information in this article applies to:
  • Microsoft Site Server version 3.0


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 : prodsitesrv3 kbfix4.00.sp4
Version : WINNT:3.0
Platform : winnt
Issue type : kbprb


Last Reviewed: July 19, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.