none
How to write back to homeDirName and homeDirPath in the database RRS feed

  • Question

  • Hello!

    I'm totally new to Forefront Identity Manager. Here is what I have done.

    1. I have created two agent called "Projekt - Personal" and "Projekt - Homekatalog"
    The first agent is input
    The second agent is output

    2. I use method GenerateImportFile in ProjektAgentPersonal.c to read the db and create a file which is creating the objects from the created file in the connector space(CS). So when I use the profile Full Import for agent "Projekt - Personal" the CS will contain the objects from the file.

    3.Then I use the profile Full sync to project the objects in CS into Metaverse(MV). When I do this the CS in the output will also provision the object from MV into the outbound CS.

    4. Finally I call the profile export in Projekt - Homekatalog

    I use the following 5 dll: "MAC - ProjektAgentPersonal.dll", "MAC - ProjektAgentHemkatalog.dll", 

    "MAR - ProjektAgentPersonal.dll"
    "MAR - ProjektAgentHemkatalog.dll"
    "MVE - ProjektAgentHemkatalog.dll"

    5. It also work to validate my export by importing the homeDirectory into CS.

    So when I have called the profile Export the output will be the following.
    These directories kalper01,nishul01,sveås01,sveås02,sveås03 is being created under C:\MyHomeDir\Personal
    In addition these dapartments support-1, ekonomi-2, inköp-3  is also being created under C:\MyHomeDir\Group
    because these are the departments that these persons is working on. The format xxx-y is xxx is the department name and y is departmentID.
    All this is working fine for me.

    The database table Person that I read from looks like this:
    SocialSecurityNumber
    ForeName
    SurName
    City
    PhoneNumber
    Address
    MiddleName
    DepartmentName
    DepartmentID
    HomeDirectoryName
    HomeDirectoryPath

    If I do Search Connector Space at the CS inbound I can see the following. Only one row is each object type is shown   
    DN            ObjectType               Connector          Explicit
    100             Person                       True                False
    ekonomi-2    Group                        True                False

    I I doubleclick on the first row I see:
    Changes      AttributeName              Type        Value
    none           Address                         string      Stigen 4
    none           Department                   string      Inköp
    none           SurName                       string      Hult
    none           ForeName                      string      Nisse
    none           MAID                             string      100
    none           MiddleName                  string       Harald
    none           SocialSecurityNumber     string      100
    none           City                               string     Örebro
    none           PhoneNumber                string      30000

    If I doubleclick on the second row which is group I can see:
    Changes      AttributeName              Type        Value
    none            Avdelning                     string      Ekonomi
    none            AvdelningsID                string       2
    none           MAID                            string       ekonomi-2
    none           Medlemmar                  reference    ...

    If I do Search Connector Space at the CS outbound I can see the following. Only two rows are shown. The principle is the same for the other. 
    DN               ObjectType               Connector          Explicit
    nishul01        Katalog                      True                False
    ekonomi-2     Katalog                       True                False

    If I doubleclick on the first row I can see:
    Changes      AttributeName              Type  Old Value        New Value
    add                homeDir                   string                         nishul01
    add               homeDirFull               string                         C:\MyHomeDir\Personal\nishul01
    add               homeDirOrg               string                         C:\MyHomeDir\Personal\nishul01

    If I doubleclick on the second row whick is this "ekonomi-2     Katalog                       True                False"  I can see:
    Changes      AttributeName              Type  Old Value        New Value
    add               homeDir                     string                        ekonomi-2
    add               homeDirFull                string                       C:\MyHomeDir\Group\ekonomi-2
    add               homeDirOrg                string                       C:\MyHomeDir\Group\ekonomi-2

    Now to my question:
    I want to be able to rewrite homeDir for a Person for example nishul01 into the database column HomeDirectoryName and the path C:\MyHomeDir\Personal\nishul01 into database column HomeDirectoryPath.

    The first action that needs to be done is in some way to be able to update the Metaverse with homeDir and homeDirFull.
    How can I do that?

    //Tony

    Wednesday, June 20, 2018 7:21 AM