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

L.P.H. van Belle belle at bazuin.nl
Fri May 1 06:51:34 UTC 2020


Hai, 

Why not.. Upgrade to 4.12.2 and use : 

samba-tool user addunixattrs --help 
:-) 


Greetz, 

Louis

> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-bounces at lists.samba.org] Namens 
> Rowland penny via samba
> Verzonden: vrijdag 1 mei 2020 0:02
> Aan: samba at lists.samba.org
> Onderwerp: Re: [Samba] steps to get automatic home folder 
> created at user logon windows 10 with samba 4.9.5-Debian
> 
> On 30/04/2020 22:29, Jelle de Jong via samba wrote:
> >
> >
> > 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
> >
> It is fairly easy, you just need to add a couple of attributes to AD 
> (the ones the Unix Attributes tabs in ADUC uses) and then 
> write a script 
> around 'samba-tool user add' to use them.
> 
> Rowland
> 
> 
> 
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
> 
> 




More information about the samba mailing list