I have a Freeipa server version 4.3.1 on Ubuntu 16.04. Then I installed freeipa-client, and run
#ipa-client-install --mkhomedir

However, when I try to loggin no freeipa client machine it fails.
I supposed it was because the home directories have not been created.
So, I configured PAM modules manually by editing the /etc/pam.d/common-session and adding this+ line:
session    required    pam_mkhomedir.so

and then loggin proccess works perfectly!

Any idea why the option --mkhomedir is not well working here?

Thanks in advance!