<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">I’ve read Extending FreeIPA back to front (several times!) but I could spend more time alone with an iPad and a copy of the Guide. Thanks for the link.</div> <br> <div id="bloop_sign_1462979904406429952" class="bloop_sign"></div> <br><p class="airmail_on">On May 11, 2016 at 3:28:55 AM, Martin Kosek (<a href="mailto:mkosek@redhat.com">mkosek@redhat.com</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>On 05/06/2016 07:12 PM, Jeffery Harrell wrote:
<br>> Hi. I’m very new to IPA; I only picked it up a couple weeks ago. So this may be  
<br>> a remedial question.
<br>>  
<br>> I’d like to expose, both via the CLI and the GUI, certain LDAP attributes which  
<br>> have hyphens in their names — e.g., "apple-user-homeurl.” The Param class  
<br>> rejects these attributes because of the hyphens; the name of the Param doesn’t  
<br>> conform to the regular expression so an exception gets thrown. This code does  
<br>> not work:
<br>>  
<br>> |user.user.takes_params = user.user.takes_params + ( Str( 'apple-user-homeurl?',  
<br>> cli_name='appleuserhomeurl', label=_('Apple User Home URL'), doc=_('Apple user  
<br>> home URL.'), ), ) |
<br>>  
<br>> Is there a sensible way of getting around that, or will I have to subclass Param  
<br>> and write a whole bunch of new code to get this to work?
<br>>  
<br>> Thanks very much.
<br>>  
<br>> Jeffery
<br>
<br>Did you check the documentation we have so far?
<br>
<br>http://www.freeipa.org/images/5/5b/FreeIPA33-extending-freeipa.pdf
<br>http://abbra.fedorapeople.org/guide.html
<br>
<br>CCing Jan for reference.
<br>
<br>Martin
<br></div></div></span></blockquote></body></html>