[Samba] steps to get automatic home folder created at user logon windows 10 with samba 4.9.5-Debian

Jelle de Jong jelledejong at powercraft.nl
Thu Apr 30 21:29:05 UTC 2020



On 2020-04-30 22:57, Rowland penny via samba wrote:
> On 30/04/2020 20:57, Jelle de Jong via samba wrote:
>>
>> I never was able to get the backend = ad working
>>
>> I only need my user to be able to login to Windows 10 systems from a 
>> domain joined machine.
>>
>> This is how I add my users:
>>
>> samba-tool user create lgaga passwd --login-shell /bin/bash 
>> --given-name "Lady Gaga" --home-drive=H 
>> --home-directory="\\\SAMBA01\users\lgaga"
>>
>> Based on this wiki https://wiki.samba.org/index.php/Idmap_config_ad I 
>> tried the bellow configuration again but it did now work. getent 
>> passwd user or id user does not do anything. I think I am missing the 
>> prerequisites when using samba-tool to create the user as above?
> 
> You are not adding the required RFC2307 attributes (uidNumber etc), 
> these are not added automatically and without them, the 'ad' backend 
> will not work.

Yes that is why I am using rid backend again. Is there a way to 
automatic add uidNumber etc with the samba-tool when creating a user, I 
do not want to manually have to track uids when adding users...

Kind regards,

Jelle de Jong



More information about the samba mailing list