<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello Jason,<br>
    <div class="moz-forward-container">
      <div class="moz-cite-prefix"> <br>
        the problem seems to be in your system configuration:<br>
        <br>
        Although in the exported data, there is a correct setting of:<br>
        <br>
        (version = 2)<br>
        <globalAccountSynchronizationSettings><br>
              <assignmentPolicyEnforcement><font color="#cc0000"><b>positive</b></font></assignmentPolicyEnforcement><br>
        </globalAccountSynchronizationSettings><br>
        <br>
        in reality as seen from the log, midPoint uses the following:<br>
        <br>
        (version = 12)<br>
         globalAccountSynchronizationSettings: <br>
                   
com.evolveum.midpoint.xml.ns._public.common.common_3.ProjectionPolicyType@25d25ec7[assignmentPolicyEnforcement=<font
          color="#cc0000"><b>NONE</b></font>,legalize=<null>] <br>
        <br>
        ... and so is seen in the log later:<br>
        <br>
        2015-02-20 08:54:41,698 [] [midPointScheduler_Worker-8] TRACE
        (com.evolveum.midpoint.model.impl.lens.projector.AssignmentProcessor):
        Finishing legal decision for (account (default) on <a
          moz-do-not-send="true" class="moz-txt-link-freetext"
          href="resource:10000000-2000-3000-4000-10000000ad01%28Active">resource:10000000-2000-3000-4000-10000000ad01(Active</a>
        Directory: Office 365, Google Apps, Moodle)), thombstone false,
        enforcement mode <font color="#cc0000"><b>NONE</b></font>,
        legalize false: false -> <b><font color="#cc0000">false</font></b><b>
        </b><b><br>
        </b><b> </b><b><br>
        </b><b> </b>The "none" mode is a special mode, in which
        midPoint simply ignores all assignments. And as we can see here,
        it sets legal:=false for this account, and therefore not tries
        to create it.<br>
        <br>
        So I'd suggest setting assignment policy enforcement to either
        "positive" or "relative" and trying again. :-)<br>
        <br>
        Best regards,<br>
        Pavol<br>
        <br>
        <br>
        <br>
        <br>
        On 20. 2. 2015 16:06, Jason Everling wrote:<br>
      </div>
      <blockquote
cite="mid:CAFkZXY4ireqdPBP1JJdByLUygj6S626czmsBnECa_8Y_Z7PkpQ@mail.gmail.com"
        type="cite">
        <div dir="ltr">Ok I must have missed that one, I removed the
          condition and source with 
          <div><br>
          </div>
          <div>
            <div>    <mapping></div>
            <div>    <span class="" style="white-space:pre"> </span><expression></div>
            <div>            <value></div>
            <div><span class="" style="white-space:pre"> </span><targetRef

              oid="30000000-aaaa-bbbb-0000-12345678sr01"
              type="c:RoleType"/></div>
            <div>            </value>    <span class=""
                style="white-space:pre"> </span></div>
            <div>    <span class="" style="white-space:pre"> </span></expression></div>
            <div>        <target></div>
            <div>            <path>assignment</path></div>
            <div>        </target></div>
            <div>    </mapping></div>
          </div>
          <div><br>
          </div>
          <div>I was hoping that it would work but It still does not add
            the account to AD though :( , still a lot of nulls in the
            logs, I attached the new logs again for a new user</div>
          <div><br>
          </div>
          <div>Isabel Trevino, istrevino</div>
        </div>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On Fri, Feb 20, 2015 at 1:25 AM,
            Pavol Mederly <span dir="ltr"><<a moz-do-not-send="true"
                href="mailto:mederly@evolveum.com" target="_blank">mederly@evolveum.com</a>></span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000">
                <div>Hello Jason,<br>
                  <br>
                  after studying the logs I suspect that the problem is
                  being caused by chaining of mappings in the object
                  template "User Template 3". The related issue is <a
                    moz-do-not-send="true"
                    href="https://jira.evolveum.com/browse/MID-2149"
                    target="_blank">https://jira.evolveum.com/browse/MID-2149</a>.
                  (I know that you've eliminated the majority of
                  chainings -> but this one seems to be left there).<br>
                  <br>
                  See the red-colored parts below. <br>
                  <br>
                  <objectTemplate xmlns=<a moz-do-not-send="true"
                    href="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
                    target="_blank">"http://midpoint.evolveum.com/xml/ns/public/common/common-3"</a><br>
                                 
                  oid="10000000-0000-0000-0000-000000000203"<br>
                                  version="0"><br>
                     <name>User Template 3</name><br>
                     ...<br>
                     <mapping><br>
                        <source><br>
                           <c:path xmlns:c=<a moz-do-not-send="true"
href="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
                    target="_blank">"http://midpoint.evolveum.com/xml/ns/public/common/common-3"</a><br>
                                   xmlns:bshp=<a moz-do-not-send="true"
                    href="http://www.bshp.edu/xml/ns/public/bshp"
                    target="_blank">"http://www.bshp.edu/xml/ns/public/bshp"</a>>declare


                  namespace bshp='<a moz-do-not-send="true"
                    href="http://www.bshp.edu/xml/ns/public/bshp"
                    target="_blank">http://www.bshp.edu/xml/ns/public/bshp</a>';
$c:user/c:extension/bshp:eduPersonAffiliation</c:path><br>
                        </source><br>
                        <expression><br>
                           <script><br>
                              <code>'student'</code><br>
                           </script><br>
                        </expression><br>
                        <<font color="#cc0000"><b>target</b></font>><br>
                           <c:path xmlns:c=<a moz-do-not-send="true"
href="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
                    target="_blank">"http://midpoint.evolveum.com/xml/ns/public/common/common-3"</a><br>
                                   xmlns:bshp=<a moz-do-not-send="true"
                    href="http://www.bshp.edu/xml/ns/public/bshp"
                    target="_blank">"http://www.bshp.edu/xml/ns/public/bshp"</a>>declare


                  namespace bshp='<a moz-do-not-send="true"
                    href="http://www.bshp.edu/xml/ns/public/bshp"
                    target="_blank">http://www.bshp.edu/xml/ns/public/bshp</a>';

                  <font color="#cc0000"><b>$c:user/c:extension/bshp:eduPersonAffiliation</b></font></c:path><br>
                        </target><br>
                     </mapping><br>
                  <br>
                  <font color="#cc0000"><b>      -----></b><b><br>
                    </b></font><br>
                     <mapping><br>
                        <<font color="#cc0000"><b>source</b></font>><br>
                           <c:path xmlns:c=<a moz-do-not-send="true"
href="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
                    target="_blank">"http://midpoint.evolveum.com/xml/ns/public/common/common-3"</a><br>
                                   xmlns:bshp=<a moz-do-not-send="true"
                    href="http://www.bshp.edu/xml/ns/public/bshp"
                    target="_blank">"http://www.bshp.edu/xml/ns/public/bshp"</a>>declare


                  namespace bshp='<a moz-do-not-send="true"
                    href="http://www.bshp.edu/xml/ns/public/bshp"
                    target="_blank">http://www.bshp.edu/xml/ns/public/bshp</a>';

                  <b><font color="#cc0000">$c:user/c:extension/bshp:eduPersonAffiliation</font></b></c:path><br>
                        </source><br>
                        <expression><br>
                           <assignmentTargetSearch><br>
                              <targetType xmlns:c=<a
                    moz-do-not-send="true"
                    href="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
                    target="_blank">"http://midpoint.evolveum.com/xml/ns/public/common/common-3"</a>>c:RoleType</targetType><br>
                             
                  <oid>30000000-aaaa-bbbb-0000-12345678sr01</oid><br>
                           </assignmentTargetSearch><br>
                        </expression><br>
                        <target><br>
                           <c:path xmlns:c=<a moz-do-not-send="true"
href="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
                    target="_blank">"http://midpoint.evolveum.com/xml/ns/public/common/common-3"</a>>assignment</c:path><br>
                        </target><br>
                     </mapping><br>
                  </objectTemplate><br>
                  <br>
                  In the log you can see that this result of an empty
                  assignment of the role that should give access to the
                  AD:<br>
                  <br>
                  2015-02-19 11:06:47,040 []
                  [midPointScheduler_Worker-10] TRACE
                  (com.evolveum.midpoint.model.common.mapping.Mapping):
                  Mapping trace:<br>
                  ---[ MAPPING  in
                  objectTemplate:10000000-0000-0000-0000-000000000203(User
                  Template 3)]---------------------------<br>
                  Source: {<a moz-do-not-send="true"
                    href="http://www.bshp.edu/xml/ns/public/bshp"
                    target="_blank">http://www.bshp.edu/xml/ns/public/bshp</a>}eduPersonAffiliation:

                  <font color="#cc0000"><b>old=null, delta=null,
                      new=null</b></font><br>
                  Target: PCD:{.../common/common-3}assignment
                  {.../common/common-3}AssignmentType[0,-1],RAM<br>
                  Expression: assignmentExpression<br>
                  Condition: true -> true<br>
                  Result:  <b><font color="#cc0000">[here should be an
                      assignment but there's nothing there because the
                      input is 'null' (not the 'student' as one could
                      expect) - this is because of chaining]</font></b><br>
                  <br>
                  Actually, in a later iteration (in the secondary phase
                  of the clockwork processing), the assignment is
                  computed - but it is actually too late (just before
                  exiting the processing) - so it is not executed. I
                  mean this one:<br>
                  <br>
                  ---[ MAPPING  in
                  objectTemplate:10000000-0000-0000-0000-000000000203(User
                  Template 3)]---------------------------<br>
                  Source: {<a moz-do-not-send="true"
                    href="http://www.bshp.edu/xml/ns/public/bshp"
                    target="_blank">http://www.bshp.edu/xml/ns/public/bshp</a>}eduPersonAffiliation:

                  <font color="#006600"><b>old=null,
                      delta=PropertyDelta(extension / {<a
                        moz-do-not-send="true"
                        href="http://www.bshp.edu/xml/ns/public/bshp"
                        target="_blank">http://www.bshp.edu/xml/ns/public/bshp</a>}eduPersonAffiliation,


                      ADD), new=PP({<a moz-do-not-send="true"
                        href="http://www.bshp.edu/xml/ns/public/bshp"
                        target="_blank">http://www.bshp.edu/xml/ns/public/bshp</a>}eduPersonAffiliation):[PPV(String:student)]</b></font><br>
                  Target: PCD:{.../common/common-3}assignment
                  {.../common/common-3}AssignmentType[0,-1],RAM<br>
                  Expression: assignmentExpression<br>
                  Condition: true -> true<br>
                  Result: <font color="#006600"><b>added: id=null: 1
                      items </b></font><br>
                  <br>
                  So, my recommendation is to remove the chaining. <br>
                  <br>
                  Hope this helps. :-)<br>
                  Pavol<br>
                  <br>
                  On 19. 2. 2015 15:33, Jason Everling wrote:<br>
                </div>
                <blockquote type="cite">
                  <div dir="ltr">Here is the details,
                    <div><br>
                    </div>
                    <div>1 CSV Resource</div>
                    <div>1 AD Resource</div>
                    <div>1 Role with inducement for AD Account</div>
                    <div>1 Object Template for CSV which generates the
                      Username and assigns the role with the AD
                      Incudement.</div>
                    <div><br>
                    </div>
                    <div>I will send the exports via private email</div>
                    <div><br>
                    </div>
                    <div>JASON</div>
                  </div>
                  <div class="gmail_extra"><br>
                    <div class="gmail_quote">On Thu, Feb 19, 2015 at
                      6:01 AM, Pavol Mederly <span dir="ltr"><<a
                          moz-do-not-send="true"
                          href="mailto:mederly@evolveum.com"
                          target="_blank">mederly@evolveum.com</a>></span>
                      wrote:<br>
                      <blockquote class="gmail_quote" style="margin:0 0
                        0 .8ex;border-left:1px #ccc
                        solid;padding-left:1ex">
                        <div bgcolor="#FFFFFF" text="#000000">
                          <div>Hello Jason,<br>
                            <br>
                            I would like to test this one, but I'm not
                            sure about concrete configuration in which
                            this occurs.<br>
                            <br>
                            Could you, please, describe the situation in
                            more details, including your specific
                            configurations (simplified if necessary), to
                            allow us to reproduce this bug?<br>
                            <br>
                            Thank you,<br>
                            Pavol<br>
                            <br>
                            On 17. 2. 2015 16:58, Jason Everling wrote:<br>
                          </div>
                          <blockquote type="cite">
                            <div dir="ltr">
                              <div>Reviving an old bug, this is
                                happening again, using 3.1 Release, all
                                my other issues are gone.<br>
                              </div>
                              <div><br>
                              </div>
                              <div>I can manually click the user in
                                midPoint and run reconcile and it works
                                or if I take the inducement out of the
                                Role and put it as a direct assignment
                                in the object template the account gets
                                created properly in AD. Again, this only
                                happens when generating the username</div>
                              <div><br>
                              </div>
                              <div>Is there a way to maybe run a
                                reconcile after all the processes
                                complete, lets say after the user is
                                created and the object templates are
                                processed? If so then this would more
                                than likely work, I just think it is
                                processing the inducement before the
                                user account in midpoint is full created
                                will all attributes.</div>
                              <div><br>
                              </div>
                              <div>JASON</div>
                            </div>
                            <div class="gmail_extra"><br>
                              <div class="gmail_quote">On Fri, Dec 5,
                                2014 at 9:13 AM, Jason Everling <span
                                  dir="ltr"><<a
                                    moz-do-not-send="true"
                                    href="mailto:jeverling@bshp.edu"
                                    target="_blank">jeverling@bshp.edu</a>></span>
                                wrote:<br>
                                <blockquote class="gmail_quote"
                                  style="margin:0 0 0
                                  .8ex;border-left:1px #ccc
                                  solid;padding-left:1ex"><span>
                                    <div dir="ltr">Ok thanks for the
                                      update!
                                      <div><br>
                                      </div>
                                      <div>JASON</div>
                                    </div>
                                  </span>
                                  <div>
                                    <div>
                                      <div class="gmail_extra"><br>
                                        <div class="gmail_quote">On Fri,
                                          Dec 5, 2014 at 2:10 AM, Ivan
                                          Noris <span dir="ltr"><<a
                                              moz-do-not-send="true"
                                              href="mailto:ivan.noris@evolveum.com"
                                              target="_blank">ivan.noris@evolveum.com</a>></span>
                                          wrote:<br>
                                          <blockquote
                                            class="gmail_quote"
                                            style="margin:0 0 0
                                            .8ex;border-left:1px #ccc
                                            solid;padding-left:1ex">
                                            <div bgcolor="#FFFFFF"
                                              text="#000000"> Jason,<br>
                                              <br>
                                              I've just tried the
                                              original iterator (User in
                                              midPoint) problem and it
                                              seems to be fixed in
                                              git-v3.0.1devel-703-g8c40b63.<br>
                                              <br>
                                              I've tested with LiveSync
                                              CSV sample from you, used
                                              user template either
                                              referenced from the
                                              unmatched action or global
                                              template. Username is
                                              generated in midPoint:<br>
                                              <br>
                                              (username - fullname)<br>
                                              cypecienka - Cyrus
                                              Pecienka<br>
                                              cypecienka2 - Cyrusov
                                              Pecienka<br>
                                              cypecienka3 - Cyril
                                              Pecienka <br>
                                              cypecienka4 - Cyrhoza
                                              Pecienka<br>
                                              <br>
                                              Please retest it once
                                              after you upgrade to 3.1
                                              or the master snapshot.
                                              Thank you.<br>
                                              <br>
                                              Regards,<br>
                                              Ivan
                                              <div>
                                                <div><br>
                                                  <br>
                                                  <div>On 11/07/2014
                                                    04:23 PM, Jason
                                                    Everling wrote:<br>
                                                  </div>
                                                  <blockquote
                                                    type="cite">
                                                    <div dir="ltr">Thanks,

                                                      it is working,
                                                      like you said,
                                                      will be easier to
                                                      manage in the long
                                                      run! Keep me
                                                      posted on the bug
                                                      fix,
                                                      <div><br>
                                                      </div>
                                                      <div>For now, I am
                                                        just cleaning up
                                                        objects and
                                                        playing with
                                                        other functions,</div>
                                                      <div><br>
                                                      </div>
                                                      <div>JASON</div>
                                                    </div>
                                                    <div
                                                      class="gmail_extra"><br>
                                                      <div
                                                        class="gmail_quote">On


                                                        Fri, Nov 7, 2014
                                                        at 2:56 AM, Ivan
                                                        Noris <span
                                                          dir="ltr"><<a
moz-do-not-send="true" href="mailto:Ivan.Noris@evolveum.com"
                                                          target="_blank">Ivan.Noris@evolveum.com</a>></span>
                                                        wrote:<br>
                                                        <blockquote
                                                          class="gmail_quote"
                                                          style="margin:0

                                                          0 0
                                                          .8ex;border-left:1px
                                                          #ccc
                                                          solid;padding-left:1ex">
                                                          <div>
                                                          <div
                                                          style="font-family:times
                                                          new roman,new
york,times,serif;font-size:12pt;color:#000000">
                                                          <div>Hi Jason,<br>
                                                          </div>
                                                          <div><br>
                                                          </div>
                                                          <div>yes you
                                                          can use switch
                                                          in one mapping
                                                          instead of
                                                          having many
                                                          mappings - I'm
                                                          using it very
                                                          often. It will
                                                          be more simple
                                                          to maintain.<br>
                                                          </div>
                                                          <div><br>
                                                          </div>
                                                          <div>Just be
                                                          sure to pass
                                                          all required
                                                          attributes as
                                                          source. In
                                                          your case,
                                                          organization
                                                          does not have
                                                          to be source
                                                          attribute,
                                                          because you
                                                          are not
                                                          referencing it
                                                          in the mapping
                                                          expression<br>
                                                           nor
                                                          conditions.<br>
                                                          </div>
                                                          <div><br>
                                                          </div>
                                                          <div>You can
                                                          further
                                                          simplify the
                                                          switch
                                                          statement as:<br>
                                                          </div>
                                                          <div><br>
                                                          </div>
                                                          <div>switch (<strong>costCenter</strong>)
                                                          {</div>
                                                          <div>. . .<br>
                                                          </div>
                                                          <div><br>
                                                          </div>
                                                          <div>- no
                                                          basic.stringify()
                                                          is needed,
                                                          because the
                                                          attribute type
                                                          is String and
                                                          not
                                                          Polystring.
                                                          Having it
                                                          there would
                                                          not do any
                                                          harm though.<br>
                                                          </div>
                                                          <div>- you can
                                                          address the
                                                          attribute as
                                                          "costCenter",
                                                          because it's
                                                          implicitly
                                                          stored in that
                                                          "variable" as
                                                          it is declared
                                                          as source
                                                          attribute<br>
                                                          </div>
                                                          <div><br>
                                                          </div>
                                                          <div>Hope this
                                                          helps you with
                                                          designing your
                                                          mappings.<br>
                                                          </div>
                                                          <div><br>
                                                          </div>
                                                          <div>Regards,<br>
                                                          </div>
                                                          <div>Ivan<br>
                                                          </div>
                                                          <div><br>
                                                          </div>
                                                          <hr>
                                                          <blockquote
                                                          style="border-left:2px
                                                          solid
#1010ff;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt"><span><b>From:



                                                          </b>"Jason
                                                          Everling" <<a
moz-do-not-send="true" href="mailto:jeverling@bshp.edu" target="_blank">jeverling@bshp.edu</a>><br>
                                                          <b>To: </b>"midPoint



                                                          General
                                                          Discussion"
                                                          <<a
                                                          moz-do-not-send="true"
href="mailto:midpoint@lists.evolveum.com" target="_blank">midpoint@lists.evolveum.com</a>><br>
                                                          </span><b>Sent:

                                                          </b>Thursday,
                                                          November 6,
                                                          2014 6:00:04
                                                          PM
                                                          <div>
                                                          <div><br>
                                                          <b>Subject: </b>Re:



                                                          [midPoint]
                                                          Account
                                                          Creation, Not
                                                          Being created
                                                          in AD<br>
                                                          <div><br>
                                                          </div>
                                                          <div dir="ltr">Oh


                                                          Ok thanks,
                                                          <div><br>
                                                          </div>
                                                          <div>Can you
                                                          look at this
                                                          and make sure
                                                          it is correct,
                                                          if you look at
                                                          the CSV User
                                                          template I had
                                                          sent I had a
                                                          condition for
                                                          each program,
                                                          I did some
                                                          more digging
                                                          on github and
                                                          found a sample
                                                          similar to
                                                          this,</div>
                                                          <div><br>
                                                          </div>
                                                          <div>Would the
                                                          below work
                                                          instead of all
                                                          the conditions
                                                          for mapping, </div>
                                                          <div><br>
                                                          </div>
                                                          <div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span><mapping></div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span><source></div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span><path>$user/costCenter</path></div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span></source></div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span><source></div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span><path>$user/organization</path></div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span></source></div>
                                                          <div>    <span
style="white-space:pre-wrap"> </span>    <expression></div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>      
 <script></div>
                                                          <div>         
                                                                       
                                                               
                                                          <code></div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>tmpOU =
                                                          'OU=SHP
                                                          Students,DC=TEST,DC=LOCAL'</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>switch
                                                          (basic.stringify(user.getCostCenter()))



                                                          {</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>case
                                                          'ASGA':</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>tmpOU =
                                                          'OU=AAD,' +
                                                          tmpOU</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>break</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>case
                                                          'AAD':</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>tmpOU =
                                                          'OU=AAD,' +
                                                          tmpOU</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>break</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>case
                                                          'ASHIT':</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>tmpOU =
                                                          'OU=AAS HIT,'
                                                          + tmpOU</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>break</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>case
                                                          'BSHM':</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>tmpOU =
                                                          'OU=BSHM,' +
                                                          tmpOU</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>break</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>case
                                                          'BSN':</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>tmpOU =
                                                          'OU=BSN,' +
                                                          tmpOU</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>break</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>case
                                                          'ASIM':</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>tmpOU =
                                                          'OU=DMIT,' +
                                                          tmpOU</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>break</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>case
                                                          'CT':</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>tmpOU =
                                                          'OU=DMIT,' +
                                                          tmpOU</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>break</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>case
                                                          'MRI':</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>tmpOU =
                                                          'OU=DMIT,' +
                                                          tmpOU</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>break</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>case
                                                          'RT':</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>tmpOU =
                                                          'OU=DMIT,' +
                                                          tmpOU</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>break</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>case
                                                          'VT':</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>tmpOU =
                                                          'OU=DMIT,' +
                                                          tmpOU</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>break</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>case
                                                          'SO':</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>tmpOU =
                                                          'OU=DMIT,' +
                                                          tmpOU</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>break</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>case
                                                          'PN':</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>tmpOU =
                                                          'OU=DPN,' +
                                                          tmpOU</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>break</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>case
                                                          'ND':</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>tmpOU =
                                                          'OU=DPN,' +
                                                          tmpOU</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>break</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>case
                                                          'ASGT':</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>tmpOU =
                                                          'OU=DST,' +
                                                          tmpOU</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>break</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>case
                                                          'ST':</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>tmpOU =
                                                          'OU=DST,' +
                                                          tmpOU</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>break</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>case
                                                          'VN':</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>tmpOU =
                                                          'OU=DVN,' +
                                                          tmpOU</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>break</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>case
                                                          'GEN':</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>tmpOU =
                                                          'OU=GENED,' +
                                                          tmpOU</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>break</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>case
                                                          'LVRN':</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>tmpOU =
                                                          'OU=LVRN,' +
                                                          tmpOU</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>break</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>case
                                                          'PO':</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>tmpOU =
                                                          'OU=PNP,' +
                                                          tmpOU</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>break</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>default:</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>tmpOU =
                                                          'OU=SHP
                                                          Students,DC=TEST,DC=LOCAL'</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>}</div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span>return
                                                          tmpOU</div>
                                                          <div>         
                                                                   
                                                          </code></div>
                                                          <div>         
                                                               
                                                          </script></div>
                                                          <div>    <span
style="white-space:pre-wrap"> </span>    </expression></div>
                                                          <div>    <span
style="white-space:pre-wrap"> </span><target></div>
                                                          <div>    <span
style="white-space:pre-wrap"> </span><path>organization</path></div>
                                                          <div>    <span
style="white-space:pre-wrap"> </span></target></div>
                                                          <div><span
                                                          style="white-space:pre-wrap">
                                                          </span></mapping></div>
                                                          </div>
                                                          </div>
                                                          <div
                                                          class="gmail_extra"><br>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </blockquote>
                                                          </div>
                                                          </div>
                                                        </blockquote>
                                                      </div>
                                                    </div>
                                                  </blockquote>
                                                </div>
                                              </div>
                                            </div>
                                          </blockquote>
                                        </div>
                                      </div>
                                    </div>
                                  </div>
                                </blockquote>
                              </div>
                            </div>
                          </blockquote>
                        </div>
                      </blockquote>
                    </div>
                  </div>
                </blockquote>
              </div>
            </blockquote>
          </div>
        </div>
      </blockquote>
    </div>
    <br>
  </body>
</html>