Quentin Gibeaux
2014-Jun-23 09:08 UTC
[Samba] Active Directory 'add machine script' parameter
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.
Rowland Penny
2014-Jun-23 09:34 UTC
[Samba] Active Directory 'add machine script' parameter
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. Rowland
Possibly Parallel Threads
- samba-tool crashes if include = /patch/to/%U.conf in smb.conf
- Change hostname of the main domain controller of the Active Directory
- Access to ldb with simpleSecurityObject
- Question: write an R script with help information available to the user
- Running wine from php pages with "Xvfb" not success for my machine