[389-users] Attribute value ordering

Rich Megginson rmeggins at redhat.com
Mon Aug 19 15:22:22 UTC 2013


On 08/19/2013 09:12 AM, Mitja Mihelič wrote:
> Hi!
>
> Out DIT holds user entries that have multiple "mail" attributes (main 
> email, aliases).
> Here is an example entry:
> dn: eduPersonPrincipalName=user at example.com,dc=example,dc=com
> mail: nickname at example.com
> mail: user at example.com
> mail: user.name at example.com
>
> 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.
> The application picks up the first mail attribute received and uses it 
> as the user's email. In this case would be "nickname at example.com", 
> which is unwanted. The desired outcome would be the 
> "user.name at example.com" displayed as first.
> By what algorithm/logic do the attributes get sorted? Time added perhaps?
Undefined.
> Is there any way of influencing this sorting?
No.
>
>
> We were also thinking of putting the "main" email into another 
> attribute. Which attribute would be appropriate for something like this?
There is an attribute 'mailAlternateAddress' - not sure what it is used for
>
> Regards,
> Mitja
>




More information about the 389-users mailing list