[Samba] Using logon.bat files in samba ad-dc

Luke Barone lukebarone at gmail.com
Fri Jan 5 22:47:30 UTC 2024


You're going to want to look up Group Policy Management -> Drive Maps.

On Fri, Jan 5, 2024 at 1:54 PM Ricardo Campos via samba <
samba at lists.samba.org> wrote:

> Hi, all.
>
> I know that the Samba people do *not* advise using shares in the ad, but,
> in the current circumstances, this will have to be done. At least until
> there is another technical-administrative context.
> In the very old previous installation (Suse 42, samba 4.4.2), using
> openLdap, I used logon.bat scripts to map Samba shares to windows client
> devices ("net use K: \\mydomain\cj /persistent :no", for example). And this
> was done individually, that is, each user had their logon.bat, which was in
> their home directory (in my case, /home/%U). The configuration was done in
> smb.conf, using the shares:
> [netlogon]
> path = /home/%u
> write list = so-and-so beltrano
> browseable = no
> [homes]
> comment = Home Directories
> browseable = no
> read only = no
>
> Can this or something similar be done in the ad?
>
> To ask another way: how can a user, using a Windows client, map existing
> shares in the ad to Windows devices, automatically, when logging into the
> domain?
>
> Thanks.
>
> Ricardo
>
> <
> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> >
> Não
> contém vírus.www.avast.com <http://xn--vrus-vpa.www.avast.com>
> <
> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> >
> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> --
> 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