I have joined a Windows 7 professional to NS7RC1 with Samba4, I have installed RSAT on Windows 7.
In “Active Directory Users and Computer” I have created a new user.
I logged in with that new user in windows 7.
I was expecting that home shared folder of the user was empty but the share points to the / of the server, so i see all the content of the server.
In /var/lib/nethserver/home the home directory of the user doesn’t exist.
The Administrator user has the same behiavour.
Hi @saitobenkei, thank you for your bug report! IIRC in the past we had an issue with home dirs and Samba… I thought it was fixed! Now let’s see if we can reproduce this
Fixed. I needed to sign in to one of the shares, and then magically my home directory appeared.
The home directory folder is created by oddjob_mkdir PAM module when the user establish a session the first time. That means the user log in by ssh, or create an authenticated connection with some service relying on PAM, like Samba.
The home directory folder is created by oddjob_mkdir PAM module when the user establish a session the first time. That means the user log in by ssh, or create an authenticated connection with some service relying on PAM, like Samba.
For instance
create a shared folder
access it with user’s credentials
If credentials are accepted (it’s a first time login), the home folder is created too! Now user can access the home dir, hopefully
We cannot force Samba, because the directory is actually created by PAM. Luckily, sssd can override the LDAP attribute from AD: we could set an override in sssd.conf.
Could you share some screenshots of RSAT? Did you understand why it set unixHomeDirectory to “/”?
I attach the screenshots of creation process of the user test3@ad.
There aren’t requests where to create the user share folder
The only place where i can set something is in the “Profile” tab of the User’s properties, but I thing that sets the folder where the profile of the user will be stored.
There’s a attribute parameter on RSAT/ADUC user gorup configuration:
Open the ADUC, go to “View” then check “Advanced Features”
Then right click un the user/gorup -> Properties
In the tab “Attribute Editor” there is a attirbute unixHostDirectory
If the user was created in dashboard, that attribute is correctly configured.
If the user was created in RSAT/ADUC, that attribute is set on “not set” but if I modify the value of the attribute with the drectory, nothing happens: getent reports always / as home directory and if i login with that user on Windows the directory isn’t create.
EDIT: the sentence in italic above could not be true… maybe it’s necessary to wait some time after the modify so that it is applied It’s necessary to wait at least 5 minutes before the modify is applied and appears on getent
I agree, I’d go with the sssd override parameter. Please test it by yourself! Add the following line to /etc/sssd.conf, under the ldap_id_mapping = True line: