Microsoft Forefront TechCenter > Forefront Forums > Identity Lifecycle Manager > Provisioning Exchange 2007 with ILM 2007

Answered Provisioning Exchange 2007 with ILM 2007

  • Wednesday, September 02, 2009 9:42 PM
     
     
    Hi there

    I´m new with ILM and MIIS and I´m trying to populated my Exchange 2007 with exiting accounts in my AD, but I can´t, I already installed Exchange 2007 tool and powershell in my ILM server and check the provisioning exchange 2007 option in my MA.

    Somebody would be so kind to help me with some "provisioning Exchange 2007 with ILM 2007 for dummy" please

Answers

  • Friday, September 25, 2009 4:55 PM
     
     Answered
    Hi everyone

    Now, I´m able to create mailboxes, I change my HomeMDB path. Thnks everyone.
    • Marked As Answer by kichitan Friday, September 25, 2009 4:55 PM
    •  

All Replies

  • Wednesday, September 02, 2009 11:09 PM
     
     
    You will need to install Exchange Roll up 9 on the ILM server and be sure to have installed Powershell. Export the following attributes:

     

    Mandatory attributes

    • mailNickname: This attribute is the alias to the mailbox.
    • displayName: This attribute is the text that is the readable name that represents you for mail delivery, and in the address book.
    • One of the three attributes in the following list:
      • homeMTA: This attribute is a distinguished name to the Message Transfer Agent (MTA) object where your mailbox resides.
      • homeMDB: This attribute is a distinguished name to the private Messaging Database (MDB) where your mailbox resides.
      • msExchHomeServerName: This attribute is the legacy distinguished name to the server where you have a mailbox (that is, /o=org/ou=site/cn=configuration/cn=servers/cn=server).

    This will create mailboxes for existing AD accounts.

    Hope this helps,
    Mark
  • Thursday, September 03, 2009 1:01 AM
     
     
  • Thursday, September 03, 2009 4:42 PM
     
     
    Thnks Mark I already have the roll up 9 intalled, but I have a different error when i try to create the mail accounts this is my code

    <email-mdb>CN=Mailbox Store (EXCHANGE),CN=First Storage Group,CN=InformationStore,CN=EXCHANGE,CN=Servers,CN=First Administrative Group,CN=Administrative Groups,CN=testOrg,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=test,DC=com</email-mdb>


    My flow

    displayName  <- displayName
    givenName <- givenNAme
    sAMAaccountName <- sAMAaccountName
    sn <- sn
    userPrincipalName <- uid
    userAccountControl <- employeeStatus   Rule Extension
    mail -> mail

    all of them direct

    • Edited by kichitan Tuesday, February 23, 2010 6:11 PM
    •  
  • Friday, September 04, 2009 6:46 AM
     
     

    Could you please describe your scenario and error messages a little bit more in detail:

    Is your AD domain name really ica.com.mx?

    What are the error messages in detail? At which processing stage do they appear?

    Is your attribute flow from Metaverse to AD, except mail (which flows from AD to Metaverse)?

    /Matthias 

  • Friday, September 04, 2009 6:56 AM
     
     
    Please consider this article when gathering information. That should give us the possibilities to answer your question.
    Paul Loonen (Avanade)
  • Friday, September 04, 2009 4:03 PM
     
     

    Thanks everyone for your suggestions.


    Scenario


    I have 3 servers

    1. W2K3 EE SP2 - AD and DNS
    2. W2k3 EE SP2 - Exchange 2007 SP1 x86 trial version
    3. W2K3 EE SP2 - ILM 2007 Feature Pack 1 version 3.3.118.0, SQL EE 2005 SP3 RTM, Visual Studio 2005 PRO SP1 version 8.0.50727 RTM, Exchange Management tools, Powershell and Roll Update 9.


    I´m using the 2731A course for help me out.


    I have 4 MA´s

    SQL MA
    Contractors MA
    AD MA
    telephone MA

     

    * SQL MA import all the users to the MV and then export all of them to the AD.
    * AD MA creates all the users in the AD and create Exchange Mailboxes.

    Accounts

    All my account have the right permissions to perform this task-

    Errors

    I have no errors till now.

    Question?

    Lately is working, but I have my user account into Recipient configuration -> Mail contact not Mailbox as I want.

    How can I create this account into mailbox container.


     

     

     

     

  • Monday, September 07, 2009 8:24 AM
     
     

    Could you please post the relevant portion of your provisioning code? Specifically the piece of code where you call ExchangeUtils.CreateMailbox.


    Paul Loonen (Avanade)
  • Monday, September 07, 2009 2:48 PM
     
     

    Provisioning Code

    Private Sub ProvisionAD( _
                ByVal mventry As Microsoft.MetadirectoryServices.MVEntry, _
                ByVal pstrAD_MA_Name As String, _
                ByVal pstrAD_CD_ParentContainer As String, _
                ByVal pblCreatePassword As Boolean, _
                ByVal pblCreateMailbox As Boolean, _
                ByVal pstrAD_CD_Object_Type As String)

            Dim csentry As CSEntry
            Dim dn As ReferenceValue
            Dim rdn As String
            Dim myConnector As CSEntry

            If mventry("cn").IsPresent Then
                Dim Connected_AD_MA As ConnectedMA

                Connected_AD_MA = mventry.ConnectedMAs(pstrAD_MA_Name)

                rdn = "CN=" + mventry("cn").Value
                dn = Connected_AD_MA.EscapeDNComponent(rdn).Concat(pstrAD_CD_ParentContainer)

                ' If there is no connector present, add a new AD connector
                ' and add a password if necessary

                If Connected_AD_MA.Connectors.Count = 0 Then
                    Dim createMailAccount As Boolean
                    ' Are we creating mailboxs?
                    If pblCreateMailbox Then
                        'and does this account get one
                        If mventry("mail").IsPresent Then
                            createMailAccount = (mventry("mail").Value.ToLower = "yes")
                        End If
                    End If
                    If createMailAccount Then
                        Dim nickName As String

                        nickName = mventry("samAccountname").Value
                        csentry = ExchangeUtils.CreateMailbox(Connected_AD_MA, dn, nickName, AD_MailMDB)

                        ' Add a comment to the user AD description so we can see they have a mailbox
                        csentry("description").Value = "Email enabled"
                        If pblCreatePassword Then
                            csentry("unicodepwd").Values.Add("PA$$w0rd")
                        End If
                        csentry.CommitNewConnector()
                    Else
                        csentry = Connected_AD_MA.Connectors.StartNewConnector(pstrAD_CD_Object_Type)
                        csentry.DN = dn
                        If pblCreatePassword Then
                            csentry("unicodepwd").Values.Add("PA$$w0rd")
                        End If
                        csentry.CommitNewConnector()

                    End If
                ElseIf Connected_AD_MA.Connectors.Count = 1 Then

                    csentry = Connected_AD_MA.Connectors.ByIndex(0)
                    csentry.DN = dn
                Else
                    Throw New UnexpectedDataException("multiple AD connectors:" + Connected_AD_MA.Connectors.Count.ToString)
                End If
            End If
        End Sub

  • Monday, September 07, 2009 3:49 PM
     
     
    That code looks like it should work. However, you may want to run it through the debugger for specific accounts to make sure that the correct case is hit - you have a specific MV attribute ("mail") that must be equal to "yes" and the calling routine also must set pblCreateMailbox to True. You could verify for objects for which no account with mailbox was created that this value is actually present in the MV.
    Paul Loonen (Avanade)
  • Friday, September 25, 2009 4:55 PM
     
     Answered
    Hi everyone

    Now, I´m able to create mailboxes, I change my HomeMDB path. Thnks everyone.
    • Marked As Answer by kichitan Friday, September 25, 2009 4:55 PM
    •