[CentOS] how to set up pam_oddjob_mkhomedir (samba and ldap)?

Tue Jun 15 13:59:32 UTC 2010
Götz Reinicke - IT-Koordinator <goetz.reinicke at filmakademie.de>

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

-- 
Götz Reinicke
IT-Koordinator

Tel. +49 7141 969 420
Fax  +49 7141 969 55 420
E-Mail goetz.reinicke at filmakademie.de

Filmakademie Baden-Württemberg GmbH
Akademiehof 10
71638 Ludwigsburg
www.filmakademie.de

Eintragung Amtsgericht Stuttgart HRB 205016
Vorsitzende des Aufsichtsrats:
Prof. Dr. Claudia Hübner

Geschäftsführer:
Prof. Thomas Schadt