Hi, I'm upgrading a mail system (postfix, dovecot, amavis etc) with openldap backend and really would like to switch to freeipa (use it as mail accounts backend DB among other tasks).
Ldap schema-wise I only had to add a new amavisAccount class as it looks like I can make use of already existing mailRecipient class (add these classes to a user and a group set of classes). I can display/modify amavisAccount/mailRecipient attributes for a user with ipa user-show --all, ipa user-mod and with ldap browser/editor (jxplorer). But I can't get these classes attributes displayed/modified in Web UI. I'm on Almalinux 9 and installed appstream packages from alma (4.11.0-15.el9_4.alma.1). I do not know python,jquery,js/css and really banging against the wall here. I know about https://abbra.fedorapeople.org/freeipa-extensibility.html https://github.com/abbra/freeipa-userstatus-plugin/blob/master/plugin/Feature.mediawiki but not really understand much there obviously. Here is a forum question very close to what I'm trying to achieve: https://lists.fedorahosted.org/archives/list/[email protected]/thread/4QDJ3VJRR7KVBGUIEKDKW6CEMAMLSQJC/ Based on that I created mailalt.js: define([ 'freeipa/phases', 'freeipa/user'], function(phases, user_mod) { function get_item(array, attr, value) { for (var i=0,l=array.length; i<l; i++) { if (array[i][attr] === value) return array[i]; } return null; } var mail_alt_plugin = {}; mail_alt_plugin.add_mail_alt_pre_op = function() { var facet = get_item(user_mod.entity_spec.facets, '$type', 'details'); var section = get_item(facet.sections, 'name', 'contact'); section.fields.push({ $type: 'multivalued', name: 'mailAlternateAddress', flags: ['w_if_no_aci'], label: 'Alternative Mail' ], }); return true; }; phases.on('customization', mail_alt_plugin.add_mail_alt_pre_op); return mail_alt_plugin; }); then put it in /usr/share/ipa/ui/js/plugins/mailalt/ and executed ipa-server-upgrade But still no mailAlternateAddress field shown. Any advise here? Thank you -- _______________________________________________ FreeIPA-users mailing list -- [email protected] To unsubscribe send an email to [email protected] Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedorahosted.org/archives/list/[email protected] Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
