(2009-06-19) Provisioning To AD And OCS Through ILM 2007
Posted by Jorge on 2009-06-19
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 evaluate/test yourself before using/implementing this!
* DISCLAIMER: https://jorgequestforknowledge.wordpress.com/disclaimer/
———————————————————————————————
############### Jorge’s Quest For Knowledge #############
######### http://JorgeQuestForKnowledge.wordpress.com/ ########
———————————————————————————————
Leave a Reply