<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <div class="moz-cite-prefix">On 08/21/2013 04:21 PM, Mitja Mihelič
      wrote:<br>
    </div>
    <blockquote cite="mid:5214CCF5.8050405@arnes.si" type="cite">After a
      bit more time with the Console I changed the order of the
      attributes within the textbox(?) that displays the mail attribute
      values.
      <br>
      Please see the attached screenshots.
      <br>
      Ldapsearch output also confirms the new order. The change seems
      persistent, at least for now.
      <br>
      I do not know what happened in the background.
      <br>
      <br>
      Do you think this could also be done from the command line?
      <br>
    </blockquote>
    you could do this with ldapmodify by doing <br>
    replace: mail<br>
    mail: mail1<br>
    mail: mail2<br>
    mail: mail3.<br>
    <br>
    But be aware that there is no guarantee that this order does not
    change. Although LDAP defines the values of an attribuet as set,
    which means NO order, directory server tries to preserve the order
    the attribute values have been added. But there may still be some
    cases eg in replication where an entry is modified on different
    servers and update resolution determines the valid set of values the
    order could be lost.<br>
    <br>
    If you really want to have only one primary mail address, you should
    only have one mail value and put the others into
    mailalternateaddress ( if your clients can handle that)<br>
    <br>
    Ludwig<br>
    <blockquote cite="mid:5214CCF5.8050405@arnes.si" type="cite">
      <br>
      Regards,
      <br>
      Mitja
      <br>
      <br>
      --
      <br>
      Mitja Mihelič
      <br>
      ARNES, Tehnološki park 18, p.p. 7, SI-1001 Ljubljana, Slovenia
      <br>
      tel: +386 1 479 8877, fax: +386 1 479 88 78
      <br>
      <br>
      On 08/19/2013 05:22 PM, Rich Megginson wrote:
      <br>
      <blockquote type="cite">On 08/19/2013 09:12 AM, Mitja Mihelič
        wrote:
        <br>
        <blockquote type="cite">Hi!
          <br>
          <br>
          Out DIT holds user entries that have multiple "mail"
          attributes (main email, aliases).
          <br>
          Here is an example entry:
          <br>
          dn: <a class="moz-txt-link-abbreviated" href="mailto:eduPersonPrincipalName=user@example.com,dc=example,dc=com">eduPersonPrincipalName=user@example.com,dc=example,dc=com</a>
          <br>
          mail: <a class="moz-txt-link-abbreviated" href="mailto:nickname@example.com">nickname@example.com</a>
          <br>
          mail: <a class="moz-txt-link-abbreviated" href="mailto:user@example.com">user@example.com</a>
          <br>
          mail: <a class="moz-txt-link-abbreviated" href="mailto:user.name@example.com">user.name@example.com</a>
          <br>
          <br>
          Our application (e.g. WordPress) authenticates against the
          389DS and also pull some additional attributes, needed by the
          application. In this case the email address.
          <br>
          The application picks up the first mail attribute received and
          uses it as the user's email. In this case would be
          <a class="moz-txt-link-rfc2396E" href="mailto:nickname@example.com">"nickname@example.com"</a>, which is unwanted. The desired outcome
          would be the <a class="moz-txt-link-rfc2396E" href="mailto:user.name@example.com">"user.name@example.com"</a> displayed as first.
          <br>
          By what algorithm/logic do the attributes get sorted? Time
          added perhaps?
          <br>
        </blockquote>
        Undefined.
        <br>
        <blockquote type="cite">Is there any way of influencing this
          sorting?
          <br>
        </blockquote>
        No.
        <br>
        <blockquote type="cite">
          <br>
          <br>
          We were also thinking of putting the "main" email into another
          attribute. Which attribute would be appropriate for something
          like this?
          <br>
        </blockquote>
        There is an attribute 'mailAlternateAddress' - not sure what it
        is used for
        <br>
        <blockquote type="cite">
          <br>
          Regards,
          <br>
          Mitja
          <br>
          <br>
        </blockquote>
      </blockquote>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">--
389 users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:389-users@lists.fedoraproject.org">389-users@lists.fedoraproject.org</a>
<a class="moz-txt-link-freetext" href="https://admin.fedoraproject.org/mailman/listinfo/389-users">https://admin.fedoraproject.org/mailman/listinfo/389-users</a></pre>
    </blockquote>
    <br>
  </body>
</html>