Hello,
The problem is that Adaxes 2013.1 looked up Lync Server configuration in the Configuration partition in AD., for example:
CN=RTC Service,CN=Services,CN=Configuration,DC=example,DC=com
However, sometimes Lync Server configuration is stored in the System partition (as in your case):
CN=RTC Service,CN=Microsoft,CN=System,DC=example,DC=com
This usually happens if you earlier had an OCS Server installed in your organization with a server version prior to OCS Server R2. Adaxes doesn't expect the Lync Server configuration to be stored in the System partition. This was fixed in Adaxes 2013.2.
If you don't want to upgrade right now, you can use the following PowerShell script. It adds the Enable for Lync action to a Business Rule specified by $ruleName. The Lync pool to be used by the action is specified by $lyncPool. The Business Rule must be created before launching the script. The script must be launched on the computer where your Adaxes servie is installed with credentials of an Adaxes service administrator.
Warning: Do not edit the action after you've added it by the script, otherwise the action will become unusable.
[Reflection.Assembly]::LoadWithPartialName("Softerra.Adaxes.Adsi")
$ruleName = "My Rule" # TODO: modify me
$lyncPool = "lyncserverA.example.com" # TODO: modify me
$admNS = New-Object "Softerra.Adaxes.Adsi.AdmNamespace"
$admService = $admNS.GetServiceDirectly("localhost")
$businessRulesPath = $admService.Backend.GetConfigurationContainerPath("BusinessRules")
$businessRulesPathObj = New-Object "Softerra.Adaxes.Adsi.AdsPath" $businessRulesPath
$myBusinessRuleAdsPath = $businessRulesPathObj.CreateChildPath("CN=$ruleName")
$rule = $admService.OpenObject($myBusinessRuleAdsPath, $NULL, $NULL, 0)
# Create a new set of actions and conditions
$actionsAndConditions = $actionsAndConditions = $rule.ConditionedActions.Create()
$actionsAndConditions.ConditionsLogicalOperation = "ADM_LOGICALOPERATION_AND"
$actionsAndConditions.SetInfo()
# Enable the User for Lync
$action = $actionsAndConditions.Actions.CreateEx("adm-LyncEnableDisableAction")
$action.ExecutionOptions = "ADM_ACTIONEXECUTIONOPTIONS_SYNC"
$lyncAction = $action.GetAction()
$lyncAction.Enable = $True
$lyncAction.Pool = $lyncPool
$lyncAction.SipAddress = "sip:%mail%"
$action.SetAction($lyncAction)
$action.SetInfo()
$actionsAndConditions.Actions.Add($action)
# Add the set to the Business Rule
$rule.ConditionedActions.Add($actionsAndConditions)