<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>It is fixed. The location was fine. We had to do some digging there.</div><div>The group module works different than the user and is giving </div><div><span style="font-family: "courier new", courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">var section = get_item(facet.sections, 'name', 'details');</span><br></div><div>instead of</div><div><span style="font-family: "courier new", courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;"> var section = get_item(facet.sections, 'name', 'identity');</span><br></div><div>as the user would do.</div><div><br data-mce-bogus="1"></div><div>Yup figured that index generation is auto.</div><div><br data-mce-bogus="1"></div><div>So all check, all happy in the end.</div><div>Thx.</div><div><br></div><div data-marker="__SIG_PRE__"><div><small style="font-size: 10pt; font-family: 'Segoe UI', 'Lucida Sans', sans-serif; background-color: #fdfdfd;" data-mce-style="font-size: 10pt; font-family: 'Segoe UI', 'Lucida Sans', sans-serif; background-color: #fdfdfd;"><span color="#077179" face="Verdana" style="font-size: 10pt; color: #077179; font-family: Verdana;" data-mce-style="font-size: 10pt; color: #077179; font-family: Verdana;"><small style="font-size: 10pt;" data-mce-style="font-size: 10pt;"><b style="font-size: 10pt;" data-mce-style="font-size: 10pt;">Sándor Juhász</b></small></span></small><br style="font-size: 13px; font-family: 'Segoe UI', 'Lucida Sans', sans-serif; background-color: #fdfdfd;" data-mce-style="font-size: 13px; font-family: 'Segoe UI', 'Lucida Sans', sans-serif; background-color: #fdfdfd;"></div><div style="font-size: 13px; font-family: 'Segoe UI', 'Lucida Sans', sans-serif; background-color: #fdfdfd;" data-mce-style="font-size: 13px; font-family: 'Segoe UI', 'Lucida Sans', sans-serif; background-color: #fdfdfd;"><small style="font-size: 10pt;" data-mce-style="font-size: 10pt;"><span face="Verdana" style="font-size: 10pt; font-family: Verdana;" data-mce-style="font-size: 10pt; font-family: Verdana;"><span color="#666666" style="font-size: 10pt; color: #666666;" data-mce-style="font-size: 10pt; color: #666666;"><small style="font-size: 10pt;" data-mce-style="font-size: 10pt;">System Administrator</small></span><br style="font-size: 10pt;" data-mce-style="font-size: 10pt;"></span><span color="#fca311" style="font-size: 10pt; color: #fca311;" data-mce-style="font-size: 10pt; color: #fca311;"><small style="font-size: 10pt;" data-mce-style="font-size: 10pt;"><small style="font-size: 10pt;" data-mce-style="font-size: 10pt;"><span face="Verdana" style="font-size: 10pt; font-family: Verdana;" data-mce-style="font-size: 10pt; font-family: Verdana;"><b style="font-size: 10pt;" data-mce-style="font-size: 10pt;"><big style="font-size: 10pt;" data-mce-style="font-size: 10pt;">ChemAxon</big></b></span></small></small></span><span face="Verdana" style="font-size: 10pt; font-family: Verdana;" data-mce-style="font-size: 10pt; font-family: Verdana;"><span color="#fca311" style="font-size: 10pt; color: #fca311;" data-mce-style="font-size: 10pt; color: #fca311;"><small style="font-size: 10pt;" data-mce-style="font-size: 10pt;"> <b style="font-size: 10pt;" data-mce-style="font-size: 10pt;">Ltd</b>.</small></span><br style="font-size: 10pt;" data-mce-style="font-size: 10pt;"><small style="font-size: 10pt;" data-mce-style="font-size: 10pt;"><span color="#666666" style="font-size: 10pt; color: #666666;" data-mce-style="font-size: 10pt; color: #666666;"></span></small></span></small></div><div style="font-size: 13px; font-family: 'Segoe UI', 'Lucida Sans', sans-serif; background-color: #fdfdfd;" data-mce-style="font-size: 13px; font-family: 'Segoe UI', 'Lucida Sans', sans-serif; background-color: #fdfdfd;"><span style="color: #666666; font-size: 10pt; font-family: Verdana;" data-mce-style="color: #666666; font-size: 10pt; font-family: Verdana;">Building Hx, GraphiSoft Park, Záhony utca 7, Budapest, Hungary, H-1031</span></div><div style="font-size: 13px; font-family: 'Segoe UI', 'Lucida Sans', sans-serif; background-color: #fdfdfd;" data-mce-style="font-size: 13px; font-family: 'Segoe UI', 'Lucida Sans', sans-serif; background-color: #fdfdfd;"><span style="color: #666666; font-size: 10pt; font-family: Verdana;" data-mce-style="color: #666666; font-size: 10pt; font-family: Verdana;"><span style="color: #666666; font-family: Verdana; font-size: 13px; background-color: #fdfdfd;" data-mce-style="color: #666666; font-family: Verdana; font-size: 13px; background-color: #fdfdfd;">Cell: +36704258964</span></span></div></div><br><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><b>From: </b>"Petr Vobornik" <pvoborni@redhat.com><br><b>To: </b>"Sandor Juhasz" <sjuhasz@chemaxon.com>, "Ludwig Krispenz" <lkrispen@redhat.com><br><b>Cc: </b>freeipa-users@redhat.com<br><b>Sent: </b>Wednesday, January 11, 2017 3:04:09 PM<br><b>Subject: </b>Re: [Freeipa-users] modify schema - add group email and display attribute<br></div><br><div data-marker="__QUOTED_TEXT__">On 01/11/2017 01:58 PM, Sandor Juhasz wrote:<br>> Ok,<br>> <br>> OID - check<br>> ldapmodify - check<br>> python scripts - check<br>> These works on both ipa 3.x and ipa 4.x.<br>> So the basic functionality is there for the new object class.<br>> <br>> js - i am stuck with, i have created the js files for the plugin, see below.<br>> <br>> But i don't know how to generate the the index. Also i might be completely wrong.<br>> <br>> On ipa 3.x the js files are there, most probably the groups.js would exist as i <br>> expect it.<br>> But on the other hand on the ipa 4.x there is nothing but freeipa/core.js is there.<br><br>You don't need to generate plugin index, it is generated automatically.<br><br>Just:<br>  mkdir /usr/share/ipa/ui/js/plugins/myplugin<br>  cp myplugin.js /usr/share/ipa/ui/js/plugins/myplugin<br><br>It should be automatically picked up by Web UI.<br><br>It will work only in RHEL 7/CentOS 7(FreeIPA 3.3+). Not RHEL 6(sort of<br>3.0/3.1/3.2)<br><br>On RHEL 6, there is /usr/share/ipa/ui/ext/extension.js which can contain<br>custom content to extend UI, but writing a plugin for it is much more<br>complicated so I'd rather avoid it.<br><br>> <br>> Here is the plugin, i am trying to use:<br>> define([<br>>    'freeipa/phases',<br>>    'freeipa/group'],<br>>    function(phases, group_mod) {<br>> // helper function<br>>      function get_item(array, attr, value) {<br>>        for (var i=0,l=array.length; i<l; i++) {<br>>          if (array[i][attr] === value) return array[i];<br>>        }<br>>        return null;<br>>      }<br>>      var groupmail_plugin = {};<br>> // adds 'mail' field into group details facet<br>>      groupmail_plugin.add_group_mail_pre_op = function() {<br>>        var facet = get_item(group_mod.entity_spec.facets, '$type', 'details');<br>>        var section = get_item(facet.sections, 'name', 'identity');<br>>        section.fields.push({<br>>          name: 'mail',<br>>          label: 'Mail'<br>>        });<br>>        return true;<br>>      };<br>>      phases.on('customization', groupmail_plugin.add_group_mail_pre_op);<br>>      return groupmail_plugin;<br>> });<br>> <br>> <br>> *Sándor Juhász*<br>> System Administrator<br>> *ChemAxon**Ltd*.<br>> Building Hx, GraphiSoft Park, Záhony utca 7, Budapest, Hungary, H-1031<br>> Cell: +36704258964<br>> <br>> --------------------------------------------------------------------------------<br>> *From: *"Brian Candler" <b.candler@pobox.com><br>> *To: *"Sandor Juhasz" <sjuhasz@chemaxon.com><br>> *Cc: *freeipa-users@redhat.com<br>> *Sent: *Monday, January 2, 2017 6:41:02 PM<br>> *Subject: *Re: [Freeipa-users] modify schema - add group email and display attribute<br>> <br>> On 02/01/2017 11:53, Sandor Juhasz wrote:<br>>  > I would be really happy if anybody could assign an OID for the new<br>>  > objectcalss<br>> <br>> You can get your own enterprise OID for free from here:<br>> <br>> http://pen.iana.org/pen/PenApplication.page<br>> <br>> Note that you only get one, so it's up to you to subdivide the space.<br>> For example: if you get 1.3.6.1.4.1.99999, then you might decide to use:<br>> <br>> 1.3.6.1.4.1.99999.1 = LDAP object classes<br>> <br>> 1.3.6.1.4.1.99999.1.1 = myMailObjectClass<br>> <br>> 1.3.6.1.4.1.99999.1.2 = someOtherObjectClass<br>> <br>> 1.3.6.1.4.1.99999.2 = LDAP attributes<br>> <br>> 1.3.6.1.4.1.99999.2.1 = mySpecialAttribute<br>> <br>> then later you can assign under 1.3.6.1.4.1.99999.3 for something else<br>> that needs OIDs (e.g. SNMP MIBs) and so on.<br>> <br>> <br>> <br><br><br>-- <br>Petr Vobornik<br></div></div></body></html>