Hi,<br><br>I have just followed the Stephen's help and I was able to add the mailAlternateAddress to the ipa default user schema.<br><br>I don't know if this is the better way to do this btw it works great.<br><br>
Thanks again guys.<br><br><div class="gmail_quote">2012/6/21 Stephen Ingram <span dir="ltr"><<a href="mailto:sbingram@gmail.com" target="_blank">sbingram@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On Thu, Jun 21, 2012 at 2:06 PM, James James <<a href="mailto:jreg2k@gmail.com">jreg2k@gmail.com</a>> wrote:<br>
> Hi everybody,<br>
><br>
> Is it possible to have a procedure to add new attributes like<br>
> mailAlternateAddress in the default user schema ?<br>
<br>
<br>
</div></div>That particular attribute is included in the schema<br>
(objectclass=mailRecipient) so it is easy to add using the ipa<br>
user-mod --addattr command. I then followed Adam Young's instructions<br>
to change the interface such that we could view/edit the new attribute<br>
in the UI:<br>
<br>
1. Edit the /usr/lib/python2.7/site-packages/ipalib/plugins/user.py to<br>
include the new field<br>
2. Add an entry to /usr/share/ipa/ui/user.js for the new value<br>
3. Don't forget to restart httpd and refresh your browser cache to<br>
pick up the new fields<br>
<br>
We needed that instead of using the multi-valued mail attribute<br>
because there are circumstances where we need to differentiate between<br>
the "master" email address and aliases. It's easy to add though and<br>
works great. I certainly wouldn't want to be in the position of adding<br>
lots of attributes not already included in IPA, but a one or two-off<br>
seems pretty reasonable to manage.<br>
<br>
I don't know if it's still in the I'm sure *very* future plans for<br>
IPA, but I remember seeing some application (MTA, mail store) support<br>
mentioned at one time. These sorts of attributes might be nice to have<br>
if and when that happens.<br>
<br>
Steve<br>
</blockquote></div><br>