[Samba] Samba/LDAP and home dir creation

Diego Lima lists at diegolima.org
Wed Jun 9 14:47:31 MDT 2010

Hi Dimitri,

You probably want to enable the PAM module responsible for this. Back
up and edit your /etc/pam.d/system-auth and add the following line:

session required pam_oddjob_mkhomedir.so skel=/etc/skel/ umask=0022

Note: Messing with your pam config may lock you out of the system, so
be careful.

2010/6/9 Dimitri Yioulos <dyioulos at firstbhph.com>:
> Hi, all.
> I'm working on a project to create a Samba PDC
> with LDAP authentication.  I've been pretty
> successful in getting everything to work.
> However, I've run into a small snag:
> The PDC is built on an OpenSuse 11.2 box.  Most of
> the member servers are also OpenSuse 11.2 boxes.
> However, a CentOS 5.5 server was just added to
> the mix.  While users can lo into the CentOS box,
> with LDAP providing the creds, no home directory
> is automagically created as in the OpenSuse
> boxes.  I'd like to fix that, with your help.
> I've used authconfig-tui on the CentOS box to
> enable "Use LDAP" and "Use LDAP Authentication"
> (the equivalent of YAST's LDAP Client config
> tool?).  I believe my smb.conf and ldap.conf
> files are correct (I'll provide them if you all
> need to see them).  Any ideas?
> Thanks.
> Dimitri
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba

Diego Lima

More information about the samba mailing list