Hi,
I do have a samba server up and running and users are authenticated by ldap.
Login to the samba server works as long as the user has a home directory.
Now if I create a new ldap entry for an user I'd like to use pam_oddjob_mkhomedir to create a home directory if it dose not exist on login.
But something fails on my system.
I followed the redhat faq http://kbase.redhat.com/faq/docs/DOC-3973 which may be wron according to that bugzilla entry.
https://bugzilla.redhat.com/show_bug.cgi?id=429524
So I added
session optional pam_oddjob_mkhomedir.so skel=/etc/skel/ umask=0022
to
/etc/pam.d/login
using all other default settings and configs using the rpms provided by redhat EL 5.5 / Centos 5.5
rpm -qa|grep oddjob oddjob-0.27-9.el5 oddjob-libs-0.27-9.el5
the services are restarted, there are no errors in the log except from samba, that the login from the user fails because of the missing home directory.
I'd appreciate any suggestion and best regards
Götz