Changing the SMTP address on a contact does not update the Email field on the General tab. (NETIQKB52663)

  • 7752663
  • 02-Feb-2007
  • 19-Jun-2007

Resolution

fact
Directory and Resource Administrator 7.5

symptom
Changing the SMTP address on a contact does not update the Email field on the General tab.

symptom

If you change the SMTP address on a contact using native tools, the Email Address space on the General tab updates, but if you make the change using Directory and Resource Administrator, it does not.



symptom
Why can't I update the SMTP address of a contact using DRA?

fix

This is a known issue that is scheduled to be fixed in the next release of Directory and Resource Administrator.

As a workaround, use a pre-task trigger associated with the ContactSetInfo operation.

To create a pre-task trigger for the ContactSetInfo operation:

  1. Copy the following code into Notepad and save it as a .vbs file on the Directory and Resource Administrator server computer:
  2. #!vbscript

    Function Main
    On Error Resume Next

    Dim sMail,strSMTP,sProxyAddress,iArraySize,I

    strSMTP = "SMTP:"

    Select Case UCASE(Varset.Get("In.OperationName"))

    Case "ContactSetInfo"

     sProxyAddress = Varset.Get("In.Properties.proxyAddresses")

     iArraySize = (UBound(sProxyAddress) - LBound(sProxyAddress)) + 1

     If (iArraySize > 1) Then     
      For I = LBound(sProxyAddress) To UBound(sProxyAddress)             
       If (StrComp(Left(sProxyAddress(I),5),strSMTP,0) = 0) Then
        sMail = Right(sProxyAddress(I), Len(sProxyAddress(I)) - 5)
        Varset.Put "In.Properties.Mail",sMail
        Main = True
        Exit Function
       End if
      Next
     End if
    End Select

    End Function

  3. Open the Delegation and Configuration console.
  4. Expand Policy and Automation Management > Automation Triggers.
  5. In the taskbar, click New Trigger to launch the Automation Trigger Wizard.
  6. Click Next and select Pre-task Trigger.
  7. Click Browse and locate the ContactSetInfo operation.
  8. Click Add and then click OK.
  9. Click Next.
  10. Select Script for the file type.
  11. In the DO File Path field, type the path to the location of the script.
  12. Click Next, and then click Next again to accept the default settings for the scope.
  13. If you want to accept the default error messages created by the wizard, click Next.
  14. If you want to customize your own error messages, type your error message text into the appropriate text boxes and click Next.
  15. Type a name and description for your trigger, verify that the Trigger Enabled check box is selected, and click Next.
  16. Verify that all information listed in the Summary is correct and click Finish.
  17. Try to edit a contact. The required fields should be updated correctly.


note

This issue is scheduled to be fixed in the next release of Directory and Resource Administrator, and the trigger script above is only a workaround until the new version of Directory and Resource Administrator is released.



Additional Information

Formerly known as NETIQKB52663