[Samba] run script on domain join

Arnaud FLORENT
2018-05-23T07:36:48Z

the host has first an address in dhcp pool between 192.168.1.100-200 (it
is not known by dhcpd with a fixed ip address)


i would like to add a dhcpd record to provide always same ip to host (ie
fixed-address 192.168.1.1)

when host is joined to my samba domain


in NT PDC, i can do that with  "add machine script" in smb.conf

but in AD DC, this script is not run


so i m searching another way to run a script when a computer join the AD
DC domain





Le 23/05/2018 à 09:19, Rowland Penny via samba a écrit :
> On Tue, 22 May 2018 14:33:45 +0200
> Arnaud FLORENT via samba <samba at lists.samba.org> wrote:
>
>> Hi everyone.
>>
>> I setup a samba AD domain
>>
>>
>> on NT PDC,  i was using  'add machine script' to run a script
to add
>> static dhcp lease for joined computer.
>>
>> but this script is not called in "active directory domain
controller"
>> mode
>>
>>
>> is there another way to run a script when a computer join the domain?
>>
>> thank you.
>>
>>
>>
> I don't understand this, surely the computer must have an ipaddress
> before it is joined, or am I missing something here ?
>
> Rowland
>

--
Arnaud FLORENT
IRIS Technologies

phone: (33) 03 20 65 85 80
fax: (33) 03 20 65 85 81

mailto:aflorent at iris-tech.fr