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

Jonathon Reinhart jonathon.reinhart at gmail.com
Fri May 1 01:01:32 UTC 2020


I wrote ADMan to automatically assign uidNumber and gidNumber attributes.

https://gitlab.com/JonathonReinhart/adman

It can also create per-user directories, although it does not assign the
homeDirectory attribute.

On Thu, Apr 30, 2020, 17:29 Jelle de Jong via samba <samba at lists.samba.org>
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
>
> --
> 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