Götz Reinicke - IT-Koordinator
2010-Jun-15 13:59 UTC
[CentOS] how to set up pam_oddjob_mkhomedir (samba and ldap)?
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
Possibly Parallel Threads
- Samba, LDAP, Windows XP - force passwordchange on first login
- openldap-2.3.43 and db4-utils - DB_VERSION_MISMATCH
- How ot migrate from /etc/samba/smbpasswd -> LDAP ldapsam:trusted
- WG: Samba, ldap and machine accounts
- Pittfals Windows 7 and samba 3.3.8 (centos 5.5), LDAP BE - joining domain