LDAP and automatic creation of user home directories

So, LDAP users won't have their home directories automatically created for them unless I explicitly enable that feature ON THE SERVER. Regardless of what options I am using ON THE CLIENT when I configure the client to use LDAP. Am I getting it right?
Something like
Something like
ipa-client-install --mkhomedirwon't create home directories for LDAP users unless I issue a command on the server that will allow automatic creation of home directories?
Comments
https://www.certdepot.net/rhel7-configure-ldap-directory-service-user-connection/
consider using Automounter (AutoFS) on client side for automatically home directories.
https://www.certdepot.net/rhel7-configure-system-use-existing-ldap-directory-service-user-group-information/
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Linux_Domain_Identity_Authentication_and_Policy_Guide/users.html#home-directories
"IdM does not automatically create home directories for users. However, you can configure a PAM home directory module to create a home directory automatically when a user logs in. Alternatively, you can add home directories manually using NFS shares and the automount utility."
The next step after installing the client, ensuring the PAM module is installed and running, and running authconfig, is to verify SELinux context and permissions. Test by turning off SELinux then testing this again.
If it works then you'll need to do the following:
semanage -fcontext -a -e /home /locationofhomedirectoriesforusers
Let me know if this solves your issue.
However, re-reading the guide from Red Hat, only one line kinda hints at the answer: I wonder if I am right to conclude that autocreation of home dirs has to be configured on the server as well and configuring it only on client will have no effect?
I would think you would definitely need to set up the autocreation on the server. Test it and let us know if it works out. I haven't really used this function so I'm curious to see what it takes to setup.
I felt that this may be a gap in my understanding of how to configure LDAP client to join LDAP domain and that I may be missing something by not being able to make the client initiate autocreation of home directories on the LDAP server for LDAP users. And I was kind of hoping for an answer based on experience, someone who already dealt with an issue like this at work or labbed at home or maybe even a task at the exam. Since docs aren't explicit on this.
To answer your question, yes, it worked like a charm once I got this configured on the LDAP server to which clients authenticate, and as far as I remember, home directories were created for all LDAP users who didn't have a home dir, regardless of whether I tried to log in as them or not. The steps are the same as for the client: make sure oddjob-mkhomedir package is installed, oddjobd is running and after you verified that, run authconfig --enablemkhomedir --update command and you are all set.
Awesome that you got it working. The only people who would probably be able to answer those kinds of questions no longer post here.