Web lists-archives.com

Re: [Samba] bind9 and isc-dhcp-Server for dynamic DNS-updates Error




On Sun, 8 Oct 2017 17:30:49 -0400 (CDT)
Siovel Rodríguez Morales <siovel@xxxxxxxxx> wrote:

> Hi Rowland, I resolve the problem partially. 
> 
> The problem was due to the fact that I do not have winbind installed
> because Samba 4, Bind9 and isc-dhcp-server are on the same server. I
> commented on these lines in the script dhcp-dyndns.sh and it worked
> (on commit and on release but not on expiry ) 
>#TESTUSER=$(wbinfo -u | grep dhcpduser) 
>#if [ -z "${TESTUSER}" ]; then 
>#    echo "No AD dhcp user exists, need to create it first.. exiting."
>#    echo "you can do this by typing the following commands" 
>#    echo "kinit Administrator@${REALM}" 
>#    echo "samba-tool user create dhcpduser --random-password
> --description=\"Unprivileged user for DNS updates
> via ISC DHCP server\"" 
>#    echo "samba-tool user setexpiry dhcpduser --noexpiry" 
>#    echo "samba-tool group addmembers DnsAdmins dhcpduser" 
>#    exit 1
>#else
> #    echo "TESTUSER: ${TESTUSER}" >> /tmp/Update.txt
> #fi
> 

The script only works on a DC.
You must have a Samba AD DC running, this requires winbind.
You must have Bind 9 installed and working on the DC.
You must install DHCP on the same DC.
You need 'dhcpduser'.

Rowland

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba