Quantcast
Channel: Microsoft Identity Manager forum
Viewing all articles
Browse latest Browse all 7443

FIM 2010 - Syncronize between SQL and Active Directory

$
0
0

Hi,

I have MIIS 2003 running on my production environment.

Now in my development environment i have a FIM 2010 installed with two agents and the same extensions (code) used in production environment. The two agents are an agent for a RH database and an agent for Active directory.

But now in my development environment i have a difference from production, all my AD accounts already exists. I run the first import of the AD Agent and it creates all the CSEntries in the conector space of the agent. But when i run the full import and synchronize of the RH database agent (this agent is configured for provisioning) it creates the MV entry but it says the object already exists in the conector space (AD agent) with the following error:

"Microsoft.MetadirectoryServices.ObjectAlreadyExistsException: An object with DN "CN=xxx,OU=yyy..." already exists in the managemet agent "Contoso.PT AD Agent"

I use the following piece of code for provisioning:

    Connected_AD_MA = mventry.ConnectedMAs["Contoso.PT AD Agent"];

    ParentContainer = mventry["userOU"].Value;
    rdn= "CN=" + mventry["login"].Value;
    DN = Connected_AD_MA.EscapeDNComponent(rdn).Concat(ParentContainer);

    
    //The first connector to be built
    if(Connected_AD_MA.Connectors.Count == 0)
    { 
     //Account provisioning in AD

     ConSpaceEntry = Connected_AD_MA.Connectors.StartNewConnector("user");
     ConSpaceEntry.DN = DN;
     SetUserAccountSettings(ConSpaceEntry, mventry, Connected_AD_MA);
     ConSpaceEntry.CommitNewConnector();
    }

I thought .startnewconnector just link the mv entry with the csentry but did not create the cs entry itself.

Do u have any ideas how i can solve this problem in this first import where the objects already exists in AD and what comes from the RH database is mandatory so the provisioning code has to be runed?

TIA.

Filipe Clemente


Viewing all articles
Browse latest Browse all 7443

Trending Articles



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