Quantcast
Channel: Forum Microsoft Identity Manager
Viewing all articles
Browse latest Browse all 1783

Mail Attribute - exported change not re-imported

$
0
0
Hi,

I have 2 Exchange 2010 forests, let's say contoso and widgets. I'm using the Out of the box GALSync MAs with some code adjustments. I have a requirement to set the AD mail attribute in each forest to something other than the primary SMTP and I have written some code to manipulate the mail attribute upon import into the MV as below.

The code checks whether a user is in scope for processing and then returns an appropriate @contoso.com address from the proxyAddresses before setting the mail target. This works fine for importing addresses into the MV, I can see the correct address is modified in the MV and the logs show the mail attribute as being of type @contoso.com.

Case "ChangeMailTarget"
                    searchedaddress = SearchForContosoAddresses(csentry("proxyAddresses").Values.ToStringArray, "@contoso.com")
                    Select Case csentry.ObjectType
                        Case USER
                            'Check user is in scope for processing
                            If (Len(searchedaddress) > 1 And CheckUserScope(csentry("sAMAccountName").Value)) Then
                                'set the mail attribute
                                Log("Setting AD mail atrribute for user " & csentry("sAMAccountName").Value.ToString & " as " & searchedaddress)
                                'set the AD mail attribute
                                mventry(MAIL).Value = searchedaddress
                            Else 
'Use default values
                                mventry(MAIL).Value = csentry(MAIL).Value
                            End If


Upon export, there are no errors, but I hit an error on import whereby the change is not imported. In the target AD the mail attribute is not set correctly.

Please advise how I can get the mail attribute to set correctly. I can't use the suggestion below as I don't want to set the primary SMTP.

http://social.technet.microsoft.com/wiki/contents/articles/16506.troubleshooting-galsync-exchange-2010-provisioning-updating-mail-attribute-error-exported-change-not-reimported.aspx

Thanks in advance



IT Support/Everything


Viewing all articles
Browse latest Browse all 1783

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>