Originally reported as https://pagure.io/freeipa/issue/8078
As an IT administrator, I want to enroll an Ubuntu 18.04 so that it will be an IPA client
A python error while ipa-client-install is working. The exact command is:
sudo ipa-client-install --unattended --ip-address=192.168.4.137 --domain=<my.domain> --realm=<MY.DOMAIN> --hostname=ipaclientlan.my.domain --principal=admin --password=adminpwd --mkhomedir --force-join
The error is:
2019-09-25T08:09:53Z DEBUG The ipa-client-install command failed, exception: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 1316: ordinal not in range(128) 2019-09-25T08:09:53Z ERROR 'ascii' codec can't decode byte 0xe2 in position 1316: ordinal not in range(128)
2019-09-25T08:09:53Z DEBUG The ipa-client-install command failed, exception: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 1316: ordinal not in range(128)
2019-09-25T08:09:53Z ERROR 'ascii' codec can't decode byte 0xe2 in position 1316: ordinal not in range(128)
Enrollment seems to be ok because kinit is working. Also web UI on IPA server shows Ubuntu 18.04 client enrolled
No error during enrollment, a positive message at the end
IPA server:
ipa-server-4.6.5-11.el7.centos.x86_64 ipa-client-4.6.5-11.el7.centos.x86_64 389-ds-base-1.3.9.1-10.el7.x86_64 pki-ca-10.5.16-3.el7.noarch krb5-server-1.15.1-37.el7_7.2.x86_64
IPA client:
ii freeipa-client 4.7.0~pre1+git20180411-2ubuntu2 ii freeipa-common 4.7.0~pre1+git20180411-2ubuntu2 ii libipa-hbac0 1.16.1-1ubuntu1.4 ii python-ipaclient 4.7.0~pre1+git20180411-2ubuntu2 ii python-ipaddr 2.2.0-1 ii python-ipaddress 1.0.17-1 ii python-ipalib 4.7.0~pre1+git20180411-2ubuntu2 ii python-libipa-hbac 1.16.1-1ubuntu1.4 ii sssd-ipa 1.16.1-1ubuntu1.4
IPA server is OK. IPA clients Debian 10 and Centos 7 are OK too
I also tried to set Python3 by default but no luck Python2.7 is in use
The root of the problem was:
The problem came from bad caracters in my original /etc/sssd/sssd.conf
Faulty line was: # uncomment below if the SME is a “iPasserelle”
# uncomment below if the SME is a “iPasserelle”
As you see there are 2 specials double quotes...I guess IPA client install script try to backup the file before making any change in it.
There is a traceback in ipaclient-install.log attached to the freeIPA case.
@mzidek, is this SSSD or dings-libs?
This looks like python error (i. e. ipa-client-install is not ready to read sssd.conf that is in UTF-8).
SSSD is moving from Pagure to Github. This means that new issues and pull requests will be accepted only in SSSD's github repository.
This issue has been cloned to Github and is available here: - https://github.com/SSSD/sssd/issues/5070
If you want to receive further updates on the issue, please navigate to the github issue and click on subscribe button.
subscribe
Thank you for understanding. We apologize for all inconvenience.
Metadata Update from @pbrezina: - Issue close_status updated to: cloned-to-github - Issue status updated to: Closed (was: Open)