Friday, June 19, 2009 3:23 PM
Jorge
Provisioning to AD and OCS through ILM 2007
To provision IM-enabled AD accounts this is what you can do in your provisioning code for the AD MA… (example code snippet from my test/demo environment)
If mventry("im").Value.ToLower = "yes" Then
Dim strSIPDomain As String
Dim strSIPHomeServer As String
strSIPDomain = AD_DS_Production_USERS_MA_Params("sipdomain")
strSIPHomeServer = AD_DS_Production_USERS_MA_Params("siphomeserver")
AD_DS_Production_USERS_CsEntry("msRTCSIP-PrimaryUserAddress").Value = "sip:" & Replace(mventry("displayName").Value, " ", ".") & strSIPDomain
AD_DS_Production_USERS_CsEntry("msRTCSIP-PrimaryHomeServer").Value = strSIPHomeServer
AD_DS_Production_USERS_CsEntry("proxyAddresses").Values.Add("sip:" & Replace(mventry("displayName").Value, " ", ".") & strSIPDomain)
AD_DS_Production_USERS_CsEntry("msRTCSIP-OptionFlags").Value = "256"
AD_DS_Production_USERS_CsEntry("msRTCSIP-ArchivingEnabled").Value = "0"
AD_DS_Production_USERS_CsEntry("msRTCSIP-UserEnabled").BooleanValue = True
End If
Sipdomain and siphomeserver are values stored as parameters in an XML file. Another thing to note is that "msRTCSIP-PrimaryHomeServer" needs a DN to an OCS pool, but it is NOT a reference attribute. It is a string attribute!
Cheers,
Jorge
--------------------------------------------------------------------------------------------------
* This posting is provided "AS IS" with no warranties and confers no rights!
* Always test before implementing!
--------------------------------------------------------------------------------------------------
############### Jorge's Quest For Knowledge ###############
######## http://blogs.dirteam.com/blogs/jorge/default.aspx #########
--------------------------------------------------------------------------------------------------