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

Why is not the connector existing

$
0
0

Hello!

I only use the Synchronization Service and no Portal.
I have three agents HR, AD and Phone. The two HR and AD are just simple database and no real AD and HR

Five object in HR are the same as five in AD.

I run these profiles
Full Import for agent HR so the CS contains the Data
Full Sync HR which call the provision which create Phone object that links to MV object

Full Import AD so the CS contains the AD data
Full Sync AD which call the provision for Phone and when I check the debugger I can see that targetAgent(se code below) is 0 but I mean that this should be 1 because when run full sync on HR I created a connector between the created Phone object and the MV. If I do search Connector space for Phone I can see that the Connector is True for all 10 objects.

//Here is the code that provision Phone
void ProvisionPhone(MVEntry mventry)
        {
            CSEntry csentryKatalog;
            ReferenceValue dn;
            int connectorsSourceSystem = mventry.ConnectedMAs["Projekt - Personal"].Connectors.Count;
            if (connectorsSourceSystem == 0)
            {
                connectorsSourceSystem = mventry.ConnectedMAs["Projekt - AD"].Connectors.Count;
            }
            ConnectedMA targetAgent = mventry.ConnectedMAs["Projekt - Phone"];
            
            if (connectorsSourceSystem >= 1 && targetAgent.Connectors.Count == 0)
            {
                dn = targetAgent.CreateDN(mventry["personnummer"].Value);
                csentryKatalog = targetAgent.Connectors.StartNewConnector("Katalog");
                csentryKatalog.DN = dn;
                csentryKatalog["MAID"].Value = mventry["personnummer"].Value;
                csentryKatalog.CommitNewConnector();
            }

//Tony


Viewing all articles
Browse latest Browse all 1783

Trending Articles



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