Results 1 to 4 of 4

Thread: Home folder not being created for Active Directory users

  1. #1

    Default Home folder not being created for Active Directory users

    I've just installed the latest Tumbleweed snapshot, which I've domain joined using SSSD via Yast. Everything works, except home folders aren't being created for domain users. I just get thrown to root (/).

    Anyone know where I should be looking to fix this? I've so far added `session required pam_mkhomedir.so` to /etc/pam.d/common-session and /etc/pam.d/sshd, but that hasn't helped.

  2. #2

    Default Re: Home folder not being created for Active Directory users

    Ok, so adding the following to sssd.conf did the trick.

    Code:
    [nss]
    override_homedir = /home/%u
    I guess it must be looking at some AD attribute to determine where it should create the home directory.

  3. #3
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    13,295
    Blog Entries
    2

    Default Re: Home folder not being created for Active Directory users

    Makes sense, and it should be noted that your modification probably applies only when using the nss method for integrating with AD.

    Something needs to tell openSUSE how to create the home directory if it's not based on the internal "native' Linux security system for setting up Users.

    TSU.
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  4. #4
    Join Date
    Feb 2016
    Location
    Augusta, GA USA
    Posts
    31

    Default Re: Home folder not being created for Active Directory users

    tomwardrop,
    Indeed it is, specifically the homeDirectory attribute in LDAP syntax. If the attribute value is not populated, or you want to override what is (or isn't there) you have to tell the SSSD what to do :-) .


    Hope it helps,


    -- lawrence
    Lawrence Kearney
    http://www.lawrencekearney.com
    https://www.thettp.org

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •