Microsoft KB Archive/274756

= Processing Lists Deletes DSA Object from Metadirectory =

Article ID: 274756

Article Last Modified on 10/2/2003

-

APPLIES TO


 * Microsoft Metadirectory Services 2.1
 * Microsoft Metadirectory Services 2.2 Service Pack 1

-



This article was previously published under Q274756



SYMPTOMS
When a Microsoft Metadirectory Services Management Agent processes delete requests, the Directory Server Agent (DSA) object is deleted.



CAUSE
This behavior may occur when a delete request specifies the null-string as a distinguished name of the target object. Because the DSA object is a parent for all of the Management Agents, when the DSA is deleted then most of the directory is also removed.

This behavior may occur when both of the following conditions exist:
 * In the Lotus Notes MA, a format definition in the Delete parsing template for the list object distinguished is absent.
 * In the Microsoft Exchange (Messaging Application Programming Interface [MAPI]) Management Agent, a delete request is received which results in the variable v_zcExchangeAbridgedDN holding a distinguished name which does not exist in the Connector Space (CS).

Ultimately, the behavior of the IMPORTT program causes the unexpected deletion. IMPORTT defaults to the DSA record when the target object's distinguished name is not specified. By convention, the root record is assumed to have an empty distinguished name as it sits at the top of the directory tree.

Note that although only the Lotus Notes and Microsoft Exchange (MAPI) Management Agents are identified in this article, this behavior remains a possibility in any MA.



RESOLUTION
To resolve this behavior for Lotus Notes MA or Microsoft Exchange MAPI MA follow the appropriate steps.

Lotus Notes MA
To resolve this behavior, modify the template that defines the list object's distinguished name twice. The first modification must occur within the templates of existing Lotus Notes MAs. Make the second modification within the generic Lotus Notes templates that you use to create new Lotus Notes MAs.  Make the first modification by modifying an existing Lotus Notes Management Agent:  Use Microsoft Metadirectory Services Compass to locate the Lotus Notes MA. On the Actions menu, click Design MA. Click the Control Metadirectory tab, click the Parsing Templates tab, and then click the Delete tab. Modify the template so that it matches the following information:

NotesDel: $v_notesObjectClass

FullName: $v_Name

ListName: $v_Name

 Click OK.</li></ol> </li> Make the second modification by modifying the Lotus Notes Management Agent Setup templates: <ol style="list-style-type: lower-alpha;"> On the drive where Microsoft Metadirectory Services is installed, view the \zoomserv\data\dsgates\notes folder.</li> Use Notepad to open the Imp.udt file.</li> Modify the file contents so that it matches the following information:

NotesDel: $v_notesObjectClass

FullName: $v_Name

ListName: $v_Name

</li>  Save the file, and then quit Notepad.NOTE: The preceding steps modify the template files, as they exist on the Microsoft Metadirectory Services server. Subsequent creation of new Lotus Notes management agents automatically includes these template modifications.

Microsoft Exchange MAPI MA
To resolve this behavior, modify the construction template that defines the connector space object’s distinguished name to ensure that a blank DN is never set. As in the Notes MA, make modifications twice to ensure that this behavior is corrected in current as well as future MAs. The first modification must occur within the templates of existing Microsoft Exchange MAPI MAs. Make the second modification within the generic Microsoft Exchange MAPI templates that are used to create new Microsoft Exchange MAPI MAs.

<ol> Make the first modification by modifying an existing Microsoft Exchange MAPI Management Agent: <ol style="list-style-type: lower-alpha;"> 

</li> Use Microsoft Metadirectory Services (MMS) Compass to locate the Microsoft Exchange MAPI MA.</li> On the Actions menu, click Design MA.</li> Click the Control Metadirectory tab, click the Construction Templates tab, and then click the Connector Space tab.</li>  Modify the second block of code in the template so that it matches the following information. It is recommended that the block be replaced with the following: <pre class="fixed_text"># for objects with an unspecified object class, search for the object underneath the MA entry and # use it's &quot;zcAliasThingObjectName&quot; attribute as the Metaverse DN    if $exist($v_msxObjectClass) = F     then # Used to process a deletion $v_temp1 = $parser(&quot;$v_msxObjectDn&quot;,&quot;/o=$v_orgName/$v_temp2&quot;) $v_zcExchangeAbridgedDN = /$v_temp2 $at.dn = $search($v_zcExchangeAbridgedDN) $zcoc = person ###           # The following section contains the new code which verifies # that the value of the distinguished name is not the null string. ###           if $exist($at.dn) = F            then $at.dn = cn=No_dn_supplied(,$MA) $dn = $at.dn           else $dn = $get_attr(&quot;$at.dn&quot;,$zcAliasThingObjectName) endif endif

</li> Click OK.</li></ol> </li> Make the second modification by modifying the Microsoft Exchange MAPI Management Agent Setup templates:

<ol style="list-style-type: lower-alpha;"> On the drive where MMS is installed, view the \zoomserv\data\dsgates\exchange folder.</li> Use Notepad to open the at.st file.</li>  Modify the second block of code in the template so that it matches the following information. It is recommended that the block be replaced with the following: <pre class="fixed_text">   # for objects with an unspecified object class, search for the object underneath the MA entry and # use it's &quot;zcAliasThingObjectName&quot; attribute as the Metaverse DN    if $exist($v_msxObjectClass) = F     then # Used to process a deletion $v_temp1 = $parser(&quot;$v_msxObjectDn&quot;,&quot;/o=$v_orgName/$v_temp2&quot;) $v_zcExchangeAbridgedDN = /$v_temp2 $at.dn = $search($v_zcExchangeAbridgedDN) $zcoc = person ###           # The following section contains the new code which verifies # that the value of the distinguished name is not the null string. ###           if $exist($at.dn) = F            then $at.dn = cn=No_dn_supplied(,$MA) $dn = $at.dn           else $dn = $get_attr(&quot;$at.dn&quot;,$zcAliasThingObjectName) endif endif

</li> <li>Save the file, and then quit Notepad.NOTE: The preceding steps modify the template files, as they exist on the MMS server. Subsequent creation of new Microsoft Exchange MAPI management agents automatically includes these template modifications.</li></ol> </li></ol> </li></ol> </li></ol>

<div class="status_section">

STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This behavior has been corrected in Microsoft Metadirectory Services 2.2 Service Pack 1.

The third-party products that are discussed in this article are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these products.

Additional query words: zoomit zscript genlogs imp.udt at.st

Keywords: kbbug kbfix kb3rdparty KB274756

-

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

© Microsoft Corporation. All rights reserved.