Uses of the Attribute Flow Scripts That Are Included with MMS (304078)



The information in this article applies to:

  • Microsoft Metadirectory Services 2.2
  • Microsoft Metadirectory Services 2.2 SP1

This article was previously published under Q304078

SUMMARY

This article explains the scope of the attribute flow as it relates to the different flow scripts that are included with Microsoft Metadirectory Services (MMS).

MORE INFORMATION

Specific Attribute Flow

Specific attribute flow is used for making direct assignments from the MV to the CD and from the CD to the MV. This flow will occur to all connected entries, and disconnected entries will not use this flow script.
# This is a simple flow of the telephone number from the metaverse to 
# the connected directory.
$cd.telephonenumber = $mv.telephonenumber
				

Advanced Attribute Flow

Advanced attribute flow allows for the application of conditional logic to flow scripts. This flow will occur on all connected objects and will override Specific Flow rules in the case of a collision. Disconnected objects will not use this flow script.
# Check for the existence of the metaverse telephone number if it is there
# and then send the metaverse value to the connected directory.
If $exists($mv.telephonenumber)
then
$cd.telephonenumber = $mv.telephonenumber
endif 
				

Disconnection Flow Script

The disconnection flow script only runs when the management agent disconnects objects. It will not run when a function (such as $Disconnect or $Disconnect_Specific) is used to disconnect the objects.
# The user is gone so null the phone number.
$cd.telephonenumber = $null
				

CD Flow Script

The CD flow script runs when objects are disconnected and also have been assigned the msMMS-managedbyprofile = TRUE attribute. This script will only make assignments to the connected directory.
#If the object is disconnected and has been provisioned by TAMA it will send
#the useraccountcontrol value of 514 to the AD to disable the user object. #This will generally be useful when the msMMS-TimeToLive attribute is set to
#something other than 0.
$cd.useraccountcontrol = 514
				
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.

Modification Type:MajorLast Reviewed:6/17/2005
Keywords:kbinfo KB304078