[Samba] Active Directory 'add machine script' parameter

Rowland Penny rowlandpenny at googlemail.com
Mon Jun 23 03:34:41 MDT 2014

On 23/06/14 10:08, Quentin Gibeaux wrote:
> Hi,
> I'm looking at migration from Samba3 (NT domain) to a Samba4 in 4.1.6 
> on ubuntu 14.04 in active directory domain controller mode.
> I was doing some stuff when subscribing machines to the domain through 
> a script called by smbd, as described with 'add machine script' 
> parameter in smb.conf.
> It seems that this behavior isn't supported in Active Directory mode 
> in my version : i'm still having 'add machine script = 
> /usr/sbin/my_script.pl' in my smb.conf, but it's not executed when 
> adding machine to the domain. I don't see anything in log in relative 
> to this and samba-tool testparm shows me that this option is parsed by 
> samba.
> Has it been remove or not ported to samba ad-dc ?
> Thanks,
> Quentin Gibeaux.
A quick answer to your questions would be no and yes ;-)

No, it hasn't been removed, but it will only work if you set samba4 up 
in 'classic' mode. If you upgrade to an AD domain, you need to use the 
'net' command (or similar) to join your Unix machines to the domain.


More information about the samba mailing list