[Freeipa-users] Account Expiration

Petr Vobornik pvoborni at redhat.com
Thu Feb 7 14:16:25 UTC 2013


On 02/07/2013 08:45 AM, Martin Kosek wrote:
> On 02/07/2013 08:31 AM, James James wrote:
>> Thanks Rob. I have one more question. Is it possible to add a field in the ui,
>> and get the field's value in a custom add user hook script  ?
>>
>> James

Theoretically it's possible but it requires quite good knowledge of Web 
UI code. It's easier to modify user page source codes. For simple edit 
(just textbox, no calendar widget) it may be just one line of code (in 
WebUI, server plugin will require more work).

>
> I know that Petr Vobornik is already working in better extensibility of the UI,
> but that would be available in future releases. Petr, do you have any advice
> for James for current release?
>
>>
>>
>> 2013/2/7 Rob Crittenden <rcritten at redhat.com <mailto:rcritten at redhat.com>>
>>
>>      James James wrote:
>>
>>          Can somebody gives me some help to set krbPrincipalExpiration from the
>>          freeipa ui ?
>>
>>
>>      You can't set this in the web UI.
>
> Note: You will be able to set it in the CLI/UI when ticket
> https://fedorahosted.org/freeipa/ticket/3306
> is fixed.
>
>>
>>      You can do it from the command line using ldapmodify with:
>>
>>      $ ldapmodify -x -D 'cn=Directory Manager' -W
>>      Enter LDAP Password:
>>      dn: uid=tuser1,cn=users,cn=__accounts,dc=example,dc=com
>>      changetype: modify
>>      replace: krbPasswordExpiration
>>      krbPasswordExpiration: 20200508032114Z
>>
>>      ^D
>
> This would change password expiration attribute. So for account expiration, you
> would just need to replace krbPasswordExpiration modification above with
> krbPrincipalExpiration.
>
> Martin
>

-- 
Petr Vobornik




More information about the Freeipa-users mailing list