You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "STRULLU (JIRA)" <ji...@apache.org> on 2018/10/08 15:08:00 UTC

[jira] [Commented] (AMBARI-22658) Cannot write krbPasswordExpiry in FreeIPA

    [ https://issues.apache.org/jira/browse/AMBARI-22658?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16641988#comment-16641988 ] 

STRULLU commented on AMBARI-22658:
----------------------------------

Same problem for me with *CentOS 7.4.1708, FreeIPA 4.5.0 and Ambari 2.6.2.2*.

 

*Error from http error log on IPA side :*

ValueError: unable to convert the attribute u'krbpasswordexpiration' value '20481008142817.982Z' to type <type 'datetime.datetime'> in LDAP entry

 

*Error on Ambari side:*

08 Oct 2018 16:28:18,507 ERROR [Server Action Executor Worker 1935] CreatePrincipalsServerAction:299 - Failed to create principal, XXXX-100818@XXXXX.LOC - Unknown error while creating principal for XXXXX-100818@XXXXX.LOC
STDOUT:
STDERR: ipa: ERROR: an internal error has occurred


org.apache.ambari.server.serveraction.kerberos.KerberosOperationException: Unknown error while creating principal for xxxxxx-100818@XXXXXXX.LOC
STDOUT:
STDERR: ipa: ERROR: an internal error has occurred

 

> Cannot write krbPasswordExpiry in FreeIPA
> -----------------------------------------
>
>                 Key: AMBARI-22658
>                 URL: https://issues.apache.org/jira/browse/AMBARI-22658
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.6.0
>         Environment: Ubuntu 16.04 LTS with FreeIPA 4.3.1
>            Reporter: Tobias Hofer
>            Priority: Major
>         Attachments: IPKerberosOperationHandler-for-FreeIPA-4.3.patch
>
>
> Ambari Server fails to change the krbPasswordExpiry date because of an invalid date format.
> IPA fails to update the user by IPAKerberosOperationHandler.
> {code:java}
> user-mod %s --setattr krbPasswordExpiration=%s
> {code}
> The used format
> {noformat}
> yyyyMMddHHmmss.SSS'Z'
> {noformat}
> needs to be
> {noformat}
> yyyyMMddHHmmss'Z'
> {noformat}
> at least for the FreeIPA version distributed with Ubuntu 16.04.
> It would be great if Ambari is going to support FreeIPA 4.3.1 as well.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)