Hi, I managed to configure AD in FreeNAS (against Resara Server) and configured homes shares on a ZFS dataset.
The problem was users can access other shares with AD groups permissions but cannot access their homes.
After one day I found in /etc/local/samba/smb.conf under [homes] share that valid users was set to %S (the service name which is resolved with the user name less DOMAIN!!!)
I changed that line with %U (the client supplied username) and it worked (after setting permissions from console).
The problem is that whenever I restart CIFS or something related with it the file smb.conf is rewritten and again I have %S instead of %U.
Where is the script which writes smb.conf to correct it?
The problem was users can access other shares with AD groups permissions but cannot access their homes.
After one day I found in /etc/local/samba/smb.conf under [homes] share that valid users was set to %S (the service name which is resolved with the user name less DOMAIN!!!)
I changed that line with %U (the client supplied username) and it worked (after setting permissions from console).
The problem is that whenever I restart CIFS or something related with it the file smb.conf is rewritten and again I have %S instead of %U.
Where is the script which writes smb.conf to correct it?