John Duino wrote:
> You shot right past me there, Rob. Forgive my ignorance but I'm not sure what 
> you are referring to when saying "this configured", or what you are calling 
> metadata.
> 
> What I included was the user plugin. The UI loads it without error. But it 
> only supplies a single field (which is correct) that includes the label 
> ("E-mail Alias") and the textbox with ONE of the mailAlternateAddress 
> attributes for that user account.
> 
> An ldapsearch returns:
> 
> dn: uid=test4,cn=users,cn=accounts,dc=domain,dc=com
> mailAlternateAddress: x...@domain.com
> mailAlternateAddress: y...@domain.com
> 
> For the CLI, useing "ipa user-mod --addattr=mailalternateaddress=blahblah 
> <user>" (or --setattr or --delattr) work as expected, adding an additional 
> entry of mailAlternateAddress for <user> (or removing, etc).
> 
> mailAlternateAddress is defined via the mailRecipient objectclass, which is 
> included in FreeIPA v4.
> 
> 
> My expected (eventually...not necessarily with how I've written the 
> javascript) is that if there are no defined mailAlternateAddress attributes 
> for a user that the Label will show with an 'Add' button alongside it (as 
> E-mail address, Telephone Number, and Fax Number currently do). If one (or 
> more) exists, then the field(s) show up with the appropriate value and a 
> 'Delete' button at the end along with the 'Add' button for adding more fields.

I don't know a lot about the UI javascript but there are two pieces to
code: the plugin to define the attribute and the UI to consume it.

It sounds like you've done both. What I'm interested in is how you
configured the plugin. Can you share the code?

The UI downloads all the available commands and options as metadata and
uses that to help drive some of the interactions.

rob

> 
> Thanks!
> ----- Original Message -----
> From: "Rob Crittenden" <rcrit...@redhat.com>
> 
> Do you have this configured in the user plugin? Perhaps some other piece
> of the UI is confused because of either a missing or misconfigured value
> for the attribute in the metadata.
> 
> If you do, how is the param configured?
> 
> rob
> 

-- 
Manage your subscription for the Freeipa-users mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-users
Go to http://freeipa.org for more info on the project

Reply via email to