A
A
Andrey Raboy2016-09-27 20:17:21
Computer networks
Andrey Raboy, 2016-09-27 20:17:21

How to set up netlogon samba DC?

There is a domain on samba, users are created, everyone enters, rejoices, drinks tea. But!
I would like to execute some commands when a user enters the domain, for example:
net use x: //192.168.0.2
You need to automatically mount network resources, maybe there is another way - tell me, but executing commands during authorization will be convenient!
there is smb.conf, it says:

# Global parameters
[global]
        workgroup = WG
        realm = WG.LOCAL
        netbios name = UBUNTU
        server role = active directory domain controller
        dns forwarder = 192.168.0.1
        allow dns updates = nonsecure and secure
        printing = bsd
        printcap name = /dev/null

[netlogon]
#       path = /usr/local/samba/var/locks/sysvol/btgp.local/scripts
        path = /usr/local/samba/etc/scripts
        read only = No

I met that in the [global] section you need to write this:
logon path = \\%N\profiles\%U
logon script = logon.bat
logon drive = H:

but what it is - I don’t know, I just intuitively assume .. that something!
something I can’t figure out where and what to write ... a little weak, I didn’t figure out where to dig, throw keywords for the search engine, at least help with something)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Shitskov, 2016-09-27
@raba

Install Microsoft RSAT and configure domain policies
https://wiki.samba.org/index.php/Installing_RSAT
Incl. you can use logon scripts, exactly the same as on a Windows domain - they must be located on a sphere accessible to users and computers of the domain.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question